Index: Source/core/events/EventDispatcher.cpp |
diff --git a/Source/core/events/EventDispatcher.cpp b/Source/core/events/EventDispatcher.cpp |
index 75a8800b34ebf29354729a18d34987ad3dc96fa3..6d0bac5247c7ccc65cad048fc2c1f8b8506df4f5 100644 |
--- a/Source/core/events/EventDispatcher.cpp |
+++ b/Source/core/events/EventDispatcher.cpp |
@@ -84,17 +84,17 @@ void EventDispatcher::dispatchSimulatedClick(Node* node, Event* underlyingEvent, |
gNodesDispatchingSimulatedClicks->add(node); |
if (mouseEventOptions == SendMouseOverUpDownEvents) |
- EventDispatcher(node, SimulatedMouseEvent::create(EventTypeNames::mouseover, node->document().defaultView(), underlyingEvent)).dispatch(); |
+ EventDispatcher(node, SimulatedMouseEvent::create(EventTypeNames::mouseover, node->document().domWindow(), underlyingEvent)).dispatch(); |
if (mouseEventOptions != SendNoEvents) |
- EventDispatcher(node, SimulatedMouseEvent::create(EventTypeNames::mousedown, node->document().defaultView(), underlyingEvent)).dispatch(); |
+ EventDispatcher(node, SimulatedMouseEvent::create(EventTypeNames::mousedown, node->document().domWindow(), underlyingEvent)).dispatch(); |
node->setActive(true, visualOptions == ShowPressedLook); |
if (mouseEventOptions != SendNoEvents) |
- EventDispatcher(node, SimulatedMouseEvent::create(EventTypeNames::mouseup, node->document().defaultView(), underlyingEvent)).dispatch(); |
+ EventDispatcher(node, SimulatedMouseEvent::create(EventTypeNames::mouseup, node->document().domWindow(), underlyingEvent)).dispatch(); |
node->setActive(false); |
// always send click |
- EventDispatcher(node, SimulatedMouseEvent::create(EventTypeNames::click, node->document().defaultView(), underlyingEvent)).dispatch(); |
+ EventDispatcher(node, SimulatedMouseEvent::create(EventTypeNames::click, node->document().domWindow(), underlyingEvent)).dispatch(); |
gNodesDispatchingSimulatedClicks->remove(node); |
} |