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

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

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: reasons as tuple 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
Index: Source/core/html/HTMLAnchorElement.cpp
diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp
index 789bc483e77c920c60c7daca44b4cd2c3ee921a5..4eae762530c28af77d661984db93efc8023c749e 100644
--- a/Source/core/html/HTMLAnchorElement.cpp
+++ b/Source/core/html/HTMLAnchorElement.cpp
@@ -196,7 +196,7 @@ void HTMLAnchorElement::parseAttribute(const QualifiedName& name, const AtomicSt
AffectedSelectorMask affectedPseudo = AffectedSelectorLink | AffectedSelectorVisited;
if (wasLink != isLink())
affectedPseudo |= AffectedSelectorEnabled;
- didAffectSelector(affectedPseudo);
+ didAffectSelector(StyleChangeReasonForTracing::createWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::LinkVisitedEnabled), affectedPseudo);
}
if (wasLink && !isLink() && treeScope().adjustedFocusedElement() == this) {
// We might want to call blur(), but it's dangerous to dispatch

Powered by Google App Engine
This is Rietveld 408576698