https://bugs.webkit.org/show_bug.cgi?id=146924
WebKit part of rdar://problem/
21802456
Reviewed by Tim Horton.
Expose the FrameView's contentsSizeRespectingOverflow() via WebView, for use
by UIKit.
* WebView/WebView.mm:
(-[WebView _contentsSizeRespectingOverflow]):
* WebView/WebViewPrivate.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186909
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-07-13 Simon Fraser <simon.fraser@apple.com>
+
+ [iOS] Expose contentsSizeRespectingOverflow() via WebView so UIWebView can use it
+ https://bugs.webkit.org/show_bug.cgi?id=146924
+ WebKit part of rdar://problem/21802456
+
+ Reviewed by Tim Horton.
+
+ Expose the FrameView's contentsSizeRespectingOverflow() via WebView, for use
+ by UIKit.
+
+ * WebView/WebView.mm:
+ (-[WebView _contentsSizeRespectingOverflow]):
+ * WebView/WebViewPrivate.h:
+
2015-07-14 Anders Carlsson <andersca@apple.com>
Remove wkPopupMenu from WebCoreSystemInterface; it's not called from WebCore
return _private->page->renderTreeSize();
}
+- (NSSize)_contentsSizeRespectingOverflow
+{
+ if (FrameView* view = [self _mainCoreFrame]->view())
+ return view->contentsSizeRespectingOverflow();
+
+ return [[[[self mainFrame] frameView] documentView] bounds].size;
+}
+
- (void)_dispatchTileDidDraw:(CALayer*)tile
{
id mailDelegate = [self _webMailDelegate];
- (DOMCSSStyleDeclaration *)styleAtSelectionStart;
- (NSUInteger)_renderTreeSize;
+- (NSSize)_contentsSizeRespectingOverflow;
/*!
* @method _handleMemoryWarning