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

Issue 2394073002: RenderWidget::windowRect and viewRect should apply device emulation transform. (Closed)

Created:
4 years, 2 months ago by bokan
Modified:
4 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, jam, mlamouri+watch-content_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RenderWidget::windowRect and viewRect should apply device emulation transform. Since Blink's popup menus now rely on the RenderWidget keeping track of the view rect, the rect must return the emulated position of the popup. This is symmetric with how setWindowRect applies the transformation when setting the rect. BUG=642349 Committed: https://crrev.com/841fdc7222eefdaf63e97f3c57dfe6ea16b6b2b0 Cr-Commit-Position: refs/heads/master@{#423350}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -11 lines) Patch
M content/renderer/devtools/render_widget_screen_metrics_emulator.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 chunks +36 lines, -10 lines 0 comments Download
M content/renderer/render_widget_unittest.cc View 2 chunks +128 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
bokan
Hi Dmitry, Would you mind taking a look rather soon? This is a regression we'd ...
4 years, 2 months ago (2016-10-05 22:21:02 UTC) #2
dgozman
Thank you for the fix! lgtm modulo naming. https://codereview.chromium.org/2394073002/diff/1/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2394073002/diff/1/content/renderer/render_widget.cc#newcode1374 content/renderer/render_widget.cc:1374: if ...
4 years, 2 months ago (2016-10-05 22:40:20 UTC) #3
bokan
https://codereview.chromium.org/2394073002/diff/1/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2394073002/diff/1/content/renderer/render_widget.cc#newcode1374 content/renderer/render_widget.cc:1374: if (popup_origin_scale_for_emulation_) On 2016/10/05 22:40:20, dgozman wrote: > Let's ...
4 years, 2 months ago (2016-10-05 22:49:42 UTC) #4
bokan
+aelias@ for OWNER
4 years, 2 months ago (2016-10-05 22:50:02 UTC) #6
aelias_OOO_until_Jul13
lgtm
4 years, 2 months ago (2016-10-05 23:12:35 UTC) #7
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/2394073002/20001
4 years, 2 months ago (2016-10-05 23:18:44 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-06 00:17:39 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 00:19:33 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/841fdc7222eefdaf63e97f3c57dfe6ea16b6b2b0
Cr-Commit-Position: refs/heads/master@{#423350}

Powered by Google App Engine
This is Rietveld 408576698