Chromium Code Reviews| Index: webkit/tools/test_shell/test_webview_delegate_gtk.cc |
| =================================================================== |
| --- webkit/tools/test_shell/test_webview_delegate_gtk.cc (revision 26736) |
| +++ webkit/tools/test_shell/test_webview_delegate_gtk.cc (working copy) |
| @@ -156,7 +156,7 @@ |
| void TestWebViewDelegate::setWindowRect(const WebRect& rect) { |
| if (this == shell_->delegate()) { |
| - // ignored |
| + setFakeWindowRect(rect); |
| } else if (this == shell_->popup_delegate()) { |
| WebWidgetHost* host = GetWidgetHost(); |
| GtkWidget* drawing_area = host->view_handle(); |
| @@ -168,7 +168,9 @@ |
| } |
| WebRect TestWebViewDelegate::rootWindowRect() { |
| - if (WebWidgetHost* host = GetWidgetHost()) { |
| + if (using_fake_rect_) { |
| + return getFakeWindowRect(); |
| + } else if (WebWidgetHost* host = GetWidgetHost()) { |
|
dglazkov
2009/09/23 18:17:14
Ditto on early return.
|
| // We are being asked for the x/y and width/height of the entire browser |
| // window. This means the x/y is the distance from the corner of the |
| // screen, and the width/height is the size of the entire browser window. |