mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 724025 - Correctly flatten transform-style:flat with BasicLayers. r=roc
This commit is contained in:
parent
cca8fbcca8
commit
42f3cd0352
@ -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;
|
||||
|
@ -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
|
||||
|
@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<div style="height: 100px; width: 100px; background: lime">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -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>
|
Loading…
Reference in New Issue
Block a user