Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp |
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp |
index 0c1ef12f7397147717857a10c601f1ed8181b498..45c1d47b252270283f021038985533db4ad76a8d 100644 |
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp |
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp |
@@ -213,16 +213,14 @@ |
int ScrollbarThemeAura::minimumThumbLength( |
const ScrollbarThemeClient& scrollbar) { |
if (scrollbar.orientation() == VerticalScrollbar) { |
- return Platform::current() |
- ->themeEngine() |
- ->getSize(WebThemeEngine::PartScrollbarVerticalThumb) |
- .height; |
- } |
- |
- return Platform::current() |
- ->themeEngine() |
- ->getSize(WebThemeEngine::PartScrollbarHorizontalThumb) |
- .width; |
+ IntSize size = Platform::current()->themeEngine()->getSize( |
+ WebThemeEngine::PartScrollbarVerticalThumb); |
+ return size.height(); |
+ } |
+ |
+ IntSize size = Platform::current()->themeEngine()->getSize( |
+ WebThemeEngine::PartScrollbarHorizontalThumb); |
+ return size.width(); |
} |
void ScrollbarThemeAura::paintTrackBackground(GraphicsContext& context, |