Index: Source/core/platform/chromium/FramelessScrollView.cpp |
diff --git a/Source/core/platform/chromium/FramelessScrollView.cpp b/Source/core/platform/chromium/FramelessScrollView.cpp |
index a2a39b83008081bb6d99025eedf1b0999bbb998f..8c810f5cf8935f7fb66de24291c8b84fc6d14e50 100644 |
--- a/Source/core/platform/chromium/FramelessScrollView.cpp |
+++ b/Source/core/platform/chromium/FramelessScrollView.cpp |
@@ -85,7 +85,10 @@ HostWindow* FramelessScrollView::hostWindow() const |
IntRect FramelessScrollView::windowClipRect(bool clipToContents) const |
{ |
- return contentsToWindow(visibleContentRect(clipToContents ? ExcludeScrollbars : IncludeScrollbars)); |
+ IntRect clipRect = visibleContentRect(clipToContents ? ExcludeScrollbars : IncludeScrollbars); |
+ if (shouldPlaceVerticalScrollbarOnLeft() && verticalScrollbar()) |
+ clipRect.move(verticalScrollbar()->width(), 0); |
+ return contentsToWindow(clipRect); |
} |
void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&) |