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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/click-focus-anchor.html

Issue 1405283006: Deprecate SVGElement.offsetParent/offsetTop/offsetLeft/offsetWidth/offsetHeight (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the tests instead Created 5 years, 1 month 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698