servo/components/style
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 Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
gecko style: Fix ElementWrapper::is_link. 2019-11-30 20:44:55 +01:00
gecko_bindings style: Modify URLExtraData rust debug to include referrerInfo. 2019-07-23 22:54:06 +02:00
gecko_string_cache Stylo: replace uses of mem::uninitialized with MaybeUninit 2019-07-16 08:03:54 +02:00
invalidation style: Fix ElementWrapper::is_link. 2019-11-30 20:44:55 +01:00
media_queries style: Fix Servo build. 2019-11-04 13:41:55 +01:00
properties style: Make zoom: 0 mean the same as zoom: 1. 2019-11-30 20:44:56 +01:00
rule_tree Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30) 2019-07-31 13:34:01 +02:00
servo Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
sharing Remove obsolete logic for LRUCache size 2019-10-01 09:59:12 -07:00
stylesheets style: Simplify code for keeping alive shared memory until all sheets go away. 2019-11-30 20:44:56 +01:00
use_counters style: Support css use counters for unimplemented properties. 2019-09-12 22:34:16 +02:00
values Fix some warnings new in Rust Nightly 2019-11-08 11:45:16 +01:00
animation.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
applicable_declarations.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
attr.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
author_styles.rs style: Remove support for XBL resources. 2019-05-07 12:55:29 +02:00
bezier.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
bloom.rs style: Shutdown Servo's thread-pool in leak-checking builds, leak the atom table elsewhere. 2019-09-12 22:34:16 +02:00
build.rs WebIDL codegen: Replace cmake with a single Python script 2019-09-27 13:53:19 +02:00
build_gecko.rs style: Report missing include filename in ServoBindings.toml. 2019-11-04 13:36:32 +01:00
Cargo.toml style: Remove some XBL code in the style system. 2019-11-04 13:36:32 +01:00
context.rs Remove usage of opts::get() from style. 2019-10-21 13:44:31 -07:00
custom_properties.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
data.rs Remove unused code from selector and style crates 2019-06-07 15:14:21 +02:00
dom.rs style: Remove some XBL code in the style system. 2019-11-04 13:36:32 +01:00
dom_apis.rs Revert style/dom_apis changes 2019-04-26 11:42:37 +02:00
driver.rs Update rayon to dedupe crossbeam-epoch 2019-07-12 21:01:33 +02:00
element_state.rs Rename nsIDocument to mozilla::dom::Document. 2019-01-07 00:32:51 +01:00
encoding_support.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
error_reporting.rs Make use of RefCell::try_borrow_unguarded 2019-04-12 19:02:07 +02:00
font_face.rs Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
font_metrics.rs style: Fix servo build, and appease tidy / fmt. 2019-04-12 12:20:15 +02:00
global_style_data.rs style: Fix Servo build, and rustfmt recent changes. 2019-09-12 23:04:56 +02:00
hash.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
lib.rs style: Use serde to serialize LengthPercentage and StyleRayFunction. 2019-11-04 13:36:32 +01:00
logical_geometry.rs style: Split SIDEWAYS bit in WritingMode. 2019-10-09 13:21:35 +02:00
macros.rs Stylo: replace uses of mem::uninitialized with MaybeUninit 2019-07-16 08:03:54 +02:00
matching.rs Update euclid. 2019-07-23 23:09:55 +02:00
parallel.rs Update rayon to dedupe crossbeam-epoch 2019-07-12 21:01:33 +02:00
parser.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
README.md
rule_cache.rs Dump more stuff in the assertion in set_font_size_dependency 2019-11-27 10:13:24 +01:00
rule_collector.rs Rustfmt and fix tidy on recent changes. 2019-06-25 13:11:31 +02:00
scoped_tls.rs style: Add a comment about a Send bound that may look confusing. 2019-09-12 22:34:16 +02:00
selector_map.rs Rustfmt and fix tidy on recent changes. 2019-06-25 13:11:31 +02:00
selector_parser.rs style: Add derived ToShmem implementations. 2019-04-12 12:19:52 +02:00
shared_lock.rs style: Fix Servo build. 2019-06-04 01:04:01 -04:00
str.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
style_adjuster.rs style: Use consistent naming and shared code for out-of-flow stuff. 2019-10-07 16:57:18 +02:00
style_resolver.rs style: Cleanup selector-matching for nested pseudo-elements, match ::slotted correctly when there's no selector before it, and add tests. 2019-05-29 16:14:26 +02:00
stylesheet_set.rs style: Remove support for XBL resources. 2019-05-07 12:55:29 +02:00
stylist.rs style: Support multiple parts in ::part() selectors. 2019-11-04 13:36:32 +01:00
thread_state.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
timer.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
traversal.rs style: Rustfmt recent changes. 2019-11-04 13:36:32 +01:00
traversal_flags.rs style: Cleanup unused style traversal flags. 2019-04-12 12:20:07 +02:00

servo-style

Style system for Servo, using rust-cssparser for parsing.