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

Unified Diff: LayoutTests/fast/transforms/matrix-with-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/fast/transforms/matrix-with-zoom.html
diff --git a/LayoutTests/fast/transforms/matrix-with-zoom.html b/LayoutTests/fast/transforms/matrix-with-zoom.html
index 91c35ab7c3773578729a6816106563064798854a..52b70e5bc2abda2d65cd1394c9b0572b37d9f42c 100644
--- a/LayoutTests/fast/transforms/matrix-with-zoom.html
+++ b/LayoutTests/fast/transforms/matrix-with-zoom.html
@@ -36,10 +36,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