Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Issue 2398763003: Don't set view_screen_rect_ on RequestMove ACK (Closed)

Created:
4 years, 2 months ago by bokan
Modified:
4 years, 2 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2840
Project:
chromium
Visibility:
Public.

Description

Don't set view_screen_rect_ on RequestMove ACK In https://codereview.chromium.org/1894333002/ I made the OnRequestMoveAck method reset the view_screen_rect_ variable to the pending rect. This was a mistake because the move request is on the *window* rect, not the view rect. Additionally, it's unnecessary since it's the browser's job to send an UpdateScreenRects message to the renderer with the new view and window bounds. This only happens for non-popup windows so popups will now store the view/window rects immediately. This patch removes the reset in the Ack method. In addition, the windowRect method confusingly returns the view_screen_rect or pending_window_rect if there's a pending move. I've changed this to return the window_screen_rect_ and added a viewRect method for callers that actually expect the view. I also did some cleanup and replaced the redundant RootWindowRect with windowRect. BUG=638671 Review-Url: https://codereview.chromium.org/2333353002 Cr-Commit-Position: refs/heads/master@{#423030} (cherry picked from commit 6b08cd23a5bbe4e1d95bb7e0431fc743e6b0180c) Committed: https://chromium.googlesource.com/chromium/src/+/7941224be415b3ba40c1e1e536b7545b215e4560

Patch Set 1 #

Messages

Total messages: 2 (1 generated)
bokan
4 years, 2 months ago (2016-10-06 13:52:53 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
7941224be415b3ba40c1e1e536b7545b215e4560.

Powered by Google App Engine
This is Rietveld 408576698