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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeNonMacCommon.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/ScrollbarThemeNonMacCommon.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeNonMacCommon.h b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeNonMacCommon.h
index 4f5155d34cba725853702c692e1a1897c0e84004..38b52d2f7928495e8f6a35f88858878f9f0afeae 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeNonMacCommon.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeNonMacCommon.h
@@ -37,17 +37,17 @@ namespace blink {
class PLATFORM_EXPORT ScrollbarThemeNonMacCommon : public ScrollbarTheme {
protected:
- bool hasButtons(const ScrollbarThemeClient*) override { return true; }
- bool hasThumb(const ScrollbarThemeClient*) override;
+ bool hasButtons(const ScrollbarThemeClient&) override { return true; }
+ bool hasThumb(const ScrollbarThemeClient&) override;
- IntRect backButtonRect(const ScrollbarThemeClient*, ScrollbarPart, bool painting = false) override;
- IntRect forwardButtonRect(const ScrollbarThemeClient*, ScrollbarPart, bool painting = false) override;
- IntRect trackRect(const ScrollbarThemeClient*, bool painting = false) override;
+ IntRect backButtonRect(const ScrollbarThemeClient&, ScrollbarPart, bool painting = false) override;
+ IntRect forwardButtonRect(const ScrollbarThemeClient&, ScrollbarPart, bool painting = false) override;
+ IntRect trackRect(const ScrollbarThemeClient&, bool painting = false) override;
- void paintTrackBackground(GraphicsContext*, const ScrollbarThemeClient*, const IntRect&) override;
- void paintTickmarks(GraphicsContext*, const ScrollbarThemeClient*, const IntRect&) override;
+ void paintTrackBackground(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&) override;
+ void paintTickmarks(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&) override;
- virtual IntSize buttonSize(const ScrollbarThemeClient*) = 0;
+ virtual IntSize buttonSize(const ScrollbarThemeClient&) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698