Closed Bug 1778983 Opened 2 years ago Closed 2 years ago

Remove useless ProcessPendingRestyles call.

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Regressed 1 open bug)

Details

Attachments

(2 files)

No description provided.

That was about XBL constructors being able to run script. But XBL is
gone and this should just be wasted work.

I want to land this in preparation for container queries substantially
changing the model here.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ef564358a7e8
Remove useless ProcessPendingRestyles call. r=boris

Backed out for causing wpt failures in CSSTransition-canceling.tentative.html

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | /css/css-transitions/CSSTransition-canceling.tentative.html | Setting display:none on an element cancels its transitions - assert_equals: expected "1000px" but got "0.0640197px"
Flags: needinfo?(emilio)

When something switches to display: none, right now we rely on
StopAnimationsForElementsWithoutFrames(), which posts a restyle and the
previous ProcessPendingRestyles call was papering over it.

For other elements in the display none subtree it doesn't matter,
because we don't keep their styles around, but for the display: none
element themselves we do need to update transitions on time.

We could, possibly more generally, remove
StopAnimationsForElementsWithoutFrames() altogether and cancel
animations when we clear style data, perhaps... But that's probably
worth a follow-up.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3ea7d91368d1
Ensure we cancel transitions without the need of an extra flush. r=boris
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d3176de5dffa
Remove useless ProcessPendingRestyles call. r=boris
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Regressions: 1787062
Regressions: 1795904
Regressions: 1799404
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: