servo/components/style
Emilio Cobos Álvarez c52bae1923 style: Remove an invalid assert.
This assert was wrong. The assert may fire if we resurrect the node from a
different thread and insert a kid fast enough.

We allow resurrecting nodes (bumping the nodes from zero to one) to avoid
allocation churn.

In particular, while the thread dropping the node gets to read the children (so
after the fetch_sub from the refcount, but before the read() of the children),
another thread could plausibly bumped the refcount back, and added a children.

This is a very big edge case of course, but I'm kinda sad I hadn't realized
before.

Differential Revision: https://phabricator.services.mozilla.com/D63286
2020-04-16 16:35:07 +02:00
..
counter_style style: Use cbindgen for content property. 2020-02-12 02:43:08 +01:00
gecko style: Use cbindgen for shape-outside and clip-path. 2020-04-16 16:35:07 +02:00
gecko_bindings style: Remove unused FFI function to refcount nsIReferrerInfo. 2020-02-12 02:43:08 +01:00
gecko_string_cache style: Use cbindgen for content property. 2020-02-12 02:43:08 +01:00
invalidation Don't expose any AtomicRefCell directly from style traits 2020-04-04 13:08:51 +02:00
media_queries style: Fix Servo build. 2019-11-04 13:41:55 +01:00
properties style: Remove layout.css.webkit-appearance.enabled. 2020-04-16 16:35:07 +02:00
rule_tree style: Remove an invalid assert. 2020-04-16 16:35:07 +02:00
servo style: Rustfmt recent changes. 2020-02-12 02:43:23 +01:00
sharing style: Rustfmt recent changes. 2020-02-12 02:43:23 +01:00
stylesheets style: Add a style flag for the root element style. 2020-02-12 02:43:18 +01:00
use_counters style: Support css use counters for unimplemented properties. 2019-09-12 22:34:16 +02:00
values style: Add support for the 'all' value of text-decoration-skip-ink. 2020-04-16 16:35:07 +02:00
animation.rs style: Refactor some animations code 2020-04-14 13:40:43 +02:00
applicable_declarations.rs style: Rustfmt recent changes. 2019-11-30 20:45:07 +01:00
attr.rs Update parse_length to match spec 2020-04-03 21:32:02 +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: Update smallvec to 1.0. 2019-12-16 14:23:56 +01: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 Update SpiderMonkey 2020-03-06 11:13:28 +01:00
context.rs Remove usage of opts::get() from style. 2019-10-21 13:44:31 -07:00
custom_properties.rs style: Rustfmt recent changes. 2020-02-12 02:43:23 +01:00
data.rs Remove unused code from selector and style crates 2019-06-07 15:14:21 +02:00
dom.rs Don't expose any AtomicRefCell directly from style traits 2020-04-04 13:08:51 +02:00
dom_apis.rs style: Implement shadow part forwarding (minus invalidation). 2019-11-30 20:45:03 +01:00
driver.rs Replace ScopedTLS::unsafe_get by ScopedTLS::into_slots 2020-04-05 01:20:39 +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 Rustfmt recent changes. 2019-12-16 14:23:56 +01: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 Use the matches! macro from the standard library 2020-02-12 10:08:31 +01:00
logical_geometry.rs Rustfmt recent changes. 2019-12-16 14:23:56 +01:00
macros.rs Stylo: replace uses of mem::uninitialized with MaybeUninit 2019-07-16 08:03:54 +02:00
matching.rs style: Refactor some animations code 2020-04-14 13:40:43 +02:00
parallel.rs style: Update smallvec to 1.0. 2019-12-16 14:23:56 +01:00
parser.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
README.md
rule_cache.rs style: Undo minor debugging change. 2019-11-30 20:45:07 +01:00
rule_collector.rs Rustfmt recent changes. 2019-12-16 14:23:56 +01:00
scoped_tls.rs Replace ScopedTLS::unsafe_get by ScopedTLS::into_slots 2020-04-05 01:20:39 +02:00
selector_map.rs style: Rustfmt recent changes. 2019-11-30 20:45:07 +01: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: Rustfmt recent changes. 2020-02-12 02:43:23 +01:00
style_resolver.rs style: Add a style flag for the root element style. 2020-02-12 02:43:18 +01:00
stylesheet_set.rs Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13) 2020-02-14 12:27:14 +01:00
stylist.rs style: Update smallvec to 1.0. 2019-12-16 14:23:56 +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: Merge ImageLayer and Image. 2020-04-16 16:35:07 +02: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.