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

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

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: fix test 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/ScrollbarThemeAura.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
index 6d213bed316a255435be846e8e016c116a4cfec2..313a21e6f2ff071a450f4e00f4daf53da268e679 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp
@@ -319,8 +319,8 @@ void ScrollbarThemeAura::paintButton(GraphicsContext& gc,
if (!params.shouldPaint)
return;
DrawingRecorder recorder(gc, scrollbar, displayItemType, rect);
- Platform::current()->themeEngine()->paint(gc.canvas(), params.part,
- params.state, WebRect(rect), 0);
+ Platform::current()->themeEngine()->paint(
+ gc.canvas(), params.part, params.state, WebRect(rect), nullptr);
}
void ScrollbarThemeAura::paintThumb(GraphicsContext& gc,
@@ -340,11 +340,12 @@ void ScrollbarThemeAura::paintThumb(GraphicsContext& gc,
state = WebThemeEngine::StateHover;
else
state = WebThemeEngine::StateNormal;
+
Platform::current()->themeEngine()->paint(
canvas, scrollbar.orientation() == HorizontalScrollbar
? WebThemeEngine::PartScrollbarHorizontalThumb
: WebThemeEngine::PartScrollbarVerticalThumb,
- state, WebRect(rect), 0);
+ state, WebRect(rect), nullptr);
}
bool ScrollbarThemeAura::shouldRepaintAllPartsOnInvalidation() const {

Powered by Google App Engine
This is Rietveld 408576698