| Index: third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebInputEventConversion.cpp b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| index 819d69611709e83ee6df427fc9331337c5f3c5f7..140af9d4cb7bc2f6061f945ae34a35e9a064b9e1 100644
|
| --- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| +++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| @@ -201,9 +201,17 @@ WebMouseEventBuilder::WebMouseEventBuilder(const FrameViewBase* frameViewBase,
|
| if (event.nativeEvent()) {
|
| *static_cast<WebMouseEvent*>(this) =
|
| event.nativeEvent()->flattenTransform();
|
| - WebFloatPoint absoluteRootFrameLocation = positionInRootFrame();
|
| + WebFloatPoint absoluteLocation = positionInRootFrame();
|
| +
|
| + FrameView* view = frameViewBase ? toFrameView(frameViewBase->parent()) : 0;
|
| +
|
| + // Translate the root frame position to content coordinates.
|
| + if (view) {
|
| + absoluteLocation = view->rootFrameToContents(absoluteLocation);
|
| + }
|
| +
|
| IntPoint localPoint = roundedIntPoint(
|
| - layoutItem.absoluteToLocal(absoluteRootFrameLocation, UseTransforms));
|
| + layoutItem.absoluteToLocal(absoluteLocation, UseTransforms));
|
| x = localPoint.x();
|
| y = localPoint.y();
|
| return;
|
|
|