| Index: Source/core/events/UIEvent.cpp
|
| diff --git a/Source/core/events/UIEvent.cpp b/Source/core/events/UIEvent.cpp
|
| index 7ec400e78f1de72f1d93e1205ad904e35e69bd1a..d68ad06588c3117e6b1880fd03b276d31698f072 100644
|
| --- a/Source/core/events/UIEvent.cpp
|
| +++ b/Source/core/events/UIEvent.cpp
|
| @@ -53,7 +53,7 @@ UIEvent::~UIEvent()
|
| {
|
| }
|
|
|
| -void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg)
|
| +void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg, InputDevice* sourceDevice)
|
| {
|
| if (dispatched())
|
| return;
|
| @@ -62,7 +62,12 @@ void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c
|
|
|
| m_view = viewArg;
|
| m_detail = detailArg;
|
| - m_sourceDevice = nullptr;
|
| + m_sourceDevice = sourceDevice;
|
| +}
|
| +
|
| +void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg)
|
| +{
|
| + initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, nullptr);
|
| }
|
|
|
| bool UIEvent::isUIEvent() const
|
|
|