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

Issue 1456753002: Compute the popup location/size correctly when use-zoom-for-dsf is enabled. (Closed)

Created:
5 years, 1 month ago by oshima
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Compute the popup location/size correctly when use-zoom-for-dsf is enabled. * Add WebWidgetClient::convertViewportToWindow and updated Popup code to use them when computing the anchor rect. * Apply scale parameter to zoomFactor used to scale the popup in js. * Changed picker JS code to use screen coordinates always rather than mix of viewport and screen. * Refactored RenderViewImpl/RenderWidget so that the device scale factor gets set in content rather than from Blink. BUG=485650 TEST=-dsf2.html, -dsf2-with-zoom.html added for popup-menu, calendar-picker and suggestion picker TBR=rjkroege@chromium.org Committed: https://crrev.com/841bbae802203a51e8a26fb94a7af112bcba7e52 Cr-Commit-Position: refs/heads/master@{#366048}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : sync, update the code #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : rebase #

Patch Set 6 : added test #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : rebase #

Patch Set 10 : update TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -105 lines) Patch
M components/html_viewer/web_test_delegate_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/html_viewer/web_test_delegate_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/test_runner/test_runner.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M components/test_runner/test_runner.cc View 1 2 3 4 5 4 chunks +14 lines, -0 lines 0 comments Download
M components/test_runner/web_test_delegate.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/hidpi/calendar-picker-appearance-dsf2.html View 1 2 3 4 5 1 chunk +8 lines, -21 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/hidpi/calendar-picker-appearance-dsf2-with-zoom.html View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/hidpi/data-suggestion-picker-appearance-dsf2.html View 1 2 3 4 5 2 chunks +24 lines, -17 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/hidpi/data-suggestion-picker-appearance-dsf2-with-zoom.html View 1 2 3 4 5 2 chunks +26 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2.html View 1 2 3 4 5 2 chunks +2 lines, -8 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2-with-zoom.html View 1 2 3 4 5 3 chunks +5 lines, -9 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/calendar-picker-appearance-dsf2-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/calendar-picker-appearance-dsf2-expected.txt View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/calendar-picker-appearance-dsf2-with-zoom-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/calendar-picker-appearance-dsf2-with-zoom-expected.txt View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/data-suggestion-picker-appearance-dsf2-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/data-suggestion-picker-appearance-dsf2-expected.txt View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/data-suggestion-picker-appearance-dsf2-with-zoom-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/data-suggestion-picker-appearance-dsf2-with-zoom-expected.txt View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/popup-menu-appearance-dsf2-with-zoom-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/platform/linux/fast/hidpi/popup-menu-appearance-dsf2-with-zoom-expected.txt View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/hidpi/popup-menu-appearance-dsf2-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/DateTimeChooserImpl.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/PopupMenuImpl.cpp View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 3 4 5 6 chunks +15 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/resources/listPicker.js View 1 1 chunk +11 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/resources/suggestionPicker.js View 1 2 3 4 5 2 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 99 (56 generated)
oshima
Hi, can you take a look and let me know what you think. I also ...
5 years, 1 month ago (2015-11-17 23:31:41 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/100001
5 years, 1 month ago (2015-11-17 23:36:29 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-18 01:13:18 UTC) #13
tkent
We have a mac-retina layout test bot. So, adding some unittests should be enough. https://codereview.chromium.org/1456753002/diff/100001/third_party/WebKit/Source/web/ChromeClientImpl.cpp ...
5 years, 1 month ago (2015-11-18 07:06:39 UTC) #15
oshima
thanks, can you point me that mac test file? https://codereview.chromium.org/1456753002/diff/100001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/1456753002/diff/100001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode512 third_party/WebKit/Source/web/ChromeClientImpl.cpp:512: ...
5 years, 1 month ago (2015-11-18 13:03:24 UTC) #16
tkent
> can you point me that mac test file? It seems I was wrong. mac-retina ...
5 years, 1 month ago (2015-11-19 03:27:18 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/120001
5 years ago (2015-12-01 09:51:08 UTC) #19
oshima
On 2015/11/19 03:27:18, tkent wrote: > > can you point me that mac test file? ...
5 years ago (2015-12-01 10:03:32 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-01 11:39:47 UTC) #22
tkent
> * Is highdpi test only for mac? I think all platforms support it. > ...
5 years ago (2015-12-02 00:23:30 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/160001
5 years ago (2015-12-03 19:22:16 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/87909) chromeos_x86-generic_chromium_compile_only_ng on ...
5 years ago (2015-12-03 19:40:36 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/180001
5 years ago (2015-12-03 19:50:09 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/165914) mac_chromium_compile_dbg_ng on ...
5 years ago (2015-12-03 20:09:25 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/200001
5 years ago (2015-12-03 20:30:07 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-03 21:47:47 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/280001
5 years ago (2015-12-08 20:38:26 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/300001
5 years ago (2015-12-08 20:43:41 UTC) #47
oshima
I tried to add a test, but turns out I need to fix test harness ...
5 years ago (2015-12-08 21:21:32 UTC) #51
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-08 23:15:31 UTC) #53
tkent
overall change looks good. I don't want to accept this without tests. Let's fix crbug.com/567837. ...
5 years ago (2015-12-09 04:35:51 UTC) #54
oshima
On 2015/12/09 04:35:51, tkent wrote: > overall change looks good. > > I don't want ...
5 years ago (2015-12-09 06:48:07 UTC) #55
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/380001
5 years ago (2015-12-16 23:13:46 UTC) #59
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/121553) win8_chromium_ng on ...
5 years ago (2015-12-16 23:43:57 UTC) #61
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/400001
5 years ago (2015-12-16 23:58:55 UTC) #63
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/420001
5 years ago (2015-12-17 02:35:36 UTC) #65
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/338) android_chromium_gn_compile_dbg on ...
5 years ago (2015-12-17 03:09:19 UTC) #67
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/440001
5 years ago (2015-12-17 03:37:34 UTC) #69
oshima
Added tests. PTAL. https://codereview.chromium.org/1456753002/diff/300001/third_party/WebKit/Source/web/resources/suggestionPicker.js File third_party/WebKit/Source/web/resources/suggestionPicker.js (right): https://codereview.chromium.org/1456753002/diff/300001/third_party/WebKit/Source/web/resources/suggestionPicker.js#newcode144 third_party/WebKit/Source/web/resources/suggestionPicker.js:144: var totalHeight = ListBorder On 2015/12/09 ...
5 years ago (2015-12-17 05:01:28 UTC) #70
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/156769)
5 years ago (2015-12-17 05:12:21 UTC) #72
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/440001
5 years ago (2015-12-17 08:53:01 UTC) #74
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/156864)
5 years ago (2015-12-17 10:14:58 UTC) #76
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/440001
5 years ago (2015-12-17 16:43:27 UTC) #78
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/156994)
5 years ago (2015-12-17 18:07:31 UTC) #80
tkent
lgtm. should mark popup-menu-appearance-dsf2.html [ NeedsRebaseline] on Mac.
5 years ago (2015-12-18 00:14:36 UTC) #82
oshima
mkwst@ -> content/shell/renderer/layout/test owner
5 years ago (2015-12-18 02:11:31 UTC) #85
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/480001
5 years ago (2015-12-18 02:11:36 UTC) #86
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-18 03:26:23 UTC) #88
Mike West
components/test_runner and c/s/r/layout_test LGTM.
5 years ago (2015-12-18 06:59:40 UTC) #89
oshima
TBR'ing rjkroege@ for trivial changes in components/html_viewer/
5 years ago (2015-12-18 08:06:47 UTC) #91
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456753002/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456753002/480001
5 years ago (2015-12-18 08:08:43 UTC) #95
commit-bot: I haz the power
Committed patchset #10 (id:480001)
5 years ago (2015-12-18 08:14:38 UTC) #97
commit-bot: I haz the power
5 years ago (2015-12-18 08:15:26 UTC) #99
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/841bbae802203a51e8a26fb94a7af112bcba7e52
Cr-Commit-Position: refs/heads/master@{#366048}

Powered by Google App Engine
This is Rietveld 408576698