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

Unified Diff: Source/core/dom/TreeScope.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. Created 5 years, 11 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 671a79cacbad3324f215f926c720e2f53d04b6a4..a0e1b4f03aec4975686283a412184e5febcc2fa1 100644
--- a/Source/core/dom/TreeScope.cpp
+++ b/Source/core/dom/TreeScope.cpp
@@ -507,7 +507,7 @@ void TreeScope::setNeedsStyleRecalcForViewportUnits()
for (Element* element = ElementTraversal::firstWithin(rootNode()); element; element = ElementTraversal::nextIncludingPseudo(*element)) {
for (ShadowRoot* root = element->youngestShadowRoot(); root; root = root->olderShadowRoot())
root->setNeedsStyleRecalcForViewportUnits();
- RenderStyle* style = element->renderStyle();
+ const RenderStyle* style = element->renderStyle();
if (style && style->hasViewportUnits())
element->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::ViewportUnits));
}

Powered by Google App Engine
This is Rietveld 408576698