Index: Source/core/layout/LayoutSliderContainer.cpp |
diff --git a/Source/core/layout/LayoutSliderContainer.cpp b/Source/core/layout/LayoutSliderContainer.cpp |
index e6026bbb1f5ba8384cabe9e7496285c0e8327f26..294afc71342449451c6be0286b6408d40c11c118 100644 |
--- a/Source/core/layout/LayoutSliderContainer.cpp |
+++ b/Source/core/layout/LayoutSliderContainer.cpp |
@@ -100,13 +100,13 @@ void LayoutSliderContainer::layout() |
{ |
HTMLInputElement* input = toHTMLInputElement(node()->shadowHost()); |
bool isVertical = hasVerticalAppearance(input); |
- style()->setFlexDirection(isVertical ? FlowColumn : FlowRow); |
+ mutableStyleRef().setFlexDirection(isVertical ? FlowColumn : FlowRow); |
TextDirection oldTextDirection = style()->direction(); |
if (isVertical) { |
// FIXME: Work around rounding issues in RTL vertical sliders. We want them to |
// render identically to LTR vertical sliders. We can remove this work around when |
// subpixel rendering is enabled on all ports. |
- style()->setDirection(LTR); |
+ mutableStyleRef().setDirection(LTR); |
} |
Element* thumbElement = input->userAgentShadowRoot()->getElementById(ShadowElementNames::sliderThumb()); |
@@ -122,7 +122,7 @@ void LayoutSliderContainer::layout() |
RenderFlexibleBox::layout(); |
- style()->setDirection(oldTextDirection); |
+ mutableStyleRef().setDirection(oldTextDirection); |
// These should always exist, unless someone mutates the shadow DOM (e.g., in the inspector). |
if (!thumb || !track) |
return; |