Chromium Code Reviews| Index: Source/core/html/ImageData.h |
| diff --git a/Source/core/html/ImageData.h b/Source/core/html/ImageData.h |
| index 1630fb9d09faf8e998feca69679d35f418245deb..44d1c3c47e2b71aaf20a09851fdab55920dbce49 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,18 +40,20 @@ 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&); |
|
haraken
2014/03/31 12:51:59
Add explicit.
sof
2014/03/31 13:02:25
Done.
|
| ImageData(const IntSize&, PassRefPtr<Uint8ClampedArray>); |