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

Unified Diff: Source/core/layout/LayoutThemeChromiumAndroid.cpp

Issue 894393003: Constify and use reference for RenderStyle in LayoutTheme (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/layout/LayoutThemeChromiumAndroid.cpp
diff --git a/Source/core/layout/LayoutThemeChromiumAndroid.cpp b/Source/core/layout/LayoutThemeChromiumAndroid.cpp
index ae0d5a471097f966d0ee36edc6920cd730305a10..4de722fa472e1f106cdfd373440746ed78ded103 100644
--- a/Source/core/layout/LayoutThemeChromiumAndroid.cpp
+++ b/Source/core/layout/LayoutThemeChromiumAndroid.cpp
@@ -71,15 +71,15 @@ String LayoutThemeChromiumAndroid::extraDefaultStyleSheet()
}
-void LayoutThemeChromiumAndroid::adjustInnerSpinButtonStyle(RenderStyle* style, Element*) const
+void LayoutThemeChromiumAndroid::adjustInnerSpinButtonStyle(RenderStyle& style, Element*) const
{
if (LayoutTestSupport::isRunningLayoutTest()) {
// Match Linux spin button style in layout tests.
// FIXME: Consider removing the conditional if a future Android theme matches this.
IntSize size = Platform::current()->themeEngine()->getSize(WebThemeEngine::PartInnerSpinButton);
- style->setWidth(Length(size.width(), Fixed));
- style->setMinWidth(Length(size.width(), Fixed));
+ style.setWidth(Length(size.width(), Fixed));
+ style.setMinWidth(Length(size.width(), Fixed));
}
}

Powered by Google App Engine
This is Rietveld 408576698