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

Unified Diff: third_party/WebKit/Source/core/paint/ScrollableAreaPainter.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/core/paint/ScrollableAreaPainter.h
diff --git a/third_party/WebKit/Source/core/paint/ScrollableAreaPainter.h b/third_party/WebKit/Source/core/paint/ScrollableAreaPainter.h
index a941834e6a41423fcdb4ee47013fd58b0a6b760e..3004a6fbeb213895c47c040519a419bbb9074710 100644
--- a/third_party/WebKit/Source/core/paint/ScrollableAreaPainter.h
+++ b/third_party/WebKit/Source/core/paint/ScrollableAreaPainter.h
@@ -21,12 +21,12 @@ class ScrollableAreaPainter {
public:
explicit ScrollableAreaPainter(PaintLayerScrollableArea& paintLayerScrollableArea) : m_scrollableArea(&paintLayerScrollableArea) { }
- void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const CullRect&);
- void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, const CullRect&, bool paintingOverlayControls);
- void paintScrollCorner(GraphicsContext*, const IntPoint&, const CullRect&);
+ void paintResizer(GraphicsContext&, const IntPoint& paintOffset, const CullRect&);
+ void paintOverflowControls(GraphicsContext&, const IntPoint& paintOffset, const CullRect&, bool paintingOverlayControls);
+ void paintScrollCorner(GraphicsContext&, const IntPoint&, const CullRect&);
private:
- void drawPlatformResizerImage(GraphicsContext*, IntRect resizerCornerRect);
+ void drawPlatformResizerImage(GraphicsContext&, IntRect resizerCornerRect);
bool overflowControlsIntersectRect(const CullRect&) const;
PaintLayerScrollableArea& scrollableArea() const;
« no previous file with comments | « third_party/WebKit/Source/core/paint/PartPainter.cpp ('k') | third_party/WebKit/Source/core/paint/ScrollableAreaPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698