| Index: content/common/gpu/child_window_surface_win.cc
|
| diff --git a/content/common/gpu/child_window_surface_win.cc b/content/common/gpu/child_window_surface_win.cc
|
| index 738caea87adf0926ce62a5920a8ccbe91ec4b46c..185c5374940584653f6b0d0661eb056d5320832b 100644
|
| --- a/content/common/gpu/child_window_surface_win.cc
|
| +++ b/content/common/gpu/child_window_surface_win.cc
|
| @@ -141,7 +141,10 @@ bool ChildWindowSurfaceWin::Resize(const gfx::Size& size,
|
| if (size == GetSize() && has_alpha == alpha_)
|
| return true;
|
|
|
| - if (!MoveWindow(window_, 0, 0, size.width(), size.height(), FALSE)) {
|
| + // Force a resize and redraw (but not a move, activate, etc.).
|
| + if (!SetWindowPos(window_, nullptr, 0, 0, size.width(), size.height(),
|
| + SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOCOPYBITS |
|
| + SWP_NOOWNERZORDER | SWP_NOZORDER)) {
|
| return false;
|
| }
|
| size_ = size;
|
|
|