Closed Bug 1958942 Opened 1 year ago Closed 1 year ago

Refactor how we schedule and suppress rendering phases

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Regressed 1 open bug)

Details

(Whiteboard: [viewtransitions:m1])

Attachments

(2 files)

No description provided.

This starts some of the needed refactoring towards having proper
rendering suppression, and in general aligning better with the HTML
spec's "update the rendering" section.

Behavior changes should be minimal:

  • We suppress rendering until the pres shell is initialized rather than
    just created. This matches how autofocus already works and in general
    we don't want to forcibly flush an uninitialized presshell.

  • We handle view transition suppression more correctly in some (but not
    all) phases.

  • Some of the steps do no longer recurse manually nor check the view
    transitions suppression, as that's done centrally.

  • mAutoFocusFlushDocuments isn't tracked separately.

Follow-up work will involve changing most of the "pending resize/scroll/etc"
events to be per-document as per spec, and also implement suppression for
painting.

No behavior change as these all map to an existing RenderingPhase.

Status: NEW → ASSIGNED
Blocks: 1958952
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0b9e529a5541 Refactor how we schedule and suppress rendering phases. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Blocks: 1953365
Whiteboard: [viewtransitions:m1]
Regressions: 1960926
QA Whiteboard: [qa-triage-done-c140/b139]
Regressions: 1963526
Regressions: 1977161
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: