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

Unified Diff: LayoutTests/transforms/3d/general/matrix-with-zoom-3d.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
« no previous file with comments | « LayoutTests/transforms/3d/general/cssmatrix-3d-zoom.html ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/transforms/3d/general/matrix-with-zoom-3d.html
diff --git a/LayoutTests/transforms/3d/general/matrix-with-zoom-3d.html b/LayoutTests/transforms/3d/general/matrix-with-zoom-3d.html
index d163f4f57ca25d7c5860a26dc5c6d0a6cc69ab96..59f585b44f048ee9abba77e1538766ab613ea9b8 100644
--- a/LayoutTests/transforms/3d/general/matrix-with-zoom-3d.html
+++ b/LayoutTests/transforms/3d/general/matrix-with-zoom-3d.html
@@ -37,10 +37,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) {
« no previous file with comments | « LayoutTests/transforms/3d/general/cssmatrix-3d-zoom.html ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698