Index: Source/core/dom/VisitedLinkState.cpp |
diff --git a/Source/core/dom/VisitedLinkState.cpp b/Source/core/dom/VisitedLinkState.cpp |
index e49512a85b112893d995f9b879729394d651c8d6..f715a3dfeb9f7d2f1b9ae98d22a22a0118d6167f 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(); |
} |