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

Unified Diff: Source/web/tests/WebFrameTest.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
« Source/web/mac/WebSubstringUtil.mm ('K') | « Source/web/tests/WebDocumentTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebFrameTest.cpp
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
index ed37af9ec251f6c0a1fff35466be1896532ba67b..e774a5f9c0b313952dd5d3844710b59e81c55bb8 100644
--- a/Source/web/tests/WebFrameTest.cpp
+++ b/Source/web/tests/WebFrameTest.cpp
@@ -704,10 +704,10 @@ static bool setTextAutosizingMultiplier(Document* document, float multiplier)
{
bool multiplierSet = false;
for (LayoutObject* renderer = document->renderView(); renderer; renderer = renderer->nextInPreOrder()) {
- if (renderer->style()) {
- renderer->style()->setTextAutosizingMultiplier(multiplier);
+ if (LayoutStyle* style = renderer->mutableStyle()) {
+ style->setTextAutosizingMultiplier(multiplier);
- EXPECT_EQ(multiplier, renderer->style()->textAutosizingMultiplier());
+ EXPECT_EQ(multiplier, style->textAutosizingMultiplier());
multiplierSet = true;
}
}
« Source/web/mac/WebSubstringUtil.mm ('K') | « Source/web/tests/WebDocumentTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698