Index: webkit/tools/test_shell/test_webview_delegate_win.cc |
=================================================================== |
--- webkit/tools/test_shell/test_webview_delegate_win.cc (revision 12476) |
+++ webkit/tools/test_shell/test_webview_delegate_win.cc (working copy) |
@@ -149,20 +149,7 @@ |
// Note: System will own the hrgn after we call SetWindowRgn, |
// so we don't need to call DeleteObject(hrgn) |
::SetWindowRgn(move.window, hrgn, FALSE); |
- |
- unsigned long flags = 0; |
- if (move.visible) |
- flags |= SWP_SHOWWINDOW; |
- else |
- flags |= SWP_HIDEWINDOW; |
- |
- ::SetWindowPos(move.window, |
- NULL, |
- move.window_rect.x(), |
- move.window_rect.y(), |
- move.window_rect.width(), |
- move.window_rect.height(), |
- flags); |
+ ::ShowWindow(move.window, move.visible ? SW_SHOW : SW_HIDE); |
} |
void TestWebViewDelegate::RunModal(WebWidget* webwidget) { |