Index: third_party/WebKit/Source/core/events/MouseEvent.cpp |
diff --git a/third_party/WebKit/Source/core/events/MouseEvent.cpp b/third_party/WebKit/Source/core/events/MouseEvent.cpp |
index 9b8d3e1aedffc63db881c837e0fbcaa824911947..d948a0dda1a0f0b8df3b8b3f7ad74e44b29dcfbe 100644 |
--- a/third_party/WebKit/Source/core/events/MouseEvent.cpp |
+++ b/third_party/WebKit/Source/core/events/MouseEvent.cpp |
@@ -51,7 +51,7 @@ PassRefPtrWillBeRawPtr<MouseEvent> MouseEvent::create(const AtomicString& eventT |
event.movementDelta().x(), event.movementDelta().y(), |
event.modifiers(), event.button(), |
platformModifiersToButtons(event.modifiers()), |
- relatedTarget, event.timestamp(), event.syntheticEventType()); |
+ relatedTarget, event.timestamp(), event.syntheticEventType(), event.region()); |
} |
PassRefPtrWillBeRawPtr<MouseEvent> MouseEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, |
@@ -61,12 +61,13 @@ PassRefPtrWillBeRawPtr<MouseEvent> MouseEvent::create(const AtomicString& type, |
short button, unsigned short buttons, |
PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, |
double platformTimeStamp, |
- PlatformMouseEvent::SyntheticEventType syntheticEventType) |
+ PlatformMouseEvent::SyntheticEventType syntheticEventType, |
+ const String& region) |
{ |
return adoptRefWillBeNoop(new MouseEvent(type, canBubble, cancelable, view, |
detail, screenX, screenY, windowX, windowY, |
movementX, movementY, |
- modifiers, button, buttons, relatedTarget, platformTimeStamp, syntheticEventType)); |
+ modifiers, button, buttons, relatedTarget, platformTimeStamp, syntheticEventType, region)); |
} |
PassRefPtrWillBeRawPtr<MouseEvent> MouseEvent::create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView> view, PassRefPtrWillBeRawPtr<Event> underlyingEvent, SimulatedClickCreationScope creationScope) |
@@ -116,7 +117,8 @@ MouseEvent::MouseEvent(const AtomicString& eventType, bool canBubble, bool cance |
short button, unsigned short buttons, |
PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, |
double platformTimeStamp, |
- PlatformMouseEvent::SyntheticEventType syntheticEventType) |
+ PlatformMouseEvent::SyntheticEventType syntheticEventType, |
+ const String& region) |
: MouseRelatedEvent(eventType, canBubble, cancelable, view, detail, IntPoint(screenX, screenY), |
IntPoint(windowX, windowY), IntPoint(movementX, movementY), modifiers, |
platformTimeStamp, |
@@ -126,6 +128,7 @@ MouseEvent::MouseEvent(const AtomicString& eventType, bool canBubble, bool cance |
, m_buttons(buttons) |
, m_relatedTarget(relatedTarget) |
, m_syntheticEventType(syntheticEventType) |
+ , m_region(region) |
{ |
} |
@@ -135,6 +138,7 @@ MouseEvent::MouseEvent(const AtomicString& eventType, const MouseEventInit& init |
, m_buttons(initializer.buttons()) |
, m_relatedTarget(initializer.relatedTarget()) |
, m_syntheticEventType(PlatformMouseEvent::RealOrIndistinguishable) |
+ , m_region(initializer.region()) |
{ |
} |