Index: Source/platform/scroll/ScrollbarThemeGtkOrAura.cpp |
diff --git a/Source/platform/scroll/ScrollbarThemeGtkOrAura.cpp b/Source/platform/scroll/ScrollbarThemeGtkOrAura.cpp |
index 05213464211107014b8fc21fb2f1e944f995a58b..65b076f9e5133c85af4c532de8ab935c23420188 100644 |
--- a/Source/platform/scroll/ScrollbarThemeGtkOrAura.cpp |
+++ b/Source/platform/scroll/ScrollbarThemeGtkOrAura.cpp |
@@ -62,6 +62,9 @@ ScrollbarTheme* ScrollbarTheme::nativeTheme() |
int ScrollbarThemeGtkOrAura::scrollbarThickness(ScrollbarControlSize controlSize) |
{ |
// Horiz and Vert scrollbars are the same thickness. |
+ // In unit tests we don't have the mock theme engine (because of layering violations), so we hard code the size (see bug 327470). |
+ if (useMockTheme()) |
+ return 15; |
IntSize scrollbarSize = blink::Platform::current()->themeEngine()->getSize(blink::WebThemeEngine::PartScrollbarVerticalTrack); |
return scrollbarSize.width(); |
} |