Index: Source/core/html/canvas/CanvasPattern.h |
diff --git a/Source/core/html/canvas/CanvasPattern.h b/Source/core/html/canvas/CanvasPattern.h |
index af2f502f19e36c82278d6d9435807fa01d4962d9..4bdc46f7a621f64f175364dd0b28e06af135454d 100644 |
--- a/Source/core/html/canvas/CanvasPattern.h |
+++ b/Source/core/html/canvas/CanvasPattern.h |
@@ -37,19 +37,21 @@ namespace blink { |
class ExceptionState; |
class Image; |
-class CanvasPattern : public RefCounted<CanvasPattern>, public ScriptWrappable { |
+class CanvasPattern FINAL : public RefCountedWillBeGarbageCollectedFinalized<CanvasPattern>, public ScriptWrappable { |
public: |
static void parseRepetitionType(const String&, bool& repeatX, bool& repeatY, ExceptionState&); |
- static PassRefPtr<CanvasPattern> create(PassRefPtr<Image> image, bool repeatX, bool repeatY, bool originClean) |
+ static PassRefPtrWillBeRawPtr<CanvasPattern> create(PassRefPtr<Image> image, bool repeatX, bool repeatY, bool originClean) |
{ |
- return adoptRef(new CanvasPattern(image, repeatX, repeatY, originClean)); |
+ return adoptRefWillBeNoop(new CanvasPattern(image, repeatX, repeatY, originClean)); |
} |
Pattern* pattern() const { return m_pattern.get(); } |
bool originClean() const { return m_originClean; } |
+ void trace(Visitor*) { } |
+ |
private: |
CanvasPattern(PassRefPtr<Image>, bool repeatX, bool repeatY, bool originClean); |