diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/frame/DOMPoint.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/frame/DOMPoint.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/chromium/third_party/WebKit/Source/core/frame/DOMPoint.h b/chromium/third_party/WebKit/Source/core/frame/DOMPoint.h index ae8478b25af..bbf2e5bbeff 100644 --- a/chromium/third_party/WebKit/Source/core/frame/DOMPoint.h +++ b/chromium/third_party/WebKit/Source/core/frame/DOMPoint.h @@ -27,20 +27,21 @@ #define DOMPoint_h #include "bindings/v8/ScriptWrappable.h" +#include "platform/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) |