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

Unified Diff: Source/core/rendering/RenderTextControl.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated patch after splitting Created 5 years, 10 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/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));
}

Powered by Google App Engine
This is Rietveld 408576698