Make EventDispatchMediator RefCounted.
[WebKit-https.git] / Source / WebCore / dom / KeyboardEvent.h
index 68910b5..1d0ab56 100644 (file)
@@ -117,9 +117,9 @@ namespace WebCore {
 
 class KeyboardEventDispatchMediator : public EventDispatchMediator {
 public:
-    explicit KeyboardEventDispatchMediator(PassRefPtr<KeyboardEvent>);
-
+    static PassRefPtr<KeyboardEventDispatchMediator> create(PassRefPtr<KeyboardEvent>);
 private:
+    explicit KeyboardEventDispatchMediator(PassRefPtr<KeyboardEvent>);
     virtual bool dispatchEvent(EventDispatcher*) const;
 };