| Index: Source/core/html/ImageData.h
|
| diff --git a/Source/core/html/ImageData.h b/Source/core/html/ImageData.h
|
| index 1630fb9d09faf8e998feca69679d35f418245deb..1167f16969fcc47c67565cae66e8eecbde972d9a 100644
|
| --- a/Source/core/html/ImageData.h
|
| +++ b/Source/core/html/ImageData.h
|
| @@ -30,6 +30,7 @@
|
| #define ImageData_h
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| +#include "heap/Handle.h"
|
| #include "platform/geometry/IntSize.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/RefPtr.h"
|
| @@ -39,20 +40,22 @@ namespace WebCore {
|
|
|
| class ExceptionState;
|
|
|
| -class ImageData : public RefCounted<ImageData>, public ScriptWrappable {
|
| +class ImageData FINAL : public RefCountedWillBeGarbageCollectedFinalized<ImageData>, public ScriptWrappable {
|
| public:
|
| - static PassRefPtr<ImageData> create(const IntSize&);
|
| - static PassRefPtr<ImageData> create(const IntSize&, PassRefPtr<Uint8ClampedArray>);
|
| - static PassRefPtr<ImageData> create(unsigned width, unsigned height, ExceptionState&);
|
| - static PassRefPtr<ImageData> create(Uint8ClampedArray*, unsigned width, unsigned height, ExceptionState&);
|
| + static PassRefPtrWillBeRawPtr<ImageData> create(const IntSize&);
|
| + static PassRefPtrWillBeRawPtr<ImageData> create(const IntSize&, PassRefPtr<Uint8ClampedArray>);
|
| + static PassRefPtrWillBeRawPtr<ImageData> create(unsigned width, unsigned height, ExceptionState&);
|
| + static PassRefPtrWillBeRawPtr<ImageData> create(Uint8ClampedArray*, unsigned width, unsigned height, ExceptionState&);
|
|
|
| IntSize size() const { return m_size; }
|
| int width() const { return m_size.width(); }
|
| int height() const { return m_size.height(); }
|
| Uint8ClampedArray* data() const { return m_data.get(); }
|
|
|
| + void trace(Visitor*) { }
|
| +
|
| private:
|
| - ImageData(const IntSize&);
|
| + explicit ImageData(const IntSize&);
|
| ImageData(const IntSize&, PassRefPtr<Uint8ClampedArray>);
|
|
|
| IntSize m_size;
|
|
|