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

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

Created:
4 years, 3 months ago by bokan
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
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 Committed: https://crrev.com/6b08cd23a5bbe4e1d95bb7e0431fc743e6b0180c Cr-Commit-Position: refs/heads/master@{#423030}

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : Build Fix #

Patch Set 4 : None #

Patch Set 5 : Store popup size changes #

Patch Set 6 : Rebase + picker-common.js changes #

Patch Set 7 : Rebase #

Patch Set 8 : Update expectations #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -30 lines) Patch
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -4 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 5 chunks +20 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/forms/select/input-select-after-resize.html View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/forms/select/input-select-after-resize-expected.txt View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/platform/linux/fast/forms/select/input-select-after-resize-expected.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebWidgetClient.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 53 (38 generated)
bokan
Hi Avi, ptal.
4 years, 3 months ago (2016-09-15 23:19:48 UTC) #12
Avi (use Gerrit)
I have no idea how this code works, sorry. Can you find other reviewers?
4 years, 3 months ago (2016-09-16 02:00:02 UTC) #16
bokan
On 2016/09/16 02:00:02, Avi wrote: > I have no idea how this code works, sorry. ...
4 years, 3 months ago (2016-09-16 15:49:32 UTC) #17
bokan
Hi sievers@, Looks like my timing is bad, I just saw you're departing soon :(. ...
4 years, 2 months ago (2016-09-30 21:10:20 UTC) #30
no sievers
On 2016/09/30 21:10:20, bokan wrote: > Hi sievers@, > > Looks like my timing is ...
4 years, 2 months ago (2016-09-30 21:34:08 UTC) #31
bokan
Ok, thanks. It seems like no one's touched this code in forever. tkent@, you've done ...
4 years, 2 months ago (2016-09-30 21:44:40 UTC) #33
tkent
I'm not familiar with non-Blink part of this CL, but it looks reasonable. third_party/WebKit lgtm. ...
4 years, 2 months ago (2016-10-03 04:04:58 UTC) #38
ananta
content\renderer lgtm
4 years, 2 months ago (2016-10-04 01:33:16 UTC) #39
bokan
+aelias@ for content/renderer OWNER
4 years, 2 months ago (2016-10-04 14:22:16 UTC) #41
aelias_OOO_until_Jul13
lgtm
4 years, 2 months ago (2016-10-04 21:12:12 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2333353002/180001
4 years, 2 months ago (2016-10-04 21:32:53 UTC) #44
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/web/ChromeClientImpl.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-04 23:03:28 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2333353002/200001
4 years, 2 months ago (2016-10-04 23:16:19 UTC) #49
commit-bot: I haz the power
Committed patchset #9 (id:200001)
4 years, 2 months ago (2016-10-05 00:55:52 UTC) #51
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 00:57:59 UTC) #53
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6b08cd23a5bbe4e1d95bb7e0431fc743e6b0180c
Cr-Commit-Position: refs/heads/master@{#423030}

Powered by Google App Engine
This is Rietveld 408576698