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

Unified Diff: third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.h

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/platform/exported/WebScrollbarThemeGeometryNative.h
diff --git a/third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.h b/third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.h
index 0030f8c9973cf357708c0fbbb39678587a107014..29f80f93ca86163ba52f1bc7ed555e7938dfbd7f 100644
--- a/third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.h
+++ b/third_party/WebKit/Source/platform/exported/WebScrollbarThemeGeometryNative.h
@@ -38,7 +38,7 @@ class WebScrollbar;
class PLATFORM_EXPORT WebScrollbarThemeGeometryNative : public WebScrollbarThemeGeometry {
public:
- static PassOwnPtr<WebScrollbarThemeGeometryNative> create(ScrollbarTheme*);
+ static PassOwnPtr<WebScrollbarThemeGeometryNative> create(ScrollbarTheme&);
// WebScrollbarThemeGeometry overrides
WebScrollbarThemeGeometryNative* clone() const override;
@@ -60,12 +60,12 @@ public:
void splitTrack(WebScrollbar*, const WebRect& track, WebRect& startTrack, WebRect& thumb, WebRect& endTrack) override;
private:
- explicit WebScrollbarThemeGeometryNative(ScrollbarTheme*);
+ explicit WebScrollbarThemeGeometryNative(ScrollbarTheme&);
// The theme is not owned by this class. It is assumed that the theme is a
// static pointer and its lifetime is essentially infinite. Only thread-safe
// functions on the theme can be called by this theme.
- ScrollbarTheme* m_theme;
+ ScrollbarTheme& m_theme;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698