servo/components/style/stylesheets
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
..
counter_style_rule.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
document_rule.rs Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
font_face_rule.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
font_feature_values_rule.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
import_rule.rs Remove unused code from selector and style crates 2019-06-07 15:14:21 +02:00
keyframes_rule.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
loader.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
media_rule.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
mod.rs Update euclid. 2019-07-23 23:09:55 +02:00
namespace_rule.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
origin.rs style: Don't keep two list of stylesheets in ServoStyleSet. 2019-05-07 12:55:26 +02:00
page_rule.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
rule_list.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
rule_parser.rs Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
rules_iterator.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
style_rule.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
stylesheet.rs style: Simplify code for keeping alive shared memory until all sheets go away. 2019-11-30 20:44:56 +01:00
supports_rule.rs Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
viewport_rule.rs Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15) 2019-08-23 08:23:21 +02:00