зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1223736 - Part 1: Set correct effective transform on mask layers. r=thinker
This commit is contained in:
Родитель
af785a12fd
Коммит
66a2278a0a
|
@ -1466,11 +1466,7 @@ ContainerLayer::DefaultComputeEffectiveTransforms(const Matrix4x4& aTransformToS
|
|||
ComputeEffectiveTransformsForChildren(idealTransform);
|
||||
}
|
||||
|
||||
if (idealTransform.CanDraw2D()) {
|
||||
ComputeEffectiveTransformForMaskLayers(aTransformToSurface);
|
||||
} else {
|
||||
ComputeEffectiveTransformForMaskLayers(Matrix4x4());
|
||||
}
|
||||
ComputeEffectiveTransformForMaskLayers(aTransformToSurface);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="position:relative; left: 400px; width: 200px; height: 200px; overflow:hidden; border-radius: 20px;">
|
||||
<div style="width:200px; height:200px; background-color:red; transform: perspective(100px) rotateY(10deg)"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="width:200px; height: 200px; transform: translate(400px);">
|
||||
<div style="width: 200px; height: 200px; overflow:hidden; border-radius: 20px;">
|
||||
<div style="width:200px; height:200px; background-color:red; transform: perspective(100px) rotateY(10deg)"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -19,3 +19,4 @@ skip-if(!asyncPan) != pull-background-displayport-4.html about:blank # fails wit
|
|||
skip-if(!asyncPan) != pull-background-displayport-5.html about:blank
|
||||
skip-if(!asyncPan) != pull-background-displayport-6.html about:blank # fails with non-overlay scrollbars and event regions due to bug 1148515
|
||||
fuzzy(2,30150) == opacity-blending.html opacity-blending-ref.html
|
||||
fuzzy(1,1) == mask-layer-transform.html mask-layer-transform-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче