servo/components/servo_arc
Emilio Cobos Álvarez cceb0bcb73
style: Simplify code for keeping alive shared memory until all sheets go away.
The existing code wasn't sound, as CSSOM objects also needed to go away before
the shared memory goes away (as they keep references to them).

This is sound assuming no presence of reference cycles introduced by CSSOM.

We may want to live with this and rely on chrome code not writing cycles like
this with UA stylesheet DOM objects.

We could explicitly drop all potentially-static objects... That seems pretty
error prone though.

Or we could also just leak the shared memory buffer, is there any reason why we
may not want to do that?

Differential Revision: https://phabricator.services.mozilla.com/D51870
2019-11-30 20:44:56 +01:00
..
Cargo.toml style: Rejigger a bit rust features so that rusttests still link. 2019-06-04 01:03:54 -04:00
lib.rs style: Simplify code for keeping alive shared memory until all sheets go away. 2019-11-30 20:44:56 +01:00