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

Unified Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.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/scroll/Scrollbar.h
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.h b/third_party/WebKit/Source/platform/scroll/Scrollbar.h
index e8f806db5ebb1f69f92d32a9ecc61a4ca020454e..3d47eb6033eab3ac34096406c7aafe4b011a56e9 100644
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.h
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.h
@@ -104,7 +104,7 @@ public:
void setProportion(int visibleSize, int totalSize);
void setPressedPos(int p) { m_pressedPos = p; }
- void paint(GraphicsContext*, const CullRect&) const final;
+ void paint(GraphicsContext&, const CullRect&) const final;
bool isOverlayScrollbar() const override;
bool shouldParticipateInHitTesting();
@@ -125,7 +125,7 @@ public:
void mouseUp(const PlatformMouseEvent&);
void mouseDown(const PlatformMouseEvent&);
- ScrollbarTheme* theme() const { return m_theme; }
+ ScrollbarTheme& theme() const { return m_theme; }
IntRect convertToContainingWidget(const IntRect&) const override;
IntRect convertFromContainingWidget(const IntRect&) const override;
@@ -177,7 +177,7 @@ protected:
RawPtrWillBeMember<ScrollableArea> m_scrollableArea;
ScrollbarOrientation m_orientation;
ScrollbarControlSize m_controlSize;
- ScrollbarTheme* m_theme;
+ ScrollbarTheme& m_theme;
int m_visibleSize;
int m_totalSize;

Powered by Google App Engine
This is Rietveld 408576698