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

Unified Diff: third_party/WebKit/Source/web/mac/WebScrollbarTheme.mm

Issue 1511003003: Use refs for non-null GraphicsContext, Scrollbar, etc. in scrollbar related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarRemove
Patch Set: yet another mac fix Created 5 years 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/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);
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | third_party/WebKit/Source/web/tests/FrameTestHelpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698