summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/dom/KeyboardEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/KeyboardEvent.cpp')
-rw-r--r--Source/WebCore/dom/KeyboardEvent.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/WebCore/dom/KeyboardEvent.cpp b/Source/WebCore/dom/KeyboardEvent.cpp
index 109135d..e244fd2 100644
--- a/Source/WebCore/dom/KeyboardEvent.cpp
+++ b/Source/WebCore/dom/KeyboardEvent.cpp
@@ -161,10 +161,15 @@ KeyboardEvent* findKeyboardEvent(Event* event)
return 0;
}
-bool KeyboardEvent::dispatch(EventDispatcher* dispatcher)
+KeyboardEventDispatchMediator::KeyboardEventDispatchMediator(PassRefPtr<KeyboardEvent> event)
+ : EventDispatchMediator(event)
+{
+}
+
+bool KeyboardEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) const
{
// Make sure not to return true if we already took default action while handling the event.
- return dispatcher->dispatchEvent(this) && !defaultHandled();
+ return EventDispatchMediator::dispatchEvent(dispatcher) && !event()->defaultHandled();
}
} // namespace WebCore