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)); |
} |