Chromium Code Reviews| Index: webkit/tools/test_shell/test_webview_delegate_win.cc | 
| =================================================================== | 
| --- webkit/tools/test_shell/test_webview_delegate_win.cc (revision 26736) | 
| +++ webkit/tools/test_shell/test_webview_delegate_win.cc (working copy) | 
| @@ -86,7 +86,7 @@ | 
| void TestWebViewDelegate::setWindowRect(const WebRect& rect) { | 
| if (this == shell_->delegate()) { | 
| - // ignored | 
| + setFakeWindowRect(rect); | 
| } else if (this == shell_->popup_delegate()) { | 
| MoveWindow(shell_->popupWnd(), | 
| rect.x, rect.y, rect.width, rect.height, FALSE); | 
| @@ -94,7 +94,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.
 
 | 
| RECT rect; | 
| HWND root_window = ::GetAncestor(host->view_handle(), GA_ROOT); | 
| ::GetWindowRect(root_window, &rect); |