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

Unified Diff: third_party/WebKit/Source/core/paint/SVGFilterPainter.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/SVGFilterPainter.h
diff --git a/third_party/WebKit/Source/core/paint/SVGFilterPainter.h b/third_party/WebKit/Source/core/paint/SVGFilterPainter.h
index 1c144516fb34a1d49b22afba5c7fe1189807e3d1..1d650365b95203ea9b4514aee54ddb79321fb1db 100644
--- a/third_party/WebKit/Source/core/paint/SVGFilterPainter.h
+++ b/third_party/WebKit/Source/core/paint/SVGFilterPainter.h
@@ -20,17 +20,17 @@ class SVGFilterRecordingContext {
USING_FAST_MALLOC(SVGFilterRecordingContext);
WTF_MAKE_NONCOPYABLE(SVGFilterRecordingContext);
public:
- explicit SVGFilterRecordingContext(GraphicsContext* initialContext) : m_initialContext(initialContext) { }
+ explicit SVGFilterRecordingContext(GraphicsContext& initialContext) : m_initialContext(initialContext) { }
GraphicsContext* beginContent(FilterData*);
void endContent(FilterData*);
- GraphicsContext* paintingContext() const { return m_initialContext; }
+ GraphicsContext& paintingContext() const { return m_initialContext; }
private:
OwnPtr<PaintController> m_paintController;
OwnPtr<GraphicsContext> m_context;
- GraphicsContext* m_initialContext;
+ GraphicsContext& m_initialContext;
};
class SVGFilterPainter {

Powered by Google App Engine
This is Rietveld 408576698