Closed Bug 1535788 Opened 5 years ago Closed 5 years ago

Make the style set owned by the document.

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This is (really!) the last step to fix bug 1490401!

Depends on: 1535790

I need to figure out some leaks, but otherwise this is green: https://treeherder.mozilla.org/#/jobs?repo=try&revision=7d1884902ee75c1753e0a8ebb190f385d7814379

I think the only StyleSet -> Document strong reference right now may come via the doc group that nsStyleImageRequest holds onto:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=c74924ea32fc79f54f72a33e1000d47fdf9bd4f5

If it's not that I need to do a bit more debugging.

Well, leak's still there, I guess I get to figure out how to use the CC logs :)

This is the last step to be able to call matchMedia on display: none iframes.

This is green, except for some startup preference query tests that I'm going to
address in a blocking bug (making LangGroupFontPrefs global, basically).

The setup is similar to the ShadowRoot one, except we don't eagerly keep the
StyleSet around up-to-date, we only fill it if it ever had a pres context.

Depends on: 1536176
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/60c20a0f320c
Make the Document own the StyleSet. r=heycam
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/138e93062825
add some includes to fix some builds on automation.
Assignee: nobody → emilio
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Regressions: 1541925
Blocks: 1541952
Regressions: 1542263
Regressions: 1542935
Regressions: 1567105
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: