Index: Source/core/dom/VisitedLinkState.cpp |
diff --git a/Source/core/dom/VisitedLinkState.cpp b/Source/core/dom/VisitedLinkState.cpp |
index 0c587b0d817bdba8087bf1134aee1840751b0d14..d1342431a93f138cdd3c45b4a6527ff135e4f65f 100644 |
--- a/Source/core/dom/VisitedLinkState.cpp |
+++ b/Source/core/dom/VisitedLinkState.cpp |
@@ -65,7 +65,7 @@ void VisitedLinkState::invalidateStyleForAllLinks() |
return; |
for (Element* element = ElementTraversal::firstWithin(m_document); element; element = ElementTraversal::next(*element)) { |
if (element->isLink()) |
- element->setNeedsStyleRecalc(); |
+ element->setNeedsStyleRecalc(SubtreeStyleChange); |
} |
} |
@@ -75,7 +75,7 @@ void VisitedLinkState::invalidateStyleForLink(LinkHash linkHash) |
return; |
for (Element* element = ElementTraversal::firstWithin(m_document); element; element = ElementTraversal::next(*element)) { |
if (element->isLink() && linkHashForElement(*element) == linkHash) |
- element->setNeedsStyleRecalc(); |
+ element->setNeedsStyleRecalc(SubtreeStyleChange); |
} |
} |