diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/render_widget_host.cc | 4 | ||||
-rw-r--r-- | chrome/browser/render_widget_host_view_win.cc | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/render_widget_host.cc b/chrome/browser/render_widget_host.cc index 41fd233..90aac3c 100644 --- a/chrome/browser/render_widget_host.cc +++ b/chrome/browser/render_widget_host.cc @@ -340,8 +340,8 @@ void RenderWidgetHost::OnMsgClose() { } void RenderWidgetHost::OnMsgRequestMove(const gfx::Rect& pos) { - // Don't allow renderer widgets to move themselves by default. Maybe this - // policy will change if we add more types of widgets. + // Note that we ignore the position. + view_->SetSize(pos.size()); } void RenderWidgetHost::OnMsgPaintRect( diff --git a/chrome/browser/render_widget_host_view_win.cc b/chrome/browser/render_widget_host_view_win.cc index d530e5d..d927868 100644 --- a/chrome/browser/render_widget_host_view_win.cc +++ b/chrome/browser/render_widget_host_view_win.cc @@ -131,9 +131,10 @@ void RenderWidgetHostViewWin::SetSize(const gfx::Size& size) { if (is_hidden_) return; + // No SWP_NOREDRAW as autofill popups can resize and the underneath window + // should redraw in that case. UINT swp_flags = SWP_NOSENDCHANGING | SWP_NOOWNERZORDER | SWP_NOCOPYBITS | - SWP_NOMOVE | SWP_NOZORDER | SWP_NOREDRAW | SWP_NOACTIVATE | - SWP_DEFERERASE; + SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_DEFERERASE; SetWindowPos(NULL, 0, 0, size.width(), size.height(), swp_flags); render_widget_host_->WasResized(); EnsureTooltip(); |