diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp')
-rw-r--r-- | Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp b/Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp index be3701913..d25a80444 100644 --- a/Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp +++ b/Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp @@ -30,7 +30,6 @@ #include "Color.h" #include "LayoutTestSupport.h" #include "PaintInfo.h" -#include "PlatformSupport.h" #include "RenderMediaControlsChromium.h" #include "RenderObject.h" #include "RenderProgress.h" @@ -38,6 +37,9 @@ #include "ScrollbarTheme.h" #include "UserAgentStyleSheets.h" +#include <public/Platform.h> +#include <public/android/WebThemeEngine.h> + namespace WebCore { PassRefPtr<RenderTheme> RenderThemeChromiumAndroid::create() @@ -81,7 +83,7 @@ void RenderThemeChromiumAndroid::adjustInnerSpinButtonStyle(StyleResolver*, Rend if (isRunningLayoutTest()) { // Match Chromium Linux spin button style in layout tests. // FIXME: Consider removing the conditional if a future Android theme matches this. - IntSize size = PlatformSupport::getThemePartSize(PlatformSupport::PartInnerSpinButton); + IntSize size = WebKit::Platform::current()->themeEngine()->getSize(WebKit::WebThemeEngine::PartInnerSpinButton); style->setWidth(Length(size.width(), Fixed)); style->setMinWidth(Length(size.width(), Fixed)); @@ -104,7 +106,7 @@ int RenderThemeChromiumAndroid::menuListArrowPadding() const { // We cannot use the scrollbar thickness here, as it's width is 0 on Android. // Instead, use the width of the scrollbar down arrow. - IntSize scrollbarSize = PlatformSupport::getThemePartSize(PlatformSupport::PartScrollbarDownArrow); + IntSize scrollbarSize = WebKit::Platform::current()->themeEngine()->getSize(WebKit::WebThemeEngine::PartScrollbarDownArrow); return scrollbarSize.width(); } |