Title: [138842] trunk/LayoutTests
- Revision
- 138842
- Author
- wangxian...@chromium.org
- Date
- 2013-01-04 13:04:52 -0800 (Fri, 04 Jan 2013)
Log Message
Test compositing and slow scrolling behavior of fixed position elements under transformed elements
https://bugs.webkit.org/show_bug.cgi?id=103470
Reviewed by Simon Fraser.
Add test case for the behavior change about fixed position elements under transformed elements in bug 102543 by the way.
* compositing/layer-creation/no-compositing-for-fixed-position-under-transform-expected.txt: Added.
* compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (138841 => 138842)
--- trunk/LayoutTests/ChangeLog 2013-01-04 21:03:20 UTC (rev 138841)
+++ trunk/LayoutTests/ChangeLog 2013-01-04 21:04:52 UTC (rev 138842)
@@ -1,3 +1,15 @@
+2013-01-04 Xianzhu Wang <wangxian...@chromium.org>
+
+ Test compositing and slow scrolling behavior of fixed position elements under transformed elements
+ https://bugs.webkit.org/show_bug.cgi?id=103470
+
+ Reviewed by Simon Fraser.
+
+ Add test case for the behavior change about fixed position elements under transformed elements in bug 102543 by the way.
+
+ * compositing/layer-creation/no-compositing-for-fixed-position-under-transform-expected.txt: Added.
+ * compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html: Added.
+
2013-01-04 Tony Chang <t...@chromium.org>
Remove some autogenerated settings from InternalSettings.idl
Added: trunk/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform-expected.txt (0 => 138842)
--- trunk/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform-expected.txt (rev 0)
+++ trunk/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform-expected.txt 2013-01-04 21:04:52 UTC (rev 138842)
@@ -0,0 +1,17 @@
+TEST
+(GraphicsLayer
+ (bounds 800.00 600.00)
+ (children 1
+ (GraphicsLayer
+ (bounds 800.00 600.00)
+ (children 1
+ (GraphicsLayer
+ (position 8.00 8.00)
+ (bounds 100.00 30.00)
+ (drawsContent 1)
+ )
+ )
+ )
+ )
+)
+
Added: trunk/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html (0 => 138842)
--- trunk/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html (rev 0)
+++ trunk/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html 2013-01-04 21:04:52 UTC (rev 138842)
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ .transform {
+ width: 100px;
+ height: 30px;
+ -webkit-transform: translateZ(0);
+ }
+ .fixed {
+ position: fixed;
+ left: 10px;
+ top: 10px;
+ }
+ </style>
+
+ <script type="text/_javascript_">
+ if (window.internals) {
+ window.internals.settings.setEnableCompositingForFixedPosition(true);
+ window.internals.settings.setFixedPositionCreatesStackingContext(true);
+ }
+
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+
+ window.addEventListener("load", function() {
+ document.getElementById("layerTree").innerText = window.internals.layerTreeAsText(document);
+ document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons(document);
+ }, false);
+ }
+ </script>
+</head>
+
+<body>
+ <div class="transform">
+ <!-- This element should neither be composited nor force main thread scrolling. -->
+ <div class="fixed">TEST</div>
+ </div>
+
+ <pre id="layerTree"></pre>
+ <pre id="mainThreadScrollingReasons"></pre>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes