Index: Source/core/html/HTMLAnchorElement.cpp |
diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp |
index 6875aa21e3e788d6874f404479faafa5f81a98ee..d01c2ed54b54a5f97f7d21cf2e600d7af1a1eed1 100644 |
--- a/Source/core/html/HTMLAnchorElement.cpp |
+++ b/Source/core/html/HTMLAnchorElement.cpp |
@@ -196,10 +196,10 @@ void HTMLAnchorElement::parseAttribute(const QualifiedName& name, const AtomicSt |
bool wasLink = isLink(); |
setIsLink(!value.isNull()); |
if (wasLink || isLink()) { |
- AffectedSelectorMask affectedPseudo = AffectedSelectorLink | AffectedSelectorVisited; |
+ pseudoStateChanged(CSSSelector::PseudoLink); |
+ pseudoStateChanged(CSSSelector::PseudoVisited); |
if (wasLink != isLink()) |
- affectedPseudo |= AffectedSelectorEnabled; |
- didAffectSelector(affectedPseudo); |
+ pseudoStateChanged(CSSSelector::PseudoEnabled); |
} |
if (wasLink && !isLink() && treeScope().adjustedFocusedElement() == this) { |
// We might want to call blur(), but it's dangerous to dispatch |