summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/ScrollbarThemeComposite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/ScrollbarThemeComposite.cpp')
-rw-r--r--WebCore/platform/ScrollbarThemeComposite.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/WebCore/platform/ScrollbarThemeComposite.cpp b/WebCore/platform/ScrollbarThemeComposite.cpp
index d28e1c3..fdac14d 100644
--- a/WebCore/platform/ScrollbarThemeComposite.cpp
+++ b/WebCore/platform/ScrollbarThemeComposite.cpp
@@ -296,10 +296,9 @@ void ScrollbarThemeComposite::paintScrollCorner(ScrollView* view, GraphicsContex
{
FrameView* frameView = static_cast<FrameView*>(view);
Page* page = frameView->frame() ? frameView->frame()->page() : 0;
- if (page && page->settings()->shouldPaintCustomScrollbars()) {
- if (!page->chrome()->client()->paintCustomScrollCorner(context, cornerRect))
- context->fillRect(cornerRect, Color::white, DeviceColorSpace);
- }
+ if (page && page->settings()->shouldPaintCustomScrollbars() && page->chrome()->client()->paintCustomScrollCorner(context, cornerRect))
+ return;
+ context->fillRect(cornerRect, Color::white, DeviceColorSpace);
}
}