| Index: third_party/WebKit/Source/core/paint/FramePainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/FramePainter.cpp b/third_party/WebKit/Source/core/paint/FramePainter.cpp
|
| index 447f20c8db45d7eb37087094a254490b83302eac..2ba8f3fd04a949705356eb42848a92f1662d5d0f 100644
|
| --- a/third_party/WebKit/Source/core/paint/FramePainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/FramePainter.cpp
|
| @@ -228,8 +228,17 @@ void FramePainter::paintScrollCorner(GraphicsContext& context,
|
| return;
|
| }
|
|
|
| - ScrollbarTheme::theme().paintScrollCorner(context, *frameView().layoutView(),
|
| - cornerRect);
|
| + ScrollbarTheme* theme = nullptr;
|
| +
|
| + if (frameView().horizontalScrollbar()) {
|
| + theme = &frameView().horizontalScrollbar()->theme();
|
| + } else if (frameView().verticalScrollbar()) {
|
| + theme = &frameView().verticalScrollbar()->theme();
|
| + } else {
|
| + NOTREACHED();
|
| + }
|
| +
|
| + theme->paintScrollCorner(context, *frameView().layoutView(), cornerRect);
|
| }
|
|
|
| void FramePainter::paintScrollbar(GraphicsContext& context,
|
|
|