зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1712195. Use SafeIntersect. r=aosmond
This uses the new SafeIntersect function to avoid empty rects that overflow from leaking through. Differential Revision: https://phabricator.services.mozilla.com/D116621
This commit is contained in:
Родитель
d595491cc7
Коммит
cc7145951e
|
@ -2428,7 +2428,7 @@ Maybe<wr::ImageMask> WebRenderCommandBuilder::BuildWrMaskImage(
|
|||
LayerIntRect::FromUnknownRect(
|
||||
aMaskItem->GetBuildingRect().ScaleToOutsidePixels(
|
||||
scale.width, scale.height, appUnitsPerDevPixel))
|
||||
.Intersect(itemRect);
|
||||
.SafeIntersect(itemRect);
|
||||
|
||||
if (visibleRect.IsEmpty()) {
|
||||
return Nothing();
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<style>
|
||||
* {
|
||||
scale: 48% 41467;
|
||||
border: solid !important;
|
||||
filter: url(#x);
|
||||
-webkit-mask-image: url(data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=)
|
||||
}
|
||||
</style>
|
Загрузка…
Ссылка в новой задаче