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

Issue 1911973002: Fix scrollbar buttons at hidpi when enable-use-zoom-for-dsf is on. (Closed)

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

Description

Fix scrollbar buttons at hidpi when enable-use-zoom-for-dsf is on. Previously on Windows the scrollbar buttons were always sized at 1x and would leave ugly black space between them at the edge of the window. BUG=612874 TEST=Scrollbar buttons on Windows should look right at 1.5x and 2x device scales with the #enable-use-zoom-for-dsf flag on. Committed: https://crrev.com/6e7c308532450f3a8fedef962ac3d3e14bb80880 Cr-Commit-Position: refs/heads/master@{#394893}

Patch Set 1 #

Total comments: 16

Patch Set 2 : addressed comments, no tests #

Patch Set 3 : rewrite #

Patch Set 4 : rewrite arrow draw again #

Patch Set 5 : minor edits #

Total comments: 6

Patch Set 6 : test edits #

Total comments: 4

Patch Set 7 : native_theme_base edits #

Total comments: 2

Patch Set 8 : add suite to build #

Patch Set 9 : mark layout tests as rebaseline #

Patch Set 10 : rebaseline tests that didn't fail locally #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+815 lines, -195 lines) Patch
M content/child/webthemeengine_impl_default.h View 1 chunk +0 lines, -8 lines 0 comments Download
M content/child/webthemeengine_impl_default.cc View 3 chunks +1 line, -52 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -7 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_view_win.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 1 chunk +501 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/transforms/3d/point-mapping/3d-point-mapping-deep-expected.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp View 1 2 3 chunks +5 lines, -77 lines 0 comments Download
A third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h View 1 2 1 chunk +106 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
A third_party/WebKit/Source/platform/scroll/ScrollbarThemeAuraTest.cpp View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A ui/native_theme/native_theme_aura_unittest.cc View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_base.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_base.cc View 1 2 3 4 5 6 7 1 chunk +39 lines, -38 lines 0 comments Download

Messages

Total messages: 42 (10 generated)
Bret
4 years, 8 months ago (2016-04-22 17:47:55 UTC) #3
esprehn
Tests?
4 years, 8 months ago (2016-04-23 02:08:13 UTC) #4
Evan Stade
https://codereview.chromium.org/1911973002/diff/1/ui/native_theme/native_theme_base.cc File ui/native_theme/native_theme_base.cc (right): https://codereview.chromium.org/1911973002/diff/1/ui/native_theme/native_theme_base.cc#newcode362 ui/native_theme/native_theme_base.cc:362: int length_middle = rect.height() / 2 + 1; confusing ...
4 years, 8 months ago (2016-04-25 02:36:00 UTC) #5
esprehn
https://codereview.chromium.org/1911973002/diff/1/content/child/webthemeengine_impl_default.cc File content/child/webthemeengine_impl_default.cc (left): https://codereview.chromium.org/1911973002/diff/1/content/child/webthemeengine_impl_default.cc#oldcode24 content/child/webthemeengine_impl_default.cc:24: int32_t g_vertical_scroll_bar_width = 17; what sets these values now?
4 years, 8 months ago (2016-04-25 23:12:11 UTC) #6
Bret
I haven't forgotten about tests but I wanted to reply to the other comments. https://codereview.chromium.org/1911973002/diff/1/content/child/webthemeengine_impl_default.cc ...
4 years, 8 months ago (2016-04-25 23:24:32 UTC) #7
Evan Stade
https://codereview.chromium.org/1911973002/diff/1/ui/native_theme/native_theme_base.cc File ui/native_theme/native_theme_base.cc (right): https://codereview.chromium.org/1911973002/diff/1/ui/native_theme/native_theme_base.cc#newcode375 ui/native_theme/native_theme_base.cc:375: int arrow_base_length = arrow_altitude * 2 - 1; > ...
4 years, 8 months ago (2016-04-25 23:38:17 UTC) #8
Bret
Okay I completely rewrote the arrow drawing to just poke pixels into an arrow shape ...
4 years, 7 months ago (2016-04-29 00:52:17 UTC) #9
Evan Stade
On 2016/04/29 00:52:17, Bret Sepulveda wrote: > Okay I completely rewrote the arrow drawing to ...
4 years, 7 months ago (2016-04-29 16:27:44 UTC) #10
Bret
On 2016/04/29 16:27:44, Evan Stade wrote: > On 2016/04/29 00:52:17, Bret Sepulveda wrote: > > ...
4 years, 7 months ago (2016-04-29 21:15:48 UTC) #11
Evan Stade
On 2016/04/29 21:15:48, Bret Sepulveda wrote: > On 2016/04/29 16:27:44, Evan Stade wrote: > > ...
4 years, 7 months ago (2016-04-29 22:33:17 UTC) #12
Bret
On 2016/04/29 22:33:17, Evan Stade wrote: > On 2016/04/29 21:15:48, Bret Sepulveda wrote: > > ...
4 years, 7 months ago (2016-04-30 00:44:24 UTC) #13
Evan Stade
On 2016/04/30 00:44:24, Bret Sepulveda wrote: > On 2016/04/29 22:33:17, Evan Stade wrote: > > ...
4 years, 7 months ago (2016-05-04 03:43:09 UTC) #14
esprehn
jbroman@ and ericrk@ can you help them come up with something here that's fast and ...
4 years, 7 months ago (2016-05-04 03:56:06 UTC) #16
Bret
On 2016/05/04 03:43:09, Evan Stade wrote: > On 2016/04/30 00:44:24, Bret Sepulveda wrote: > > ...
4 years, 7 months ago (2016-05-05 22:44:36 UTC) #17
esprehn
How does this compare with DetailsMarkerPainter? Can we put the code to draw a triangle ...
4 years, 7 months ago (2016-05-06 00:41:05 UTC) #18
jbroman
For what it's worth, this seems reasonable to me at a high level, and I'm ...
4 years, 7 months ago (2016-05-06 15:40:17 UTC) #19
Bret
On 2016/05/06 00:41:05, esprehn wrote: > How does this compare with DetailsMarkerPainter? Can we put ...
4 years, 7 months ago (2016-05-06 18:23:02 UTC) #20
Bret
Any more thoughts on this change? As far as I know it's ready to go.
4 years, 7 months ago (2016-05-11 17:46:49 UTC) #21
jbroman
https://codereview.chromium.org/1911973002/diff/80001/third_party/WebKit/Source/platform/BUILD.gn File third_party/WebKit/Source/platform/BUILD.gn (right): https://codereview.chromium.org/1911973002/diff/80001/third_party/WebKit/Source/platform/BUILD.gn#newcode531 third_party/WebKit/Source/platform/BUILD.gn:531: "scroll/ScrollbarThemeAuraTest.cpp", The condition for this should probably match that ...
4 years, 7 months ago (2016-05-11 21:24:08 UTC) #22
Bret
https://codereview.chromium.org/1911973002/diff/80001/third_party/WebKit/Source/platform/BUILD.gn File third_party/WebKit/Source/platform/BUILD.gn (right): https://codereview.chromium.org/1911973002/diff/80001/third_party/WebKit/Source/platform/BUILD.gn#newcode531 third_party/WebKit/Source/platform/BUILD.gn:531: "scroll/ScrollbarThemeAuraTest.cpp", On 2016/05/11 21:24:08, jbroman wrote: > The condition ...
4 years, 7 months ago (2016-05-12 00:18:12 UTC) #23
Evan Stade
NatievThemeBase seems reasonable enough to me, lgtm https://codereview.chromium.org/1911973002/diff/100001/ui/native_theme/native_theme_base.cc File ui/native_theme/native_theme_base.cc (right): https://codereview.chromium.org/1911973002/diff/100001/ui/native_theme/native_theme_base.cc#newcode363 ui/native_theme/native_theme_base.cc:363: paint.setAntiAlias(false); i ...
4 years, 7 months ago (2016-05-12 01:10:59 UTC) #24
Bret
https://codereview.chromium.org/1911973002/diff/100001/ui/native_theme/native_theme_base.cc File ui/native_theme/native_theme_base.cc (right): https://codereview.chromium.org/1911973002/diff/100001/ui/native_theme/native_theme_base.cc#newcode363 ui/native_theme/native_theme_base.cc:363: paint.setAntiAlias(false); On 2016/05/12 01:10:59, Evan Stade wrote: > i ...
4 years, 7 months ago (2016-05-12 21:59:13 UTC) #25
jbroman
platform lgtm https://codereview.chromium.org/1911973002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h File third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h (right): https://codereview.chromium.org/1911973002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h#newcode1 third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h:1: // Copyright 2016 The Chromium Authors. All ...
4 years, 7 months ago (2016-05-13 17:35:50 UTC) #26
Bret
https://codereview.chromium.org/1911973002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h File third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h (right): https://codereview.chromium.org/1911973002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h#newcode1 third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 7 months ago (2016-05-13 22:11:00 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911973002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911973002/140001
4 years, 7 months ago (2016-05-16 17:50:55 UTC) #29
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/222385)
4 years, 7 months ago (2016-05-16 19:51:44 UTC) #31
Bret
On 2016/05/16 19:51:44, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 7 months ago (2016-05-19 20:48:16 UTC) #33
esprehn
rs lgtm
4 years, 7 months ago (2016-05-19 21:24:18 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911973002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911973002/200001
4 years, 7 months ago (2016-05-19 21:27:41 UTC) #38
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 7 months ago (2016-05-19 23:04:38 UTC) #39
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/6e7c308532450f3a8fedef962ac3d3e14bb80880 Cr-Commit-Position: refs/heads/master@{#394893}
4 years, 7 months ago (2016-05-19 23:06:06 UTC) #41
hiroshige
4 years, 7 months ago (2016-05-20 07:37:23 UTC) #42
Message was sent while issue was closed.
On 2016/05/19 23:06:06, commit-bot: I haz the power wrote:
> Patchset 11 (id:??) landed as
> https://crrev.com/6e7c308532450f3a8fedef962ac3d3e14bb80880
> Cr-Commit-Position: refs/heads/master@{#394893}

transforms/3d/point-mapping/3d-point-mapping-preserve-3d.html
is failing after this CL. I'll mark the test as failing. Please take a look.

Powered by Google App Engine
This is Rietveld 408576698