| Index: ui/views/win/hwnd_message_handler.cc
|
| diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
| index f35b155db25513a71dfb8c5e8835bf652f049fe0..3f04bd6ad72c9c012fea0e1879c045bc771a472a 100644
|
| --- a/ui/views/win/hwnd_message_handler.cc
|
| +++ b/ui/views/win/hwnd_message_handler.cc
|
| @@ -2286,8 +2286,15 @@ void HWNDMessageHandler::OnWindowPosChanging(WINDOWPOS* window_pos) {
|
| }
|
| }
|
|
|
| - if (DidClientAreaSizeChange(window_pos))
|
| + RECT window_rect;
|
| + gfx::Size old_size;
|
| + if (GetWindowRect(hwnd(), &window_rect))
|
| + old_size = gfx::Rect(window_rect).size();
|
| + gfx::Size new_size = gfx::Size(window_pos->cx, window_pos->cy);
|
| + if ((old_size != new_size && !(window_pos->flags & SWP_NOSIZE)) ||
|
| + window_pos->flags & SWP_FRAMECHANGED) {
|
| delegate_->HandleWindowSizeChanging();
|
| + }
|
|
|
| if (ScopedFullscreenVisibility::IsHiddenForFullscreen(hwnd())) {
|
| // Prevent the window from being made visible if we've been asked to do so.
|
|
|