Index: Source/core/rendering/RenderTextControl.cpp |
diff --git a/Source/core/rendering/RenderTextControl.cpp b/Source/core/rendering/RenderTextControl.cpp |
index e73dc9dc78ed14481df3af3eaed7853e470e0c83..00888998d96a43f42f847d895701a20ea4158a89 100644 |
--- a/Source/core/rendering/RenderTextControl.cpp |
+++ b/Source/core/rendering/RenderTextControl.cpp |
@@ -72,8 +72,8 @@ void RenderTextControl::styleDidChange(StyleDifference diff, const LayoutStyle* |
if (innerEditorRenderer) { |
// We may have set the width and the height in the old style in layout(). |
// Reset them now to avoid getting a spurious layout hint. |
- innerEditorRenderer->style()->setHeight(Length()); |
- innerEditorRenderer->style()->setWidth(Length()); |
+ innerEditorRenderer->mutableStyle()->setHeight(Length()); |
+ innerEditorRenderer->mutableStyle()->setWidth(Length()); |
innerEditorRenderer->setStyle(createInnerEditorStyle(styleRef())); |
innerEditor->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::Control)); |
} |