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

Issue 2267123002: Scale Rect Origins Using the Specified HWND's Display (Closed)

Created:
4 years, 4 months ago by robliao
Modified:
4 years, 4 months ago
Reviewers:
oshima
CC:
chromium-reviews, robliao+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Scale Rect Origins Using the Specified HWND's Display Previously, the origin and rect sizing were scaled independently, which meant that the origin could be scaled using one display and the size could be scaled with another display. With this change, the origin uses the same display used with the size. Bonus Fix: GetScreenWinDisplayNearestDIPRect now returns the correct ScreenWinDisplay. If the display touched the DIP rect, the function would immediately return when a intersecting display would have been a better choice. BUG=636521 Committed: https://crrev.com/9383a8485d22e2f4c3ac1c7405a8f00593c6f1d9 Cr-Commit-Position: refs/heads/master@{#413782}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -15 lines) Patch
M ui/display/win/screen_win.cc View 2 chunks +25 lines, -15 lines 0 comments Download
M ui/display/win/screen_win_unittest.cc View 12 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
robliao
kulshin: Since I can't repro the issue with Chrome spanning two monitors, want to give ...
4 years, 4 months ago (2016-08-22 21:58:35 UTC) #2
robliao
oshima: Please review this CL. Thanks!
4 years, 4 months ago (2016-08-22 23:02:55 UTC) #8
Ilya Kulshin
On 2016/08/22 21:58:35, robliao wrote: > kulshin: Since I can't repro the issue with Chrome ...
4 years, 4 months ago (2016-08-23 00:34:03 UTC) #9
oshima
lgtm
4 years, 4 months ago (2016-08-23 17:49:59 UTC) #10
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/2267123002/1
4 years, 4 months ago (2016-08-23 17:52:00 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-23 17:56:45 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 18:00:16 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9383a8485d22e2f4c3ac1c7405a8f00593c6f1d9
Cr-Commit-Position: refs/heads/master@{#413782}

Powered by Google App Engine
This is Rietveld 408576698