Bug 1840214 - Disable inset box-shadow zero blur clips on new clip-path r=gfx-reviewers,lsalzman

This is causing some issues and we're close to release, do disable
this rare case on the new path for now.

Differential Revision: https://phabricator.services.mozilla.com/D181946
This commit is contained in:
Glenn Watson 2023-06-26 01:46:51 +00:00
parent 5bb94ae818
commit 0ddb7a38cd
2 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,10 @@ fn can_use_clip_chain_for_quad_path(
}
match clip_node.item.kind {
ClipItemKind::Rectangle { mode: ClipMode::ClipOut, .. } |
ClipItemKind::RoundedRectangle { mode: ClipMode::ClipOut, .. } => {
return false;
}
ClipItemKind::RoundedRectangle { .. } | ClipItemKind::Rectangle { .. } => {}
ClipItemKind::BoxShadow { .. } => {
// legacy path for box-shadows for now (move them to a separate primitive next)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB