Closed Bug 1794415 Opened 2 years ago Closed 2 years ago

Force reflow of fewer anonymous children of `content-visibility: hidden`

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: mrobinson, Assigned: mrobinson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Bug 1789255 forced the reflow of all anonymous in-flow children of content-visibility: hidden elements. In some cases that can lead to more reflows than necessary, because this work-around is really only useful for anonymous blocks. In some cases, particularly involving content-visibility on the <body> element, this can lead to a decent number of reflows. This change tracks narrowing the work-around to only include anonymous blocks.

Reflow fewer types of anonymous children (only anonymous blocks) of
content-visibility: hidden elements. This reduces the number of
reflows for skipped content. This also adjusts to the implementation of
IsHiddenByContentVisibilityOnAnyAncestor() to match the implementation of
IsHiddenByContentVisibilityOfInFlowParentForLayout() in only skipping
one layer of anonymous content.

Pushed by mrobinson@igalia.com: https://hg.mozilla.org/integration/autoland/rev/2583696824d1 Force reflow of fewer anonymous children of `content-visibility: hidden` r=emilio
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
Blocks: 1791811
Regressions: 1816474
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: