Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1151)

Unified Diff: Source/core/html/ImageData.h

Issue 1084313004: Oilpan: keep ImageData on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/ImageData.h
diff --git a/Source/core/html/ImageData.h b/Source/core/html/ImageData.h
index 360bac8865ed00ab609f4da9d3a5090515e24bec..20a382425cec14ac2627b703edc4739604243196 100644
--- a/Source/core/html/ImageData.h
+++ b/Source/core/html/ImageData.h
@@ -34,21 +34,20 @@
#include "core/dom/DOMTypedArray.h"
#include "platform/geometry/IntSize.h"
#include "platform/heap/Handle.h"
-#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
namespace blink {
class ExceptionState;
-class CORE_EXPORT ImageData final : public RefCountedWillBeGarbageCollectedFinalized<ImageData>, public ScriptWrappable {
+class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<ImageData> create(const IntSize&);
- static PassRefPtrWillBeRawPtr<ImageData> create(const IntSize&, PassRefPtr<DOMUint8ClampedArray>);
- static PassRefPtrWillBeRawPtr<ImageData> create(unsigned width, unsigned height, ExceptionState&);
- static PassRefPtrWillBeRawPtr<ImageData> create(DOMUint8ClampedArray*, unsigned width, ExceptionState&);
- static PassRefPtrWillBeRawPtr<ImageData> create(DOMUint8ClampedArray*, unsigned width, unsigned height, ExceptionState&);
+ static ImageData* create(const IntSize&);
+ 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&);
IntSize size() const { return m_size; }
int width() const { return m_size.width(); }

Powered by Google App Engine
This is Rietveld 408576698