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

Unified Diff: LayoutTests/fast/dom/Window/webkitConvertPointUpdateLayout.html

Issue 524523003: Revert of Remove webkitConvertPointFromPageToNode() and webkitConvertPointFromNodeToPage() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 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/dom/Window/webkitConvertPointUpdateLayout.html
diff --git a/LayoutTests/fast/dom/Window/webkitConvertPointUpdateLayout.html b/LayoutTests/fast/dom/Window/webkitConvertPointUpdateLayout.html
new file mode 100644
index 0000000000000000000000000000000000000000..323c380868d8696ed981cd6ef0b884ddbcb5a85f
--- /dev/null
+++ b/LayoutTests/fast/dom/Window/webkitConvertPointUpdateLayout.html
@@ -0,0 +1,44 @@
+<html>
+ <head>
+ <title>webkitConvertPointFromNodeToPage Test</title>
+ <script src="../../../resources/js-test.js"></script>
+ <style type="text/css" media="screen">
+
+ #test {
+ position: absolute;
+ left: 10px;
+ top: 10px;
+ width: 50px;
+ height: 50px;
+ background-color: blue;
+ }
+
+ </style>
+
+ <script type="text/javascript" charset="utf-8">
+ function doTest()
+ {
+ description("This test exercises the webkitConvertPointFromNodeToPage() function after changing the transform.");
+
+ var node = document.getElementById('test');
+ node.style.webkitTransform = 'translate(50px, 60px)';
+ var p = webkitConvertPointFromNodeToPage(node, new WebKitPoint(0, 0));
+ x = Math.round(p.x);
+ y = Math.round(p.y);
+ shouldBe('x', 60 + "");
+ shouldBe('y', 70 + "");
+
+ isSuccessfullyParsed();
+ }
+
+ window.onload = doTest;
+ </script>
+
+ </head>
+ <body>
+ <div id="test"></div>
+
+ <div id="description" style="margin-top: 200px"></div>
+ <div id="console"></div>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698