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

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: Blind fix for Mac. Created 5 years, 11 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/web/tests/WebFrameTest.cpp
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
index d9166f990e44cd01d3fbc3d18187fa59b6a4ea96..87686e2461eae8a3bbdfc987dfa0bf8b98e0db58 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 (RenderObject* renderer = document->renderView(); renderer; renderer = renderer->nextInPreOrder()) {
- if (renderer->style()) {
- renderer->style()->setTextAutosizingMultiplier(multiplier);
+ if (RenderStyle* style = renderer->deprecatedMutableStyle()) {
+ style->setTextAutosizingMultiplier(multiplier);
- EXPECT_EQ(multiplier, renderer->style()->textAutosizingMultiplier());
+ EXPECT_EQ(multiplier, style->textAutosizingMultiplier());
multiplierSet = true;
}
}
« Source/core/css/resolver/StyleResolver.cpp ('K') | « Source/web/tests/WebDocumentTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698