Make EventDispatchMediator RefCounted.
[WebKit-https.git] / Source / WebCore / dom / MouseEvent.cpp
index 2a6ed77..0e71ef5 100644 (file)
@@ -159,6 +159,11 @@ SimulatedMouseEvent::SimulatedMouseEvent(const AtomicString& eventType, PassRefP
     }
 }
 
+PassRefPtr<MouseEventDispatchMediator> MouseEventDispatchMediator::create(PassRefPtr<MouseEvent> mouseEvent)
+{
+    return adoptRef(new MouseEventDispatchMediator(mouseEvent));
+}
+
 MouseEventDispatchMediator::MouseEventDispatchMediator(PassRefPtr<MouseEvent> mouseEvent)
     : EventDispatchMediator(mouseEvent)
 {