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

Issue 2567093003: Prevent coordinate transformation when targeting the root RWHV (Closed)

Created:
4 years ago by kenrb
Modified:
4 years ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su, mac-reviews_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent coordinate transformation when targeting the root RWHV In some cases, an input event being targeted to the root RWHV was going through coordinate transformation, while in other cases it was not. This is normally fine because it is the identity transform anyway, but it can result in rounding error when there is a non-integer device scale factor. This was noted to cause a bug related to selections not being cleared because of coordinates from a transformed (rounded) event being compared against coordinates from a non-tranformed (unrounded) input event. This CL prevents transformation in all cases when the root is being targeted and the event is already in the coordinate space of the root. BUG=670253 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/e3a974bb76247be74aaed25df318cdffce664ff5 Cr-Commit-Position: refs/heads/master@{#438012}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -1 line) Patch
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 2 chunks +75 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
kenrb
creis: PTAL?
4 years ago (2016-12-12 22:24:08 UTC) #4
Charlie Reis
LGTM. Thanks for the test!
4 years ago (2016-12-12 23:10:16 UTC) #6
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/2567093003/1
4 years ago (2016-12-12 23:13:46 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-12-13 00:28:36 UTC) #11
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/2567093003/1
4 years ago (2016-12-13 00:39:06 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-13 03:06:56 UTC) #16
commit-bot: I haz the power
4 years ago (2016-12-13 03:10:55 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e3a974bb76247be74aaed25df318cdffce664ff5
Cr-Commit-Position: refs/heads/master@{#438012}

Powered by Google App Engine
This is Rietveld 408576698