Index: third_party/WebKit/LayoutTests/fast/events/click-focus-anchor.html |
diff --git a/third_party/WebKit/LayoutTests/fast/events/click-focus-anchor.html b/third_party/WebKit/LayoutTests/fast/events/click-focus-anchor.html |
index e4384cd87335f241f95f5f13f0745986de94271f..d90ed868fdad94acb039ad8f7d8f7110d696fb48 100644 |
--- a/third_party/WebKit/LayoutTests/fast/events/click-focus-anchor.html |
+++ b/third_party/WebKit/LayoutTests/fast/events/click-focus-anchor.html |
@@ -34,8 +34,8 @@ document.addEventListener('focus', handleFocus, true); |
if (window.testRunner) { |
var testAnchors = document.querySelectorAll('p > a, svg > a > text'); |
for (var i = 0; i < testAnchors.length; i++) { |
- var aElement = testAnchors[i]; |
- eventSender.mouseMoveTo(aElement.offsetLeft + 2, aElement.offsetTop + 2); |
+ var clientRect = testAnchors[i].getBoundingClientRect(); |
+ eventSender.mouseMoveTo(clientRect.left + 2, clientRect.top + 2); |
eventSender.mouseDown(); |
eventSender.mouseUp(); |
} |