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

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 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/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 a9b2f35a315b3cf45519b7fe17902826e62a8e2d..5de7a0744f53e3328026de0c6b04cf36cb8757eb 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;
}
}
« no previous file with comments | « Source/web/tests/WebDocumentTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698