| Index: third_party/WebKit/Source/core/html/ImageData.h
|
| diff --git a/third_party/WebKit/Source/core/html/ImageData.h b/third_party/WebKit/Source/core/html/ImageData.h
|
| index e400d302d946087646e255cf7136546495d15e77..cac3ed63b156e13778f0a370b5c4449c68fabf06 100644
|
| --- a/third_party/WebKit/Source/core/html/ImageData.h
|
| +++ b/third_party/WebKit/Source/core/html/ImageData.h
|
| @@ -36,6 +36,7 @@
|
| #include "platform/geometry/IntRect.h"
|
| #include "platform/geometry/IntSize.h"
|
| #include "platform/heap/Handle.h"
|
| +#include "wtf/RefPtr.h"
|
|
|
| namespace blink {
|
|
|
| @@ -46,7 +47,7 @@
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| static ImageData* create(const IntSize&);
|
| - static ImageData* create(const IntSize&, DOMUint8ClampedArray*);
|
| + static ImageData* create(const IntSize&, PassRefPtr<DOMUint8ClampedArray>);
|
| static ImageData* create(unsigned width, unsigned height, ExceptionState&);
|
| static ImageData* create(DOMUint8ClampedArray*, unsigned width, ExceptionState&);
|
| static ImageData* create(DOMUint8ClampedArray*, unsigned width, unsigned height, ExceptionState&);
|
| @@ -61,22 +62,19 @@
|
| IntSize bitmapSourceSize() const override { return m_size; }
|
| ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionState&) override;
|
|
|
| - DEFINE_INLINE_TRACE()
|
| - {
|
| - visitor->trace(m_data);
|
| - }
|
| + DEFINE_INLINE_TRACE() { }
|
|
|
| void dispose();
|
|
|
| v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeInfo*, v8::Local<v8::Object> wrapper) override WARN_UNUSED_RETURN;
|
|
|
| private:
|
| - ImageData(const IntSize&, DOMUint8ClampedArray*);
|
| + ImageData(const IntSize&, PassRefPtr<DOMUint8ClampedArray>);
|
|
|
| static bool validateConstructorArguments(DOMUint8ClampedArray*, unsigned width, unsigned&, ExceptionState&);
|
|
|
| IntSize m_size;
|
| - Member<DOMUint8ClampedArray> m_data;
|
| + RefPtr<DOMUint8ClampedArray> m_data;
|
| };
|
|
|
| } // namespace blink
|
|
|