commit b27a3fd39b5dc554136b6d8bca050b780811a159
parent 1d4c1c557d5e330235f03b9d3d482cd639a1c53c
Author: Botond Ballo <botond@mozilla.com>
Date: Thu, 13 Nov 2025 04:59:07 +0000
Bug 1730749 - Remove the 'finite bounds' assertion in nsDisplayItem::GetClipWithRespectToASR. r=mstange
This assertion was mainly of value in the Layers codepath, and keeping
it working with WebRender is not worth the effort.
Differential Revision: https://phabricator.services.mozilla.com/D254157
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/layout/painting/nsDisplayList.cpp b/layout/painting/nsDisplayList.cpp
@@ -2744,10 +2744,7 @@ Maybe<nsRect> nsDisplayItem::GetClipWithRespectToASR(
DisplayItemClipChain::ClipForASR(GetClipChain(), aASR)) {
return Some(clip->GetClipRect());
}
- // View transitions don't get clipped and thus might hit this assertion if its
- // container passes a non-null aASR.
- NS_ASSERTION(GetType() == DisplayItemType::TYPE_VT_CAPTURE,
- "item should have finite clip with respect to aASR");
+
return Nothing();
}