summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/dom/Event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/Event.cpp')
-rw-r--r--Source/WebCore/dom/Event.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/WebCore/dom/Event.cpp b/Source/WebCore/dom/Event.cpp
index 795dace..a1352dc 100644
--- a/Source/WebCore/dom/Event.cpp
+++ b/Source/WebCore/dom/Event.cpp
@@ -22,6 +22,7 @@
#include "config.h"
#include "Event.h"
+#include "EventDispatcher.h"
#include "EventTarget.h"
#include "UserGestureIndicator.h"
@@ -270,8 +271,16 @@ void Event::storeResult(const String&)
{
}
+bool Event::dispatch(EventDispatcher* dispatcher)
+{
+ return dispatcher->dispatchEvent(this);
+}
+
void Event::setTarget(PassRefPtr<EventTarget> target)
{
+ if (m_target == target)
+ return;
+
m_target = target;
if (m_target)
receivedTarget();