diff options
Diffstat (limited to 'WebKitTools/WebKitTestRunner/mac/PlatformWebViewMac.mm')
-rw-r--r-- | WebKitTools/WebKitTestRunner/mac/PlatformWebViewMac.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WebKitTools/WebKitTestRunner/mac/PlatformWebViewMac.mm b/WebKitTools/WebKitTestRunner/mac/PlatformWebViewMac.mm index 1a8696d..21db2eb 100644 --- a/WebKitTools/WebKitTestRunner/mac/PlatformWebViewMac.mm +++ b/WebKitTools/WebKitTestRunner/mac/PlatformWebViewMac.mm @@ -40,6 +40,11 @@ PlatformWebView::PlatformWebView(WKPageNamespaceRef namespaceRef) [m_window setAutodisplay:NO]; } +void PlatformWebView::resizeTo(unsigned width, unsigned height) +{ + [m_view setFrame:NSMakeRect(0, 0, width, height)]; +} + PlatformWebView::~PlatformWebView() { [m_window close]; |