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

Issue 2840223002: Use dark scrollbar theme for transparent frames. (Closed)

Created:
3 years, 7 months ago by bokan
Modified:
3 years, 7 months ago
Reviewers:
skobes, jbroman
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use dark scrollbar theme for transparent frames. If the given background color is totally transparent we should default to using the dark theme since that's the default. ChromeOS OOBE pages, for example, set an override background color of "TRANSPARENT" which is #00000000 in RGBA. Our old logic looked only at the RGB bits so it concluded that the frame had a black background and used white scollbars. We don't have enough information in Blink to know what theme to use in this case but falling back to the default theme should be good enough. BUG=709978 Review-Url: https://codereview.chromium.org/2840223002 Cr-Commit-Position: refs/heads/master@{#467382} Committed: https://chromium.googlesource.com/chromium/src/+/f82b1ff2761897b38ae79042810fb0a9f3ff747f

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 chunk +1 line, -1 line 2 comments Download
M third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp View 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
bokan
3 years, 7 months ago (2017-04-26 15:14:02 UTC) #4
skobes
lgtm
3 years, 7 months ago (2017-04-26 15:58:49 UTC) #7
bokan
+jbroman@ for platform
3 years, 7 months ago (2017-04-26 18:08:19 UTC) #11
jbroman
lgtm https://codereview.chromium.org/2840223002/diff/1/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/2840223002/diff/1/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp#newcode439 third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:439: if (lightness <= .5 && background_color.Alpha()) Possibly the ...
3 years, 7 months ago (2017-04-26 18:10:20 UTC) #12
bokan
https://codereview.chromium.org/2840223002/diff/1/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/2840223002/diff/1/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp#newcode439 third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:439: if (lightness <= .5 && background_color.Alpha()) On 2017/04/26 18:10:20, ...
3 years, 7 months ago (2017-04-26 18:11:58 UTC) #13
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/2840223002/1
3 years, 7 months ago (2017-04-26 18:12:27 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-04-26 18:18:20 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/f82b1ff2761897b38ae79042810f...

Powered by Google App Engine
This is Rietveld 408576698