Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(87)

Unified Diff: Source/WebCore/platform/ios/ScrollViewIOS.mm

Issue 321310043: WIP: Make window.inner{width,height} use layout viewport
Patch Set: Better fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/platform/ScrollableArea.cpp ('k') | Source/WebCore/platform/mac/ScrollViewMac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/WebCore/platform/ScrollableArea.cpp ('k') | Source/WebCore/platform/mac/ScrollViewMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b