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

Unified Diff: Source/core/layout/LayoutTextControl.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated change after Doug's review. 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
« no previous file with comments | « Source/core/layout/LayoutSliderThumb.cpp ('k') | Source/core/layout/LayoutTextControlMultiLine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTextControl.cpp
diff --git a/Source/core/layout/LayoutTextControl.cpp b/Source/core/layout/LayoutTextControl.cpp
index aee7181a6e326c5b437001b2798eb881802cb842..fc2d7d7e12ec24dca9a0be204bb7ec62f4f2f7e4 100644
--- a/Source/core/layout/LayoutTextControl.cpp
+++ b/Source/core/layout/LayoutTextControl.cpp
@@ -72,8 +72,8 @@ void LayoutTextControl::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));
}
« no previous file with comments | « Source/core/layout/LayoutSliderThumb.cpp ('k') | Source/core/layout/LayoutTextControlMultiLine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698