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

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

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: update 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..8e1697ede2a3f7abc0b13663a92488040033c917 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
@@ -162,8 +162,12 @@ void ScrollbarThemeOverlay::paintThumb(GraphicsContext& context,
if (scrollbar.orientation() == VerticalScrollbar)
part = WebThemeEngine::PartScrollbarVerticalThumb;
+ blink::WebThemeEngine::ExtraParams params;
+ params.scrollbarStyle = static_cast<WebThemeEngine::ScrollbarOverlayStyle>(
+ scrollbar.getScrollbarOverlayStyle());
+
Platform::current()->themeEngine()->paint(canvas, part, state, WebRect(rect),
- 0);
+ &params);
}
ScrollbarPart ScrollbarThemeOverlay::hitTest(

Powered by Google App Engine
This is Rietveld 408576698