| Index: Source/core/html/canvas/CanvasPattern.h
|
| diff --git a/Source/core/html/canvas/CanvasPattern.h b/Source/core/html/canvas/CanvasPattern.h
|
| index 16d93e759ff0dd8917c83c606f9821570745c606..7be4e948dc464253a1748cae308542dcc1dcdc6e 100644
|
| --- a/Source/core/html/canvas/CanvasPattern.h
|
| +++ b/Source/core/html/canvas/CanvasPattern.h
|
| @@ -37,19 +37,21 @@ namespace WebCore {
|
| 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);
|
|
|
|
|