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

Unified Diff: LayoutTests/transforms/2d/cssmatrix-2d-zoom.html

Issue 428533003: Remove webkitConvertPointFromPageToNode() and webkitConvertPointFromNodeToPage() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/transforms/2d/cssmatrix-2d-zoom.html
diff --git a/LayoutTests/transforms/2d/cssmatrix-2d-zoom.html b/LayoutTests/transforms/2d/cssmatrix-2d-zoom.html
index f65fd62f4c264d76ec0183d74069f9cae10e7a65..3e3ead584154ac8ade2208030fc1702668d56b24 100644
--- a/LayoutTests/transforms/2d/cssmatrix-2d-zoom.html
+++ b/LayoutTests/transforms/2d/cssmatrix-2d-zoom.html
@@ -35,10 +35,10 @@ function runTest() {
var id2 = "b";
var element1 = document.getElementById(id1);
var element2 = document.getElementById(id2);
- var x1 = webkitConvertPointFromNodeToPage(element1, new WebKitPoint(0,0)).x;
- var y1 = webkitConvertPointFromNodeToPage(element1, new WebKitPoint(0,0)).y;
- var x2 = webkitConvertPointFromNodeToPage(element2, new WebKitPoint(0,0)).x;
- var y2 = webkitConvertPointFromNodeToPage(element2, new WebKitPoint(0,0)).y;
+ var x1 = element1.getBoundingClientRect().left;
+ var y1 = element1.getBoundingClientRect().top;
+ var x2 = element2.getBoundingClientRect().left;
+ var y2 = element2.getBoundingClientRect().top;
var resultString = '';
if (x1 == x2 && y1 == y2) {

Powered by Google App Engine
This is Rietveld 408576698