Index: Source/core/events/UIEvent.cpp |
diff --git a/Source/core/events/UIEvent.cpp b/Source/core/events/UIEvent.cpp |
index ad9c852c4eeea9e23caeb98164e3877925b0f24e..368b76e1a7e917b54c3934a3638559cec7982b06 100644 |
--- a/Source/core/events/UIEvent.cpp |
+++ b/Source/core/events/UIEvent.cpp |
@@ -23,11 +23,11 @@ |
#include "config.h" |
#include "core/events/UIEvent.h" |
- |
namespace blink { |
UIEvent::UIEvent() |
: m_detail(0) |
+ , m_sourceDevice(InputDevice::create(false)) |
Rick Byers
2015/06/04 14:52:35
These lines that create a source device out of not
|
{ |
} |
@@ -35,6 +35,7 @@ UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab |
: Event(eventType, canBubbleArg, cancelableArg) |
, m_view(viewArg) |
, m_detail(detailArg) |
+ , m_sourceDevice(InputDevice::create(false)) |
{ |
} |
@@ -42,6 +43,7 @@ UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer) |
: Event(eventType, initializer) |
, m_view(initializer.view()) |
, m_detail(initializer.detail()) |
+ , m_sourceDevice(initializer.sourceDevice()) |
{ |
} |
@@ -58,6 +60,7 @@ void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c |
m_view = viewArg; |
m_detail = detailArg; |
+ m_sourceDevice = InputDevice::create(false); |
} |
bool UIEvent::isUIEvent() const |
@@ -108,6 +111,7 @@ int UIEvent::which() const |
DEFINE_TRACE(UIEvent) |
{ |
visitor->trace(m_view); |
+ visitor->trace(m_sourceDevice); |
Event::trace(visitor); |
} |