Index: third_party/WebKit/Source/web/mac/WebScrollbarTheme.mm |
diff --git a/third_party/WebKit/Source/web/mac/WebScrollbarTheme.mm b/third_party/WebKit/Source/web/mac/WebScrollbarTheme.mm |
index 804db7ee1ca3960efb8463c7ecd10f3852d657a8..78e6028dad990297da24c3c904a37a20ec87ed56 100644 |
--- a/third_party/WebKit/Source/web/mac/WebScrollbarTheme.mm |
+++ b/third_party/WebKit/Source/web/mac/WebScrollbarTheme.mm |
@@ -47,11 +47,11 @@ void WebScrollbarTheme::updateScrollbarsWithNSDefaults( |
float initialButtonDelay, float autoscrollButtonDelay, |
ScrollerStyle preferredScrollerStyle, bool redraw, bool scrollAnimationEnabled, ScrollbarButtonsPlacement buttonPlacement) |
{ |
- ScrollbarTheme* theme = ScrollbarTheme::theme(); |
- if (theme->isMockTheme()) |
+ ScrollbarTheme& theme = ScrollbarTheme::theme(); |
+ if (theme.isMockTheme()) |
return; |
- static_cast<ScrollbarThemeMacCommon*>(ScrollbarTheme::theme())->preferencesChanged( |
+ static_cast<ScrollbarThemeMacCommon&>(theme).preferencesChanged( |
initialButtonDelay, autoscrollButtonDelay, |
static_cast<NSScrollerStyle>(preferredScrollerStyle), |
redraw, scrollAnimationEnabled, buttonPlacement); |