Index: Source/core/dom/VisitedLinkState.cpp |
diff --git a/Source/core/dom/VisitedLinkState.cpp b/Source/core/dom/VisitedLinkState.cpp |
index b72f4ff57175817db7a4afdd0c06c3e3efedb1f2..e49512a85b112893d995f9b879729394d651c8d6 100644 |
--- a/Source/core/dom/VisitedLinkState.cpp |
+++ b/Source/core/dom/VisitedLinkState.cpp |
@@ -63,7 +63,7 @@ void VisitedLinkState::invalidateStyleForAllLinks() |
{ |
if (m_linksCheckedForVisitedState.isEmpty()) |
return; |
- for (Element* element = ElementTraversal::firstWithin(&m_document); element; element = ElementTraversal::next(element)) { |
+ for (Element* element = ElementTraversal::firstWithin(&m_document); element; element = ElementTraversal::next(*element)) { |
if (element->isLink()) |
element->setNeedsStyleRecalc(); |
} |
@@ -73,7 +73,7 @@ void VisitedLinkState::invalidateStyleForLink(LinkHash linkHash) |
{ |
if (!m_linksCheckedForVisitedState.contains(linkHash)) |
return; |
- for (Element* element = ElementTraversal::firstWithin(&m_document); element; element = ElementTraversal::next(element)) { |
+ for (Element* element = ElementTraversal::firstWithin(&m_document); element; element = ElementTraversal::next(*element)) { |
if (element->isLink() && linkHashForElement(*element) == linkHash) |
element->setNeedsStyleRecalc(); |
} |