diff options
author | Naiem Shaik <snaiem@codeaurora.org> | 2012-07-19 10:45:56 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2013-01-20 18:38:33 -0800 |
commit | 0f5d4355d7a384679722338d55f65bbb92350cfc (patch) | |
tree | df4a638aa4e81152ee68f0d523ed706128a251ff /Source/WebCore/dom/TreeScope.cpp | |
parent | 8f6cf525ead3381029545c1d292c8586ec45ddb0 (diff) | |
download | external_webkit-0f5d4355d7a384679722338d55f65bbb92350cfc.zip external_webkit-0f5d4355d7a384679722338d55f65bbb92350cfc.tar.gz external_webkit-0f5d4355d7a384679722338d55f65bbb92350cfc.tar.bz2 |
DOM Optimizations
DOM traversal optimizations
DOM Core optimizations
Prefetch optimization for DOM Tree Traversal
Conflicts:
Source/WebKit/android/jni/WebViewCore.cpp
Change-Id: Icbb8a7229ee9cff1a5401b57c8181f18b9a6d6e0
Diffstat (limited to 'Source/WebCore/dom/TreeScope.cpp')
-rw-r--r-- | Source/WebCore/dom/TreeScope.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Element*>(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<HTMLAnchorElement*>(node); if (document()->inQuirksMode()) { |