Index: Source/core/events/MouseEvent.h |
diff --git a/Source/core/events/MouseEvent.h b/Source/core/events/MouseEvent.h |
index 77ba12b5925633c13c7db131ecd8ba19c43bcbe6..28510e917bfed8df24156abc30d3b6a8268c1389 100644 |
--- a/Source/core/events/MouseEvent.h |
+++ b/Source/core/events/MouseEvent.h |
@@ -50,20 +50,20 @@ struct MouseEventInit : public UIEventInit { |
class MouseEvent : public MouseRelatedEvent { |
public: |
- static PassRefPtr<MouseEvent> create() |
+ static PassRefPtrWillBeRawPtr<MouseEvent> create() |
{ |
- return adoptRef(new MouseEvent); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new MouseEvent); |
} |
- static PassRefPtr<MouseEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, |
+ static PassRefPtrWillBeRawPtr<MouseEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, |
int detail, int screenX, int screenY, int pageX, int pageY, |
int movementX, int movementY, |
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button, |
PassRefPtr<EventTarget> relatedTarget, PassRefPtrWillBeRawPtr<Clipboard>, bool isSimulated = false); |
- static PassRefPtr<MouseEvent> create(const AtomicString& eventType, PassRefPtr<AbstractView>, const PlatformMouseEvent&, int detail, PassRefPtr<Node> relatedTarget); |
+ static PassRefPtrWillBeRawPtr<MouseEvent> create(const AtomicString& eventType, PassRefPtr<AbstractView>, const PlatformMouseEvent&, int detail, PassRefPtr<Node> relatedTarget); |
- static PassRefPtr<MouseEvent> create(const AtomicString& eventType, const MouseEventInit&); |
+ static PassRefPtrWillBeRawPtr<MouseEvent> create(const AtomicString& eventType, const MouseEventInit&); |
virtual ~MouseEvent(); |
@@ -91,6 +91,8 @@ public: |
virtual bool isDragEvent() const OVERRIDE FINAL; |
virtual int which() const OVERRIDE FINAL; |
+ virtual void trace(Visitor*) OVERRIDE; |
+ |
protected: |
MouseEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView>, |
int detail, int screenX, int screenY, int pageX, int pageY, |
@@ -102,8 +104,6 @@ protected: |
MouseEvent(); |
- virtual void trace(Visitor*) OVERRIDE; |
- |
private: |
unsigned short m_button; |
bool m_buttonDown; |
@@ -113,7 +113,7 @@ private: |
class SimulatedMouseEvent FINAL : public MouseEvent { |
public: |
- static PassRefPtr<SimulatedMouseEvent> create(const AtomicString& eventType, PassRefPtr<AbstractView>, PassRefPtr<Event> underlyingEvent); |
+ static PassRefPtrWillBeRawPtr<SimulatedMouseEvent> create(const AtomicString& eventType, PassRefPtr<AbstractView>, PassRefPtr<Event> underlyingEvent); |
virtual ~SimulatedMouseEvent(); |
virtual void trace(Visitor*) OVERRIDE; |