Title: [89651] trunk
- Revision
- 89651
- Author
- [email protected]
- Date
- 2011-06-23 22:30:29 -0700 (Thu, 23 Jun 2011)
Log Message
2011-06-23 Simon Fraser <[email protected]>
Reviewed by Dan Bernstein.
Need to turn off default animations for anchorPointZ in PlatformCALayer
https://bugs.webkit.org/show_bug.cgi?id=63159
When the z-component of transform-origin changed, we ran an implicit
animation of anchorPointZ on the CALayer. Turn this off.
Test: transforms/3d/general/transform-origin-z-change.html
* platform/graphics/ca/mac/PlatformCALayerMac.mm:
(nullActionsDictionary):
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (89650 => 89651)
--- trunk/LayoutTests/ChangeLog 2011-06-24 01:53:29 UTC (rev 89650)
+++ trunk/LayoutTests/ChangeLog 2011-06-24 05:30:29 UTC (rev 89651)
@@ -1,3 +1,17 @@
+2011-06-23 Simon Fraser <[email protected]>
+
+ Reviewed by Dan Bernstein.
+
+ Need to turn off default animations for anchorPointZ in PlatformCALayer
+ https://bugs.webkit.org/show_bug.cgi?id=63159
+
+ Test that changes transform-origin-z and relies on the pixel result
+ to determine if it's animating.
+
+ * transforms/3d/general/transform-origin-z-change-expected.png: Added.
+ * transforms/3d/general/transform-origin-z-change-expected.txt: Added.
+ * transforms/3d/general/transform-origin-z-change.html: Added.
+
2011-06-20 MORITA Hajime <[email protected]>
Reviewed by Dimitri Glazkov.
Added: trunk/LayoutTests/transforms/3d/general/transform-origin-z-change-expected.png
(Binary files differ)
Property changes on: trunk/LayoutTests/transforms/3d/general/transform-origin-z-change-expected.png
___________________________________________________________________
Added: svn:mime-type
Added: trunk/LayoutTests/transforms/3d/general/transform-origin-z-change-expected.txt (0 => 89651)
--- trunk/LayoutTests/transforms/3d/general/transform-origin-z-change-expected.txt (rev 0)
+++ trunk/LayoutTests/transforms/3d/general/transform-origin-z-change-expected.txt 2011-06-24 05:30:29 UTC (rev 89651)
@@ -0,0 +1 @@
+
Added: trunk/LayoutTests/transforms/3d/general/transform-origin-z-change.html (0 => 89651)
--- trunk/LayoutTests/transforms/3d/general/transform-origin-z-change.html (rev 0)
+++ trunk/LayoutTests/transforms/3d/general/transform-origin-z-change.html 2011-06-24 05:30:29 UTC (rev 89651)
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style type="text/css">
+ body {
+ margin: 0;
+ }
+
+ .container {
+ top: 10px;
+ left: 10px;
+ -webkit-transform-style: preserve-3d;
+ -webkit-perspective: 500px;
+ outline: 1px solid black;
+ }
+
+ .box {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ }
+
+ .intermediate {
+ -webkit-transform: rotateY(-90deg);
+ -webkit-transform-style: preserve-3d;
+ }
+
+ .inner {
+ -webkit-transform: rotateY(-90deg);
+ background: green;
+ }
+
+ .indicator {
+ top: 10px;
+ left: 110px;
+ background-color: red;
+ }
+ </style>
+ <script type="text/_javascript_" charset="utf-8">
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText(true);
+ layoutTestController.waitUntilDone();
+ }
+
+ function doTest()
+ {
+ window.setTimeout(function() {
+ document.getElementById('target').style.webkitTransformOriginZ = '100px';
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ }, 0);
+ }
+
+ window.addEventListener('load', doTest, false);
+ </script>
+</head>
+<body>
+ <!-- The gren box should snap to the right, obscuring the red box. -->
+ <div class="indicator box"></div>
+ <div class="container box">
+ <div id="target" class="intermediate box">
+ <div class="inner box">
+ </div>
+ </div>
+ </div>
+</body>
+</html>
Modified: trunk/Source/WebCore/ChangeLog (89650 => 89651)
--- trunk/Source/WebCore/ChangeLog 2011-06-24 01:53:29 UTC (rev 89650)
+++ trunk/Source/WebCore/ChangeLog 2011-06-24 05:30:29 UTC (rev 89651)
@@ -1,3 +1,18 @@
+2011-06-23 Simon Fraser <[email protected]>
+
+ Reviewed by Dan Bernstein.
+
+ Need to turn off default animations for anchorPointZ in PlatformCALayer
+ https://bugs.webkit.org/show_bug.cgi?id=63159
+
+ When the z-component of transform-origin changed, we ran an implicit
+ animation of anchorPointZ on the CALayer. Turn this off.
+
+ Test: transforms/3d/general/transform-origin-z-change.html
+
+ * platform/graphics/ca/mac/PlatformCALayerMac.mm:
+ (nullActionsDictionary):
+
2011-06-23 Zhenyao Mo <[email protected]>
Reviewed by Kenneth Russell.
Modified: trunk/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm (89650 => 89651)
--- trunk/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm 2011-06-24 01:53:29 UTC (rev 89650)
+++ trunk/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm 2011-06-24 05:30:29 UTC (rev 89651)
@@ -119,6 +119,7 @@
NSNull* nullValue = [NSNull null];
NSDictionary* actions = [NSDictionary dictionaryWithObjectsAndKeys:
nullValue, @"anchorPoint",
+ nullValue, @"anchorPointZ",
nullValue, @"bounds",
nullValue, @"contents",
nullValue, @"contentsRect",
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes