Closed Bug 1886739 Opened 3 months ago Closed 3 months ago

Give position: sticky items their own picture cache slice

Categories

(Core :: Graphics: WebRender, task)

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- wontfix
firefox127 --- fixed

People

(Reporter: jnicol, Assigned: jnicol)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When a position: sticky element is "stuck" and its sibling content is scrolling underneath it, this causes unnecessary amounts of invalidation leading to slow render times. We should give the sticky items their own picture cache slice.

https://blog.mozilla.org/en/category/products/firefox/ is a good example. The header bar is position: sticky and if you enable gfx.webrender.debug.picture-caching you can see the top row of tiles are constantly invalidating whilst scrolling.

See Also: → 1698766
Blocks: wr-todos

position: sticky items scroll independently of their containing
content, resulting in large amounts of picture cache invalidation when
scrolling, causing poor performance. This patch attempts to give them
their own picture cache slice in order to avoid that invalidation.

Assignee: nobody → jnicol
Status: NEW → ASSIGNED
Attachment #9394777 - Attachment description: WIP: Bug 1886739 - Give position: sticky items their own picture cache slice → Bug 1886739 - Give position: sticky items their own picture cache slice
Pushed by jnicol@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d5a2008c802b
Give position: sticky items their own picture cache slice r=gfx-reviewers,gw

Backed out for causing multiple failures

Backout link

Push with failures

Failure log // Failure log 2 // Failure log 3

Flags: needinfo?(jnicol)

Whoops, need to fuzz a few tests on android

Flags: needinfo?(jnicol)
Pushed by jnicol@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/50f38f0452e3
Give position: sticky items their own picture cache slice r=gfx-reviewers,gw
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
Regressions: 1895585
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: