Index: Source/core/frame/DOMPoint.h |
diff --git a/Source/core/frame/DOMPoint.h b/Source/core/frame/DOMPoint.h |
index ae8478b25afb5742744486698f9fa830ab113cac..61deceb8ca7eae0129eedc61178f9c5193cddf30 100644 |
--- a/Source/core/frame/DOMPoint.h |
+++ b/Source/core/frame/DOMPoint.h |
@@ -27,20 +27,21 @@ |
#define DOMPoint_h |
#include "bindings/v8/ScriptWrappable.h" |
+#include "heap/Handle.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
namespace WebCore { |
-class DOMPoint : public RefCounted<DOMPoint>, public ScriptWrappable { |
+class DOMPoint FINAL : public RefCountedWillBeGarbageCollectedFinalized<DOMPoint>, public ScriptWrappable { |
public: |
- static PassRefPtr<DOMPoint> create() |
+ static PassRefPtrWillBeRawPtr<DOMPoint> create() |
{ |
- return adoptRef(new DOMPoint()); |
+ return adoptRefWillBeNoop(new DOMPoint()); |
} |
- static PassRefPtr<DOMPoint> create(float x, float y) |
+ static PassRefPtrWillBeRawPtr<DOMPoint> create(float x, float y) |
{ |
- return adoptRef(new DOMPoint(x, y)); |
+ return adoptRefWillBeNoop(new DOMPoint(x, y)); |
} |
float x() const { return m_x; } |
@@ -49,6 +50,8 @@ public: |
void setX(float x) { m_x = x; } |
void setY(float y) { m_y = y; } |
+ void trace(Visitor*) { } |
+ |
private: |
DOMPoint(float x = 0, float y = 0) |
: m_x(x) |