| 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 b88ec7fdcd07ca9af7ea02d6f244b0144e643356..7936e3424d92066a4fefd1b1f23d2fdc2d60e80c 100644
|
| --- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
|
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
|
| @@ -323,8 +323,16 @@ ScrollbarPart ScrollbarThemeAura::invalidateOnThumbPositionChange(const Scrollba
|
| return invalidParts;
|
| }
|
|
|
| +bool ScrollbarThemeAura::hasScrollbarButtons() const
|
| +{
|
| + return Platform::current()->themeEngine()->hasScrollbarButtons();
|
| +};
|
| +
|
| IntSize ScrollbarThemeAura::buttonSize(const ScrollbarThemeClient& scrollbar)
|
| {
|
| + if (!hasScrollbarButtons())
|
| + return IntSize(0, 0);
|
| +
|
| if (scrollbar.orientation() == VerticalScrollbar) {
|
| int squareSize = scrollbar.width();
|
| return IntSize(squareSize, scrollbar.height() < 2 * squareSize ? scrollbar.height() / 2 : squareSize);
|
|
|