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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp

Issue 2851853003: Use dark scrollbar theme for transparent frames. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
index ad5c05a2c799a48b5038eff6832190f30d7afc42..457b2c23fc2a0dc23d92fe41f0b8ffd81fc3fa88 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
@@ -436,7 +436,7 @@ void ScrollableArea::RecalculateScrollbarOverlayColorTheme(
// heuristic.
double hue, saturation, lightness;
background_color.GetHSL(hue, saturation, lightness);
- if (lightness <= .5)
+ if (lightness <= .5 && background_color.Alpha())
overlay_theme = kScrollbarOverlayColorThemeLight;
if (old_overlay_theme != overlay_theme)
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698