Index: third_party/WebKit/LayoutTests/svg/animations/resources/SVGTestCase.js |
diff --git a/third_party/WebKit/LayoutTests/svg/animations/resources/SVGTestCase.js b/third_party/WebKit/LayoutTests/svg/animations/resources/SVGTestCase.js |
index c53ac75dbe74546cf84f87f42b6401d2748b811c..f93c8df5cc7aad0a38a69e750780cd0a17360132 100644 |
--- a/third_party/WebKit/LayoutTests/svg/animations/resources/SVGTestCase.js |
+++ b/third_party/WebKit/LayoutTests/svg/animations/resources/SVGTestCase.js |
@@ -45,8 +45,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); |