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

Unified Diff: third_party/WebKit/Source/core/paint/ClipScope.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. 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/ClipScope.h
diff --git a/third_party/WebKit/Source/core/paint/ClipScope.h b/third_party/WebKit/Source/core/paint/ClipScope.h
index 052b17445b99a296446b5f357f04fab7dd3bb05c..e05190f96dc44a16bba15f43e6ee2796c25e9dbe 100644
--- a/third_party/WebKit/Source/core/paint/ClipScope.h
+++ b/third_party/WebKit/Source/core/paint/ClipScope.h
@@ -14,7 +14,7 @@ class ClipScope {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
WTF_MAKE_NONCOPYABLE(ClipScope);
public:
- ClipScope(GraphicsContext* context)
+ ClipScope(GraphicsContext& context)
: m_context(context)
, m_clipCount(0) { }
~ClipScope();
@@ -22,7 +22,7 @@ public:
void clip(const LayoutRect& clipRect, SkRegion::Op operation);
private:
- GraphicsContext* m_context;
+ GraphicsContext& m_context;
int m_clipCount;
};
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPainter.cpp ('k') | third_party/WebKit/Source/core/paint/ClipScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698