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

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: 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 e632656c90ada44465b00b43ca23d08728602a25..4fbb0ceb0c6d224516016a40b7b30c57c2b5defd 100644
--- a/Source/core/dom/TreeScope.cpp
+++ b/Source/core/dom/TreeScope.cpp
@@ -547,7 +547,7 @@ void TreeScope::setNeedsStyleRecalcForViewportUnits()
root->setNeedsStyleRecalcForViewportUnits();
RenderStyle* style = element->renderStyle();
if (style && style->hasViewportUnits())
- element->setNeedsStyleRecalc(LocalStyleChange);
+ element->setNeedsStyleRecalc(StyleRecalcDueToViewportUnits, LocalStyleChange);
}
}

Powered by Google App Engine
This is Rietveld 408576698