| 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 9e2f748dd61bd8645a6a4b500550d814fdd49803..6f45f420ee72f33a6d0e7dd61e3525f1d862265f 100644
|
| --- a/third_party/WebKit/Source/core/events/MouseEvent.cpp
|
| +++ b/third_party/WebKit/Source/core/events/MouseEvent.cpp
|
| @@ -104,8 +104,8 @@ MouseEvent* MouseEvent::create(const AtomicString& eventType,
|
| if (underlyingEvent && underlyingEvent->isMouseEvent()) {
|
| syntheticType = PlatformMouseEvent::RealOrIndistinguishable;
|
| MouseEvent* mouseEvent = toMouseEvent(underlyingEvent);
|
| - screenX = mouseEvent->screenLocation().x();
|
| - screenY = mouseEvent->screenLocation().y();
|
| + screenX = mouseEvent->screenX();
|
| + screenY = mouseEvent->screenY();
|
| }
|
|
|
| double timestamp = underlyingEvent ? underlyingEvent->platformTimeStamp()
|
| @@ -119,7 +119,7 @@ MouseEvent* MouseEvent::create(const AtomicString& eventType,
|
| createdEvent->setUnderlyingEvent(underlyingEvent);
|
| if (syntheticType == PlatformMouseEvent::RealOrIndistinguishable) {
|
| MouseEvent* mouseEvent = toMouseEvent(createdEvent->underlyingEvent());
|
| - createdEvent->initCoordinates(mouseEvent->clientLocation());
|
| + createdEvent->initCoordinates(mouseEvent->clientX(), mouseEvent->clientY());
|
| }
|
|
|
| return createdEvent;
|
| @@ -258,7 +258,7 @@ void MouseEvent::initMouseEventInternal(
|
| m_relatedTarget = relatedTarget;
|
| m_modifiers = modifiers;
|
|
|
| - initCoordinates(IntPoint(clientX, clientY));
|
| + initCoordinates(clientX, clientY);
|
|
|
| // FIXME: SyntheticEventType is not set to RealOrIndistinguishable here.
|
| }
|
|
|