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

Issue 1894333002: Make WebWidget::resize early out if the size doesn't change. (Closed)

Created:
4 years, 8 months ago by bokan
Modified:
4 years, 7 months ago
Reviewers:
tkent, no sievers
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WebWidget::resize early out if the size doesn't change. This was already done in most of WebWidget's descendants except for render_widget_fullscreen_pepper and WebWidgetPopupImpl. It makes more sense to check this inside the call rather than relying on the caller (RenderWidget::Resize in this case) and this simplifies some changes I'm making here in another CL: https://codereview.chromium.org/1844013002/ WebWidgetPopupImpl turned out to be caching the window rect itself. I removed this cached variable and let it just query the RenderWidget's rect instead. In doing this, I believe RenderWidget has a bug in how it handles setWindowRect. It caches the given rect and uses that when queried until a Move ACK comes back from the browser host at which point it starts returning the view_screen_rect_ again, but it never sets the view_screen_rect_. I now set the view_screen_rect_ to the pending_window_rect_ once we get the last Move ACK. BUG=600507 Committed: https://crrev.com/71cb5b185f274ee0f96b346ce8a515073e9e2975 Cr-Commit-Position: refs/heads/master@{#389984}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -24 lines) Patch
M content/renderer/render_widget.cc View 1 2 3 4 3 chunks +11 lines, -13 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 3 6 chunks +24 lines, -9 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1894333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1894333002/1
4 years, 8 months ago (2016-04-18 23:33:33 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/207143)
4 years, 8 months ago (2016-04-19 01:25:31 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1894333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1894333002/60001
4 years, 8 months ago (2016-04-21 00:47:47 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/216091)
4 years, 8 months ago (2016-04-21 01:32:10 UTC) #8
bokan
Hey sievers@, here's the cleanup I decided to split off before landing https://codereview.chromium.org/1844013002/ https://codereview.chromium.org/1894333002/diff/60001/content/renderer/render_widget.cc File ...
4 years, 8 months ago (2016-04-21 22:04:44 UTC) #11
no sievers
content looks fine, but you need a blink reviewer
4 years, 8 months ago (2016-04-22 21:58:48 UTC) #12
bokan
+tkent@, looks like you have at least some familiarity with this code. Could you take ...
4 years, 8 months ago (2016-04-25 13:12:28 UTC) #14
tkent
third_party/WebKit lgtm
4 years, 8 months ago (2016-04-25 23:05:36 UTC) #15
bokan
sievers@, WebKit is stamped, ptal.
4 years, 7 months ago (2016-04-26 21:59:29 UTC) #16
no sievers
On 2016/04/26 21:59:29, bokan wrote: > sievers@, WebKit is stamped, ptal. lgtm
4 years, 7 months ago (2016-04-26 23:21:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1894333002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1894333002/80001
4 years, 7 months ago (2016-04-27 01:51:38 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-04-27 03:45:32 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-04-27 03:46:42 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/71cb5b185f274ee0f96b346ce8a515073e9e2975
Cr-Commit-Position: refs/heads/master@{#389984}

Powered by Google App Engine
This is Rietveld 408576698