Index: Source/core/dom/DocumentOrderedMap.cpp |
diff --git a/Source/core/dom/DocumentOrderedMap.cpp b/Source/core/dom/DocumentOrderedMap.cpp |
index bd58170866d4827a5a35dee3b804e7ff607e7ea9..eb155a8906a46fd560fd22e188626b2e2450f91e 100644 |
--- a/Source/core/dom/DocumentOrderedMap.cpp |
+++ b/Source/core/dom/DocumentOrderedMap.cpp |
@@ -122,7 +122,7 @@ inline Element* DocumentOrderedMap::get(StringImpl* key, const TreeScope* scope) |
if (m_duplicateCounts.contains(key)) { |
// We know there's at least one node that matches; iterate to find the first one. |
- for (element = ElementTraversal::firstWithin(scope->rootNode()); element; element = ElementTraversal::next(element)) { |
+ for (element = ElementTraversal::firstWithin(scope->rootNode()); element; element = ElementTraversal::next(*element)) { |
if (!keyMatches(key, element)) |
continue; |
m_duplicateCounts.remove(key); |