Chromium Code Reviews| 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 551326295b5a63c2ef4c2ba4bf3cfa940c06c242..baf24c0e6797393415f903c7064d382367114486 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()) |
|
jbroman
2017/04/26 18:10:20
Possibly the ideal threshold is a little higher th
bokan
2017/04/26 18:11:58
Yeah, I thought about that but the scrollbar theme
|
| overlay_theme = kScrollbarOverlayColorThemeLight; |
| if (old_overlay_theme != overlay_theme) |