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

Unified Diff: Source/core/dom/TreeScope.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/TreeScope.cpp
diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp
index 1be94a9716aa1dd9c2b0ec62f7cb338a07868b82..b078c3ee03f9675c713ed7fa64bc44f98a939fb9 100644
--- a/Source/core/dom/TreeScope.cpp
+++ b/Source/core/dom/TreeScope.cpp
@@ -542,7 +542,7 @@ void TreeScope::setNeedsStyleRecalcForViewportUnits()
root->setNeedsStyleRecalcForViewportUnits();
RenderStyle* style = element->renderStyle();
if (style && style->hasViewportUnits())
- element->setNeedsStyleRecalc(LocalStyleChange);
+ element->setNeedsStyleRecalc(StyleChangeReasonForTracing::create(StyleChangeReason::ViewportUnits), LocalStyleChange);
esprehn 2014/09/26 03:53:01 Can we make this the second argument instead? Now
kouhei (in TOK) 2014/09/29 02:05:32 Done.
}
}

Powered by Google App Engine
This is Rietveld 408576698