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

Unified Diff: Source/core/svg/SVGAElement.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/svg/SVGAElement.cpp
diff --git a/Source/core/svg/SVGAElement.cpp b/Source/core/svg/SVGAElement.cpp
index d41e18e959a28b67df5f6f74bf99c56c452b761f..e3ea79abf4e0200e9b7b112711b1735f4f521f22 100644
--- a/Source/core/svg/SVGAElement.cpp
+++ b/Source/core/svg/SVGAElement.cpp
@@ -91,7 +91,7 @@ void SVGAElement::svgAttributeChanged(const QualifiedName& attrName)
setIsLink(!hrefString().isNull());
if (wasLink != isLink())
- setNeedsStyleRecalc(SubtreeStyleChange);
+ setNeedsStyleRecalc(StyleChangeReasonForTracing::create(StyleChangeReason::LinkColorChange), SubtreeStyleChange);
return;
}

Powered by Google App Engine
This is Rietveld 408576698