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

Issue 1738503003: Fix overlay scroll bar color on elements with dark background (Closed)

Created:
4 years, 10 months ago by koggdal
Modified:
4 years, 9 months ago
Reviewers:
Mike West, *Xianzhu
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, kinuko+watch, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix overlay scroll bar color on elements with dark background When overlay scroll bars are used on elements with CSS `overflow` set to use scroll bars, and the background of that element is dark, the color of the scroll bar is now set to the "light" style. This was previously only done for the document (body), not for elements with a scrollable area. Whenever the background changes, the scroll bar style will be updated accordingly. Even after this change, the scroll bar is rendered with the wrong color if the scrollable element doesn't have a background of its own (but a parent element uses a dark background). Fixing the issue for scrollable elements with background set explicitly is an improvement to the current state though. BUG=588709 R=wangxianzhu@chromium.org Committed: https://crrev.com/f62a6f444cc44a24e110c647d0cd7ad3442a4c8a Cr-Commit-Position: refs/heads/master@{#378843}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Extract code + unit test + fix AUTHORS #

Patch Set 4 : Fix issue with custom scroll bar style #

Total comments: 2

Patch Set 5 : Fix custom scroll bar check #

Patch Set 6 : Rebase + fix merge conflict #

Patch Set 7 : Fix test after rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -31 lines) Patch
M AUTHORS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 2 chunks +1 line, -19 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 5 4 chunks +29 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 2 3 4 5 1 chunk +19 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (15 generated)
koggdal
4 years, 10 months ago (2016-02-24 23:25:19 UTC) #1
koggdal
On 2016/02/24 23:25:19, koggdal wrote: This is my first change to Chromium, so any suggestions ...
4 years, 10 months ago (2016-02-24 23:31:05 UTC) #4
koggdal
This is my first change to Chromium, so any suggestions would be much appreciated! I've ...
4 years, 10 months ago (2016-02-24 23:33:42 UTC) #5
Xianzhu
https://codereview.chromium.org/1738503003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1738503003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode866 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:866: } Can you extract common code in here and ...
4 years, 10 months ago (2016-02-24 23:48:27 UTC) #6
Mike West
Source/platform LGTM. Please wait for wangxianzhu@ to review the changes to /paint before landing this. ...
4 years, 10 months ago (2016-02-25 11:17:02 UTC) #8
Mike West
4 years, 10 months ago (2016-02-25 11:50:18 UTC) #11
koggdal
On 2016/02/25 11:50:18, Mike West wrote: Thank you for the comments! There's now a new ...
4 years, 10 months ago (2016-02-26 01:50:00 UTC) #12
Xianzhu
lgtm
4 years, 10 months ago (2016-02-26 17:56:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738503003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738503003/40001
4 years, 10 months ago (2016-02-26 17:57:34 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/28215)
4 years, 10 months ago (2016-02-26 18:28:56 UTC) #18
koggdal
Are the tests flaky? The Android failure doesn't look related as far as I can ...
4 years, 9 months ago (2016-03-01 08:37:48 UTC) #19
Xianzhu
On 2016/03/01 08:37:48, koggdal wrote: > Are the tests flaky? The Android failure doesn't look ...
4 years, 9 months ago (2016-03-01 18:41:32 UTC) #20
koggdal
Thanks a lot for explaining, and the hint for the issue! :) Managed to run ...
4 years, 9 months ago (2016-03-01 23:34:50 UTC) #21
Xianzhu
https://codereview.chromium.org/1738503003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1738503003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1507 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1507: m_scrollableArea->didAddScrollbar(*m_hBar, HorizontalScrollbar); I suggest to check the condition in ...
4 years, 9 months ago (2016-03-02 00:03:51 UTC) #22
koggdal
I tried checking it inside didAddScrollbar instead, but it seems like it needs to run ...
4 years, 9 months ago (2016-03-02 17:22:58 UTC) #23
Xianzhu
lgtm
4 years, 9 months ago (2016-03-02 19:27:38 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738503003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738503003/80001
4 years, 9 months ago (2016-03-02 19:28:09 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/139293) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-02 19:33:39 UTC) #29
koggdal
There was a merge conflict from this: https://codereview.chromium.org/1746283002 Rebased and fixed the problem.
4 years, 9 months ago (2016-03-02 20:03:49 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738503003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738503003/120001
4 years, 9 months ago (2016-03-02 20:32:27 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-02 21:48:44 UTC) #35
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 21:51:10 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f62a6f444cc44a24e110c647d0cd7ad3442a4c8a
Cr-Commit-Position: refs/heads/master@{#378843}

Powered by Google App Engine
This is Rietveld 408576698