Index: Source/core/css/resolver/SharedStyleFinder.cpp |
diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp |
index 55672f6b1eb6994db7429224d46210216ffd669e..2e12f24fa623bb09ac28151690482a381cfdc9ff 100644 |
--- a/Source/core/css/resolver/SharedStyleFinder.cpp |
+++ b/Source/core/css/resolver/SharedStyleFinder.cpp |
@@ -239,7 +239,7 @@ bool SharedStyleFinder::canShareStyleWithElement(Element& candidate) const |
bool SharedStyleFinder::documentContainsValidCandidate() const |
{ |
- for (Element* element = document().documentElement(); element; element = ElementTraversal::next(element)) { |
+ for (Element* element = document().documentElement(); element; element = ElementTraversal::next(*element)) { |
if (canShareStyleWithElement(*element)) |
return true; |
} |