Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/platform/Theme.h

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/platform/Theme.h
diff --git a/third_party/WebKit/Source/platform/Theme.h b/third_party/WebKit/Source/platform/Theme.h
index 407127329a982ef17959c6a3659dc1b8d3c614b0..7bf8b392a1425f895a54fe2dfeb28241ee364277 100644
--- a/third_party/WebKit/Source/platform/Theme.h
+++ b/third_party/WebKit/Source/platform/Theme.h
@@ -94,7 +94,7 @@ public:
virtual bool controlRequiresPreWhiteSpace(ControlPart) const { return false; }
// Method for painting a control. The rect is in zoomed coordinates.
- virtual void paint(ControlPart, ControlStates, GraphicsContext*, const IntRect& /*zoomedRect*/, float /*zoomFactor*/, ScrollableArea*) const { }
+ virtual void paint(ControlPart, ControlStates, GraphicsContext&, const IntRect& /*zoomedRect*/, float /*zoomFactor*/, ScrollableArea*) const { }
// Add visual overflow (e.g., the check on an OS X checkbox). The rect passed in is in zoomed coordinates so
// the inflation should take that into account and make sure the inflation amount is also scaled by the zoomFactor.

Powered by Google App Engine