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

Unified Diff: Source/core/dom/StyleEngine.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/dom/StyleEngine.cpp
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
index 926d2c8e6fdceaeb9d9513cb801d151e90c817ee..aca59619a72eca3a39d97817b701c763602e33a2 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -696,7 +696,7 @@ void StyleEngine::fontsNeedUpdate(CSSFontSelector*)
if (m_resolver)
m_resolver->invalidateMatchedPropertiesCache();
- document().setNeedsStyleRecalc(SubtreeStyleChange);
+ document().setNeedsStyleRecalc(StyleChangeReasonForTracing::create(StyleChangeReason::Fonts), SubtreeStyleChange);
}
void StyleEngine::trace(Visitor* visitor)

Powered by Google App Engine
This is Rietveld 408576698