Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: Source/core/html/HTMLAnchorElement.cpp

Issue 540533004: Use style invalidation for more pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLAnchorElement.cpp
diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp
index 789bc483e77c920c60c7daca44b4cd2c3ee921a5..29243c35397da219b9c8a103543c3b4d05ed7d72 100644
--- a/Source/core/html/HTMLAnchorElement.cpp
+++ b/Source/core/html/HTMLAnchorElement.cpp
@@ -193,10 +193,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
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698