Index: Source/core/dom/Touch.h |
diff --git a/Source/core/dom/Touch.h b/Source/core/dom/Touch.h |
index afa43f9633437a98691e680ebefd83a8b7c48b69..d4f253bb2cd48a48a3cb529eeb2398d8f9d3428d 100644 |
--- a/Source/core/dom/Touch.h |
+++ b/Source/core/dom/Touch.h |
@@ -28,6 +28,7 @@ |
#include "bindings/v8/ScriptWrappable.h" |
#include "core/events/EventTarget.h" |
+#include "heap/Handle.h" |
#include "platform/geometry/LayoutPoint.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
@@ -37,13 +38,13 @@ namespace WebCore { |
class LocalFrame; |
-class Touch : public RefCounted<Touch>, public ScriptWrappable { |
+class Touch : public RefCountedWillBeGarbageCollectedFinalized<Touch>, public ScriptWrappable { |
public: |
- static PassRefPtr<Touch> create(LocalFrame* frame, EventTarget* target, |
+ static PassRefPtrWillBeRawPtr<Touch> create(LocalFrame* frame, EventTarget* target, |
unsigned identifier, int screenX, int screenY, int pageX, int pageY, |
int radiusX, int radiusY, float rotationAngle, float force) |
{ |
- return adoptRef(new Touch(frame, target, identifier, screenX, |
+ return adoptRefWillBeNoop(new Touch(frame, target, identifier, screenX, |
screenY, pageX, pageY, radiusX, radiusY, rotationAngle, force)); |
} |
@@ -60,7 +61,9 @@ public: |
float webkitRotationAngle() const { return m_rotationAngle; } |
float webkitForce() const { return m_force; } |
const LayoutPoint& absoluteLocation() const { return m_absoluteLocation; } |
- PassRefPtr<Touch> cloneWithNewTarget(EventTarget*) const; |
+ PassRefPtrWillBeRawPtr<Touch> cloneWithNewTarget(EventTarget*) const; |
+ |
+ void trace(Visitor*) { } |
private: |
Touch(LocalFrame* frame, EventTarget* target, unsigned identifier, |