| Index: third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp b/third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp
|
| index 8f0ff4f641ba5ac09afa471e3a31b380f3835e83..17f4d1c9681d46792c1f6a28d892ef8dd0f982aa 100644
|
| --- a/third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp
|
| +++ b/third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp
|
| @@ -199,14 +199,14 @@ int MouseRelatedEvent::layerX()
|
| {
|
| if (!m_hasCachedRelativePosition)
|
| computeRelativePosition();
|
| - return m_layerLocation.x();
|
| + return m_layerLocation.x().toInt();
|
| }
|
|
|
| int MouseRelatedEvent::layerY()
|
| {
|
| if (!m_hasCachedRelativePosition)
|
| computeRelativePosition();
|
| - return m_layerLocation.y();
|
| + return m_layerLocation.y().toInt();
|
| }
|
|
|
| int MouseRelatedEvent::offsetX()
|
| @@ -229,26 +229,26 @@ int MouseRelatedEvent::offsetY()
|
|
|
| int MouseRelatedEvent::pageX() const
|
| {
|
| - return m_pageLocation.x();
|
| + return m_pageLocation.x().toInt();
|
| }
|
|
|
| int MouseRelatedEvent::pageY() const
|
| {
|
| - return m_pageLocation.y();
|
| + return m_pageLocation.y().toInt();
|
| }
|
|
|
| int MouseRelatedEvent::x() const
|
| {
|
| // FIXME: This is not correct.
|
| // See Microsoft documentation and <http://www.quirksmode.org/dom/w3c_events.html>.
|
| - return m_clientLocation.x();
|
| + return m_clientLocation.x().toInt();
|
| }
|
|
|
| int MouseRelatedEvent::y() const
|
| {
|
| // FIXME: This is not correct.
|
| // See Microsoft documentation and <http://www.quirksmode.org/dom/w3c_events.html>.
|
| - return m_clientLocation.y();
|
| + return m_clientLocation.y().toInt();
|
| }
|
|
|
| DEFINE_TRACE(MouseRelatedEvent)
|
|
|