diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp')
-rw-r--r-- | Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp b/Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp index 5404e47f8..9240df34c 100644 --- a/Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp +++ b/Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp @@ -28,6 +28,7 @@ #include "CSSValueKeywords.h" #include "Color.h" +#include "LayoutTestSupport.h" #include "PaintInfo.h" #include "PlatformSupport.h" #include "RenderMediaControlsChromium.h" @@ -56,7 +57,7 @@ RenderThemeChromiumAndroid::~RenderThemeChromiumAndroid() Color RenderThemeChromiumAndroid::systemColor(int cssValueId) const { - if (PlatformSupport::layoutTestMode() && cssValueId == CSSValueButtonface) { + if (isRunningLayoutTest() && cssValueId == CSSValueButtonface) { // Match Chromium Linux' button color in layout tests. static const Color linuxButtonGrayColor(0xffdddddd); return linuxButtonGrayColor; @@ -77,7 +78,7 @@ String RenderThemeChromiumAndroid::extraDefaultStyleSheet() void RenderThemeChromiumAndroid::adjustInnerSpinButtonStyle(StyleResolver*, RenderStyle* style, Element*) const { - if (PlatformSupport::layoutTestMode()) { + 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); |