Index: Source/WebCore/platform/ios/ScrollViewIOS.mm |
diff --git a/Source/WebCore/platform/ios/ScrollViewIOS.mm b/Source/WebCore/platform/ios/ScrollViewIOS.mm |
index 3a3b9f9248003066944e7cbef20f707722209a2e..27d3e0a105b693bf5898d15e3b72cc5849944443 100644 |
--- a/Source/WebCore/platform/ios/ScrollViewIOS.mm |
+++ b/Source/WebCore/platform/ios/ScrollViewIOS.mm |
@@ -209,6 +209,28 @@ IntSize ScrollView::platformVisibleContentSizeIncludingObscuredArea(bool include |
return platformVisibleContentSize(includeScrollbars); |
} |
+int ScrollView::platformWidgetHorizontalScrollbarIntrusion() const |
+{ |
+ if (!platformWidget()) |
+ return 0; |
+ |
+ if (NSView* documentView = this->documentView()) |
+ return IntSize([documentView visibleRect].size).width() - enclosingIntRect([scrollView() documentVisibleRect]).size().width(); |
+ |
+ return 0; |
+} |
+ |
+int ScrollView::platformWidgetVerticalScrollbarIntrusion() const |
+{ |
+ if (!platformWidget()) |
+ return 0; |
+ |
+ if (NSView* documentView = this->documentView()) |
+ return IntSize([documentView visibleRect].size).height() - enclosingIntRect([scrollView() documentVisibleRect]).size().height(); |
+ |
+ return 0; |
+} |
+ |
LegacyTileCache* ScrollView::legacyTileCache() |
{ |
// Make tile cache pointer available via the main frame only. Tile cache interaction should be managed by |