| Index: Source/core/events/MouseEvent.cpp
|
| diff --git a/Source/core/events/MouseEvent.cpp b/Source/core/events/MouseEvent.cpp
|
| index 9466eb8a49d9b992a4a9c5307610b4e9b31d9082..19b6d209f94528433b81f2dd318adf984c7ee9e9 100644
|
| --- a/Source/core/events/MouseEvent.cpp
|
| +++ b/Source/core/events/MouseEvent.cpp
|
| @@ -217,20 +217,20 @@ DEFINE_TRACE(MouseEvent)
|
| MouseRelatedEvent::trace(visitor);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<SimulatedMouseEvent> SimulatedMouseEvent::create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView> view, PassRefPtrWillBeRawPtr<Event> underlyingEvent)
|
| +PassRefPtrWillBeRawPtr<SimulatedMouseEvent> SimulatedMouseEvent::create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView> view, PassRefPtrWillBeRawPtr<Event> underlyingEvent, bool isTrusted)
|
| {
|
| - return adoptRefWillBeNoop(new SimulatedMouseEvent(eventType, view, underlyingEvent));
|
| + return adoptRefWillBeNoop(new SimulatedMouseEvent(eventType, view, underlyingEvent, isTrusted));
|
| }
|
|
|
| SimulatedMouseEvent::~SimulatedMouseEvent()
|
| {
|
| }
|
|
|
| -SimulatedMouseEvent::SimulatedMouseEvent(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView> view, PassRefPtrWillBeRawPtr<Event> underlyingEvent)
|
| +SimulatedMouseEvent::SimulatedMouseEvent(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView> view, PassRefPtrWillBeRawPtr<Event> underlyingEvent, bool isTrusted)
|
| : MouseEvent(eventType, true, true, view, 0, 0, 0, 0, 0, 0, 0, false, false, false, false, 0, 0,
|
| nullptr, nullptr, true, PlatformMouseEvent::RealOrIndistinguishable)
|
| {
|
| - setTrusted(true);
|
| + setTrusted(isTrusted);
|
| if (UIEventWithKeyState* keyStateEvent = findEventWithKeyState(underlyingEvent.get())) {
|
| m_ctrlKey = keyStateEvent->ctrlKey();
|
| m_altKey = keyStateEvent->altKey();
|
|
|