Commit a29f06fe authored by haraken@chromium.org's avatar haraken@chromium.org

Change SimulatedMouseEvent's adoptRef() to adoptRefWillBeRefCountedGarbageCollected()

I forgot to replace a couple of adoptRef()s in r170164.
SimulatedMouseEvent's adoptRef() was another left-over.

BUG=340522
TBR=ager

Review URL: https://codereview.chromium.org/216283002

git-svn-id: svn://svn.chromium.org/blink/trunk@170266 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 409ea8d8
...@@ -196,9 +196,9 @@ void MouseEvent::trace(Visitor* visitor) ...@@ -196,9 +196,9 @@ void MouseEvent::trace(Visitor* visitor)
MouseRelatedEvent::trace(visitor); MouseRelatedEvent::trace(visitor);
} }
PassRefPtr<SimulatedMouseEvent> SimulatedMouseEvent::create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView> view, PassRefPtr<Event> underlyingEvent) PassRefPtrWillBeRawPtr<SimulatedMouseEvent> SimulatedMouseEvent::create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView> view, PassRefPtr<Event> underlyingEvent)
{ {
return adoptRef(new SimulatedMouseEvent(eventType, view, underlyingEvent)); return adoptRefWillBeRefCountedGarbageCollected(new SimulatedMouseEvent(eventType, view, underlyingEvent));
} }
SimulatedMouseEvent::~SimulatedMouseEvent() SimulatedMouseEvent::~SimulatedMouseEvent()
......
...@@ -113,7 +113,7 @@ private: ...@@ -113,7 +113,7 @@ private:
class SimulatedMouseEvent FINAL : public MouseEvent { class SimulatedMouseEvent FINAL : public MouseEvent {
public: public:
static PassRefPtr<SimulatedMouseEvent> create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView>, PassRefPtr<Event> underlyingEvent); static PassRefPtrWillBeRawPtr<SimulatedMouseEvent> create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView>, PassRefPtr<Event> underlyingEvent);
virtual ~SimulatedMouseEvent(); virtual ~SimulatedMouseEvent();
virtual void trace(Visitor*) OVERRIDE; virtual void trace(Visitor*) OVERRIDE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment