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

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

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: rename to ScrollbarOverlayColorTheme Created 4 years, 2 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
Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
index ed95ef9da96d7e9a04faeb27a7477c5350655248..8b3a3c2afe775d8e41f63fc28f4621170afb758e 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
@@ -162,8 +162,13 @@ void ScrollbarThemeOverlay::paintThumb(GraphicsContext& context,
if (scrollbar.orientation() == VerticalScrollbar)
part = WebThemeEngine::PartScrollbarVerticalThumb;
+ blink::WebThemeEngine::ExtraParams params;
+ params.scrollbarTheme =
+ static_cast<WebThemeEngine::ScrollbarOverlayColorTheme>(
+ scrollbar.getScrollbarOverlayColorTheme());
+
Platform::current()->themeEngine()->paint(canvas, part, state, WebRect(rect),
- 0);
+ &params);
}
ScrollbarPart ScrollbarThemeOverlay::hitTest(

Powered by Google App Engine
This is Rietveld 408576698