Closed Bug 1525371 Opened 5 years ago Closed 5 years ago

Remove the pres context pointer from ComputedStyle.

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 2 open bugs)

Details

Attachments

(4 files)

Move it to the frame instead.

Assignee: nobody → emilio
Priority: -- → P3

Depends on D18734

Now that there's no ArenaRefPtr, the styles aren't cleared when the shell goes
away (due to an iframe becoming display: none or what not). This caused a few
very confusing failures in test_initial_computation:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=c2746a05ce7b20759a820d6f26a55a3200d8e6b8&selectedJob=226267113

Which holds on to a reference of a style on a display: none iframe1, reframes
it periodically2, exposing this bug.

For now, keep the id of the shell we got the style from around. When we support
computing styles in display: none iframes this may need more work, but that's
out of the scope of this bug.

Depends on D18735

Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/c944db09eff5
Kill ComputedStyle::ComputedData. r=jwatt
https://hg.mozilla.org/integration/autoland/rev/525e804dc7e6
Kill ComputedStyle::mPresContext, move the pointer to the frame instead. r=jwatt
https://hg.mozilla.org/integration/autoland/rev/56eeff69792c
Remove ArenaRefPtr. r=jwatt
https://hg.mozilla.org/integration/autoland/rev/d9be4af74c4b
Fix a very subtle invalidation bug exposed by test_initial_computation.html. r=jwatt
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/c90fe3ee1999
followup: fix rusttests to reopen the CLOSED TREE.
Blocks: 1525955
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: