| Index: third_party/WebKit/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js
|
| diff --git a/third_party/WebKit/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js b/third_party/WebKit/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js
|
| index b27ff897256ace43dddd693559478b1d9ab285bc..1709ea808d5650816661ff05f7ddf25d6e344975 100644
|
| --- a/third_party/WebKit/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js
|
| +++ b/third_party/WebKit/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js
|
| @@ -65,8 +65,9 @@ function iframeLoaded() {
|
|
|
| function clickAt(x, y) {
|
| // Translation due to <h1> above us
|
| - x = x + rootSVGElement.offsetLeft;
|
| - y = y + rootSVGElement.offsetTop;
|
| + var clientRect = rootSVGElement.getBoundingClientRect();
|
| + x = x + clientRect.left;
|
| + y = y + clientRect.top;
|
|
|
| if (window.eventSender) {
|
| eventSender.mouseMoveTo(x, y);
|
|
|