diff options
Diffstat (limited to 'webkit/tools/test_shell/mac')
-rw-r--r-- | webkit/tools/test_shell/mac/test_webview_delegate.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/mac/test_webview_delegate.mm b/webkit/tools/test_shell/mac/test_webview_delegate.mm index 369eaa4..3d298b9 100644 --- a/webkit/tools/test_shell/mac/test_webview_delegate.mm +++ b/webkit/tools/test_shell/mac/test_webview_delegate.mm @@ -112,15 +112,17 @@ WebRect TestWebViewDelegate::windowRect() { } void TestWebViewDelegate::setWindowRect(const WebRect& rect) { - // TODO: Mac window movement if (this == shell_->delegate()) { - // ignored + set_fake_window_rect(rect); } else if (this == shell_->popup_delegate()) { popup_bounds_ = rect; // The initial position of the popup. } } WebRect TestWebViewDelegate::rootWindowRect() { + if (using_fake_rect_) { + return fake_window_rect(); + } if (WebWidgetHost* host = GetWidgetHost()) { NSView *view = host->view_handle(); NSRect rect = [[[view window] contentView] frame]; |