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

Unified Diff: Source/core/layout/LayoutQuote.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/LayoutObjectInlines.h ('k') | Source/core/layout/LayoutSliderContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutQuote.cpp
diff --git a/Source/core/layout/LayoutQuote.cpp b/Source/core/layout/LayoutQuote.cpp
index da60a834f9eebe416d694bef5c3db8fa7f6eacda..b1a16a979f01556141c9d59fd86df2cc3f3c69c3 100644
--- a/Source/core/layout/LayoutQuote.cpp
+++ b/Source/core/layout/LayoutQuote.cpp
@@ -265,11 +265,11 @@ void LayoutQuote::updateText()
RenderTextFragment* fragment = findFragmentChild();
if (fragment) {
- fragment->setStyle(style());
+ fragment->setStyle(mutableStyle());
fragment->setContentString(m_text.impl());
} else {
fragment = new RenderTextFragment(&document(), m_text.impl());
- fragment->setStyle(style());
+ fragment->setStyle(mutableStyle());
addChild(fragment);
}
}
« no previous file with comments | « Source/core/layout/LayoutObjectInlines.h ('k') | Source/core/layout/LayoutSliderContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698