浏览代码

* TDOMNodeList.GetCount speed up from alexx, fixes #6891

git-svn-id: trunk@3568 -
florian 19 年之前
父节点
当前提交
1e3352a350
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      fcl/xml/dom.pp

+ 5 - 0
fcl/xml/dom.pp

@@ -959,6 +959,11 @@ function TDOMNodeList.GetCount: LongWord;
 var
   child: TDOMNode;
 begin
+  if not UseFilter then
+    begin
+      Result := Count;
+      exit;
+    end;
   Result := 0;
   child := node.FirstChild;
   while Assigned(child) do