From 0f5d4355d7a384679722338d55f65bbb92350cfc Mon Sep 17 00:00:00 2001 From: Naiem Shaik Date: Thu, 19 Jul 2012 10:45:56 -0700 Subject: DOM Optimizations DOM traversal optimizations DOM Core optimizations Prefetch optimization for DOM Tree Traversal Conflicts: Source/WebKit/android/jni/WebViewCore.cpp Change-Id: Icbb8a7229ee9cff1a5401b57c8181f18b9a6d6e0 --- Source/WebCore/dom/TreeScope.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/WebCore/dom/TreeScope.cpp') diff --git a/Source/WebCore/dom/TreeScope.cpp b/Source/WebCore/dom/TreeScope.cpp index a995a2d..45c7a8f 100644 --- a/Source/WebCore/dom/TreeScope.cpp +++ b/Source/WebCore/dom/TreeScope.cpp @@ -97,7 +97,7 @@ Element* TreeScope::getElementByAccessKey(const String& key) const if (key.isEmpty()) return 0; if (!m_accessKeyMapValid) { - for (Node* n = firstChild(); n; n = n->traverseNextNode()) { + for (Node* n = firstChild(); n; n = n->traverseNextNodeFastPath()) { if (!n->isElementNode()) continue; Element* element = static_cast(n); @@ -149,7 +149,7 @@ Element* TreeScope::findAnchor(const String& name) return 0; if (Element* element = getElementById(name)) return element; - for (Node* node = this; node; node = node->traverseNextNode()) { + for (Node* node = this; node; node = node->traverseNextNodeFastPath()) { if (node->hasTagName(aTag)) { HTMLAnchorElement* anchor = static_cast(node); if (document()->inQuirksMode()) { -- cgit v1.1