Bug 271340 - Backdrop-filter forces compositing on the root element and uses extra memory
Summary: Backdrop-filter forces compositing on the root element and uses extra memory
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Matt Woodrow
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-20 14:53 PDT by Matt Woodrow
Modified: 2024-03-27 13:35 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Woodrow 2024-03-20 14:53:53 PDT
<rdar://123831236>

Backdrop-filter makes the nearest suitable ancestor a backdrop-root, which forces compositing.
Most commonly, this is the document element, and we add an extra full-screen compositing layer.

This is done to ensure that the compositing layer that the backdrop is read from doesn't contain the background colour the view behind the document.

If the document element has an opaque background, then it will occlude the view's background color, and we can skip creating a compositing layer.
Comment 1 Matt Woodrow 2024-03-20 14:55:39 PDT
Pull request: https://github.com/WebKit/WebKit/pull/26211
Comment 2 EWS 2024-03-27 13:35:28 PDT
Committed 276749@main (7ffc7f9fd02a): <https://commits.webkit.org/276749@main>

Reviewed commits have been landed. Closing PR #26211 and removing active labels.