Bug 724025 - Correctly flatten transform-style:flat with BasicLayers. r=roc

This commit is contained in:
Matt Woodrow 2012-02-15 22:28:22 +13:00
parent cca8fbcca8
commit 42f3cd0352
4 changed files with 17 additions and 0 deletions

View File

@ -245,6 +245,7 @@ public:
// containers.
gfxMatrix residual;
gfx3DMatrix idealTransform = GetLocalTransform()*aTransformToSurface;
idealTransform.ProjectTo2D();
if (!idealTransform.CanDraw2D()) {
mEffectiveTransform = idealTransform;
@ -2940,6 +2941,7 @@ public:
// containers.
gfxMatrix residual;
gfx3DMatrix idealTransform = GetLocalTransform()*aTransformToSurface;
idealTransform.ProjectTo2D();
if (!idealTransform.CanDraw2D()) {
mEffectiveTransform = idealTransform;

View File

@ -43,3 +43,4 @@ fails-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == preserve3d-1a.html preser
# Different, but equivalent (for the given transform) transform origins
== rotatex-transformorigin-1a.html rotatex-transformorigin-1-ref.html
== overflow-hidden-1a.html overflow-hidden-1-ref.html
== transform-style-flat-1a.html transform-style-flat-1-ref.html

View File

@ -0,0 +1,6 @@
<html>
<body>
<div style="height: 100px; width: 100px; background: lime">
</div>
</body>
</html>

View File

@ -0,0 +1,8 @@
<html>
<body>
<div style="-moz-transform: rotatex(45deg); -moz-transform-origin: top">
<div style="-moz-transform: rotatex(-45deg); -moz-transform-origin: top; height: 200px; width: 100px; background: lime">
</div>
</div>
</body>
</html>