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

Unified Diff: Source/web/mac/WebScrollbarTheme.cpp

Issue 63213002: Have Blink be told of scrollbar changes rather than paying attention itself (Blink side part 2). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 7 years, 1 month 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 | « Source/core/platform/ScrollbarThemeMacCommon.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/mac/WebScrollbarTheme.cpp
diff --git a/Source/web/mac/WebScrollbarTheme.cpp b/Source/web/mac/WebScrollbarTheme.cpp
index 6692e471c25f9413541d8f66621df9b34995bcc2..69948169629c755482135296ceb94e8b5762139d 100644
--- a/Source/web/mac/WebScrollbarTheme.cpp
+++ b/Source/web/mac/WebScrollbarTheme.cpp
@@ -41,6 +41,10 @@ void WebScrollbarTheme::updateScrollbars(
float initialButtonDelay, float autoscrollButtonDelay,
bool jumpOnTrackClick, bool redraw)
{
+ ScrollbarTheme* theme = ScrollbarTheme::theme();
+ if (theme->isMockTheme())
+ return;
+
static_cast<ScrollbarThemeMacCommon*>(ScrollbarTheme::theme())->preferencesChanged(
initialButtonDelay, autoscrollButtonDelay, jumpOnTrackClick, redraw);
}
« no previous file with comments | « Source/core/platform/ScrollbarThemeMacCommon.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698