Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: third_party/WebKit/LayoutTests/fast/events/resources/focus-anchor-by-mouse.js

Issue 1729073002: Update SVG tests ahead of offset* removal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update flexitem.html and grid-item-display.html too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/events/resources/focus-anchor-by-mouse.js
diff --git a/third_party/WebKit/LayoutTests/fast/events/resources/focus-anchor-by-mouse.js b/third_party/WebKit/LayoutTests/fast/events/resources/focus-anchor-by-mouse.js
index f6dc80f2997d73369a69251a659f6f2f2af020d5..414429664bac15274c2772fd7c0c780ed71efce2 100644
--- a/third_party/WebKit/LayoutTests/fast/events/resources/focus-anchor-by-mouse.js
+++ b/third_party/WebKit/LayoutTests/fast/events/resources/focus-anchor-by-mouse.js
@@ -1,7 +1,8 @@
window.onload = function() {
if (window.eventSender) {
var aElement = document.getElementById('anchor');
- eventSender.mouseMoveTo(aElement.offsetLeft + 2, aElement.offsetTop + 2);
+ var aRect = aElement.getBoundingClientRect();
+ eventSender.mouseMoveTo(aRect.left + 2, aRect.top + 2);
eventSender.mouseDown();
}
};

Powered by Google App Engine
This is Rietveld 408576698