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

Issue 1560403002: Scale scrollbar in use-zoom-for-dsf mode (Closed)

Created:
4 years, 11 months ago by oshima
Modified:
4 years, 11 months ago
Reviewers:
skobes, eae
CC:
chromium-reviews, blink-reviews, cc-bugs_chromium.org, dshwang, slimming-paint-reviews_chromium.org, blink-reviews-paint_chromium.org, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Scale scrollbar in use-zoom-for-dsf mode * Scale the size of scrollbar * Compute the trackRect in ScrollbarThemeNonMacCommon using width/height of the reference scrollbar to compute thickness, instead of using scrollbarThickness BUG=485650 TEST=manual. Layout test will be covered in a separate CL that adds virtual test suite for this mode. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/0a1920a7d4dd833fa8cffb4b7acd38b040236326 Cr-Commit-Position: refs/heads/master@{#369477}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Total comments: 1

Patch Set 9 : remove unintentional change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -23 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 4 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.cpp View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/HostWindow.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.h View 1 2 3 4 5 6 5 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp View 1 2 3 4 5 6 4 chunks +17 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeNonMacCommon.cpp View 1 2 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 86 (41 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/80001
4 years, 11 months ago (2016-01-07 02:39:56 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-07 03:57:22 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/1560403002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/100001
4 years, 11 months ago (2016-01-07 08:23:09 UTC) #11
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/161693)
4 years, 11 months ago (2016-01-07 08:44:09 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/120001
4 years, 11 months ago (2016-01-07 09:09:47 UTC) #15
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/4934)
4 years, 11 months ago (2016-01-07 09:31:16 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/1560403002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/140001
4 years, 11 months ago (2016-01-07 15:15:22 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/160001
4 years, 11 months ago (2016-01-07 18:19:16 UTC) #24
oshima
4 years, 11 months ago (2016-01-07 18:37:48 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/180001
4 years, 11 months ago (2016-01-07 18:37:54 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-07 20:15:03 UTC) #34
skobes
https://codereview.chromium.org/1560403002/diff/180001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/1560403002/diff/180001/cc/layers/painted_scrollbar_layer.cc#newcode286 cc/layers/painted_scrollbar_layer.cc:286: gfx::Rect adjusted_layer_rect( "scaled_layer_rect" is clearer https://codereview.chromium.org/1560403002/diff/180001/cc/layers/painted_scrollbar_layer.cc#newcode287 cc/layers/painted_scrollbar_layer.cc:287: layer_rect.origin(), Don't ...
4 years, 11 months ago (2016-01-07 21:49:10 UTC) #35
oshima
https://codereview.chromium.org/1560403002/diff/180001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/1560403002/diff/180001/cc/layers/painted_scrollbar_layer.cc#newcode286 cc/layers/painted_scrollbar_layer.cc:286: gfx::Rect adjusted_layer_rect( On 2016/01/07 21:49:10, skobes wrote: > "scaled_layer_rect" ...
4 years, 11 months ago (2016-01-09 00:58:39 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/200001
4 years, 11 months ago (2016-01-09 00:59:45 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-09 02:19:13 UTC) #40
skobes
https://codereview.chromium.org/1560403002/diff/180001/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp File third_party/WebKit/Source/platform/scroll/Scrollbar.cpp (right): https://codereview.chromium.org/1560403002/diff/180001/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp#newcode83 third_party/WebKit/Source/platform/scroll/Scrollbar.cpp:83: IntRect tmp(0, 0, 100, 0); On 2016/01/09 00:58:39, oshima ...
4 years, 11 months ago (2016-01-11 03:28:30 UTC) #41
skobes
https://codereview.chromium.org/1560403002/diff/180001/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp File third_party/WebKit/Source/platform/scroll/Scrollbar.cpp (right): https://codereview.chromium.org/1560403002/diff/180001/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp#newcode83 third_party/WebKit/Source/platform/scroll/Scrollbar.cpp:83: IntRect tmp(0, 0, 100, 0); On 2016/01/11 03:28:29, skobes ...
4 years, 11 months ago (2016-01-11 03:30:52 UTC) #42
oshima
On 2016/01/11 03:28:30, skobes wrote: > https://codereview.chromium.org/1560403002/diff/180001/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp > File third_party/WebKit/Source/platform/scroll/Scrollbar.cpp (right): > > https://codereview.chromium.org/1560403002/diff/180001/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp#newcode83 > ...
4 years, 11 months ago (2016-01-11 18:58:33 UTC) #43
oshima
Hmm, my message seems to be removed for some reason. Here is another try. On ...
4 years, 11 months ago (2016-01-11 19:32:23 UTC) #44
oshima
ping?
4 years, 11 months ago (2016-01-12 18:16:18 UTC) #45
skobes
On 2016/01/12 18:16:18, oshima wrote: > ping? Can you add the comment in Scrollbar.cpp explaining ...
4 years, 11 months ago (2016-01-12 19:06:28 UTC) #46
oshima
On 2016/01/12 19:06:28, skobes wrote: > On 2016/01/12 18:16:18, oshima wrote: > > ping? > ...
4 years, 11 months ago (2016-01-12 19:33:45 UTC) #47
skobes
lgtm
4 years, 11 months ago (2016-01-12 19:41:57 UTC) #48
oshima
eae@ -> WebKit/Source/platform owner danakj@ -> cc/ owner
4 years, 11 months ago (2016-01-12 20:04:34 UTC) #50
danakj
https://codereview.chromium.org/1560403002/diff/220001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/1560403002/diff/220001/cc/layers/painted_scrollbar_layer.cc#newcode282 cc/layers/painted_scrollbar_layer.cc:282: // If zoom is used to scale the content ...
4 years, 11 months ago (2016-01-12 20:07:03 UTC) #51
oshima
https://codereview.chromium.org/1560403002/diff/220001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/1560403002/diff/220001/cc/layers/painted_scrollbar_layer.cc#newcode282 cc/layers/painted_scrollbar_layer.cc:282: // If zoom is used to scale the content ...
4 years, 11 months ago (2016-01-12 23:19:05 UTC) #52
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/260001
4 years, 11 months ago (2016-01-13 02:22:30 UTC) #56
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/101329)
4 years, 11 months ago (2016-01-13 03:13:16 UTC) #58
oshima
skobes@, can you take another look? I added Scrollbar::scrollbarThickness to deal with dynamic dsf change. ...
4 years, 11 months ago (2016-01-13 23:00:51 UTC) #59
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/280001
4 years, 11 months ago (2016-01-13 23:05:22 UTC) #61
skobes
https://codereview.chromium.org/1560403002/diff/280001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1560403002/diff/280001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode251 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:251: horizontalThickness = horizontalScrollbar->scrollbarThickness(); This line and the next are ...
4 years, 11 months ago (2016-01-13 23:46:00 UTC) #62
oshima
ptal https://codereview.chromium.org/1560403002/diff/280001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1560403002/diff/280001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode251 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:251: horizontalThickness = horizontalScrollbar->scrollbarThickness(); On 2016/01/13 23:46:00, skobes wrote: ...
4 years, 11 months ago (2016-01-13 23:56:45 UTC) #64
skobes
lgtm except... https://codereview.chromium.org/1560403002/diff/320001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/1560403002/diff/320001/cc/layers/painted_scrollbar_layer.cc#newcode290 cc/layers/painted_scrollbar_layer.cc:290: LOG(ERROR) << "scale:" << scale_x << "x" ...
4 years, 11 months ago (2016-01-14 00:00:36 UTC) #66
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/320001
4 years, 11 months ago (2016-01-14 00:00:39 UTC) #67
oshima
On 2016/01/14 00:00:36, skobes wrote: > lgtm except... > > https://codereview.chromium.org/1560403002/diff/320001/cc/layers/painted_scrollbar_layer.cc > File cc/layers/painted_scrollbar_layer.cc (right): ...
4 years, 11 months ago (2016-01-14 00:05:40 UTC) #69
oshima
eae@ -> owners
4 years, 11 months ago (2016-01-14 00:06:48 UTC) #70
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/340001
4 years, 11 months ago (2016-01-14 08:07:12 UTC) #72
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_TIMED_OUT, no build URL)
4 years, 11 months ago (2016-01-14 10:08:20 UTC) #74
eae
LGTM
4 years, 11 months ago (2016-01-14 18:27:06 UTC) #75
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560403002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560403002/340001
4 years, 11 months ago (2016-01-14 18:33:18 UTC) #78
commit-bot: I haz the power
Committed patchset #9 (id:340001)
4 years, 11 months ago (2016-01-14 18:39:45 UTC) #80
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/0a1920a7d4dd833fa8cffb4b7acd38b040236326 Cr-Commit-Position: refs/heads/master@{#369477}
4 years, 11 months ago (2016-01-14 18:40:31 UTC) #82
huangs
A revert of this CL (patchset #9 id:340001) has been created in https://codereview.chromium.org/1586983004/ by huangs@chromium.org. ...
4 years, 11 months ago (2016-01-14 19:09:27 UTC) #83
oshima
On 2016/01/14 19:09:27, huangs wrote: > A revert of this CL (patchset #9 id:340001) has ...
4 years, 11 months ago (2016-01-14 19:16:16 UTC) #84
oshima
4 years, 11 months ago (2016-01-14 19:23:28 UTC) #85
Message was sent while issue was closed.
On 2016/01/14 19:16:16, oshima wrote:
> On 2016/01/14 19:09:27, huangs wrote:
> > A revert of this CL (patchset #9 id:340001) has been created in
> > https://codereview.chromium.org/1586983004/ by mailto:huangs@chromium.org.
> > 
> > The reason for reverting is: This is causing oilpan compile errors under
> Clang:
> > 
> > ../../third_party/WebKit/Source/platform/scroll/Scrollbar.h:196:5: note:
> > [blink-gc] Raw pointer field 'm_hostWindow' to a GC managed class declared
> here:
> >     HostWindow* m_hostWindow;.
> 
> Thank you for reverting.
> 
> skobes@, I'm not familiar with oilpan. What's the right way to fix this?
Should
> I use RawPtrWillBeMember?

I've got help from sof@. Thanks!

Powered by Google App Engine
This is Rietveld 408576698