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

Unified Diff: LayoutTests/editing/pasteboard/copy-crash.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 years, 7 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: LayoutTests/editing/pasteboard/copy-crash.html
diff --git a/LayoutTests/editing/pasteboard/copy-crash.html b/LayoutTests/editing/pasteboard/copy-crash.html
index 0670d05bb294c44cd371fe9bde76a20a0b03666f..d3d506e1570f398e145da5b80f76b0633a090d68 100644
--- a/LayoutTests/editing/pasteboard/copy-crash.html
+++ b/LayoutTests/editing/pasteboard/copy-crash.html
@@ -104,7 +104,7 @@
if (e.pageX) {
x = e.pageX;
} else if (e.clientX) {
- x = e.clientX + document.body.scrollLeft;
+ x = e.clientX + document.scrollingElement.scrollLeft;
} else {
x = 0;
}
@@ -117,7 +117,7 @@
if (e.pageY) {
y = e.pageY;
} else if (e.clientY) {
- y = e.clientY + document.body.scrollTop;
+ y = e.clientY + document.scrollingElement.scrollTop;
} else {
y = 0;
}

Powered by Google App Engine
This is Rietveld 408576698