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

Unified Diff: Source/core/rendering/RenderCombineText.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/RenderCombineText.cpp
diff --git a/Source/core/rendering/RenderCombineText.cpp b/Source/core/rendering/RenderCombineText.cpp
index c7f911171800c5b8decccadf504e8c50eee63b43..a766b30e9aa9137b9064b521c17154c9c950f5a5 100644
--- a/Source/core/rendering/RenderCombineText.cpp
+++ b/Source/core/rendering/RenderCombineText.cpp
@@ -116,7 +116,7 @@ void RenderCombineText::updateFont()
FontSelector* fontSelector = style()->font().fontSelector();
- bool shouldUpdateFont = style()->setFontDescription(description); // Need to change font orientation to horizontal.
+ bool shouldUpdateFont = mutableStyleRef().setFontDescription(description); // Need to change font orientation to horizontal.
if (m_combinedTextWidth <= emWidth) {
m_scaleX = 1.0f;
@@ -132,7 +132,7 @@ void RenderCombineText::updateFont()
m_combinedTextWidth = runWidth;
// Replace my font with the new one.
- shouldUpdateFont = style()->setFontDescription(description);
+ shouldUpdateFont = mutableStyleRef().setFontDescription(description);
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698