servo/components/style
bors-servo 50e4171958 Auto merge of #19747 - emilio:doc-state-invalidator, r=upsuper
style: Add a document state invalidator.

Don't use it yet (since I was working from a Servo tree). Will hook it up and improve in the Gecko bug.

Right now it takes a `StyleRuleCascadeData`, which means that if all the origins in the document have state selectors we could do just one walk over the tree and not multiple, that will be improved.

Other than that, this is completely untested of course, but I prefer to land it, given I don't think it's complex, and work on the Gecko integration separately. The reason for this is that I also plan to fix the `<slot>` bugs, which will change `StyleRuleCascadeData` and such, and I want the two bugs to conflict as little as possible.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19747)
<!-- Reviewable:end -->
2018-01-12 05:09:04 -06:00
..
counter_style style: Some trivial cleanup. 2017-12-24 19:21:10 +01:00
gecko Auto merge of #19747 - emilio:doc-state-invalidator, r=upsuper 2018-01-12 05:09:04 -06:00
gecko_bindings style: Remove pointless assertion. 2017-12-29 19:17:29 +01:00
gecko_string_cache style: Remove some uses of unused unsafe. 2017-11-15 13:26:24 +01:00
invalidation style: Use Default for ExtraStyleData instead of Option. 2018-01-12 12:08:47 +01:00
properties style: Move paint-order outside of mako 2018-01-10 21:26:33 +08:00
rule_tree Skip rule node which contains only inherited properties for rule cache. 2018-01-05 11:29:01 +11:00
servo style: Add a document state invalidator. 2018-01-12 12:08:42 +01:00
sharing style: Use Option::get_or_insert_with. 2018-01-10 03:39:29 +01:00
stylesheets style: Some trivial cleanup. 2017-12-24 19:21:10 +01:00
values style: Move paint-order outside of mako 2018-01-10 21:26:33 +08:00
animation.rs Skip rule node which contains only inherited properties for rule cache. 2018-01-05 11:29:01 +11:00
applicable_declarations.rs Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
attr.rs Allow unused imports for AsciiExt in style code. 2017-11-09 12:43:23 +01:00
bezier.rs Don't use Point2D<f32> for cubic curves anymore 2017-07-19 10:19:41 +02:00
bloom.rs style: Use the ? operator for Option 2017-12-09 08:29:53 -08:00
build.rs Check that 'style' is compiled in a supported configuration. 2017-12-10 02:58:31 +01:00
build_gecko.rs style: Update bindgen to 0.31.3. 2017-10-31 20:09:18 +01:00
Cargo.toml Update euclid, azure, skia, offscreen_gl_context, plane-split, webrender 2017-12-08 14:32:28 +01:00
context.rs Add weighted telemetry probes for parallel restyles 2017-12-12 10:13:23 -06:00
custom_properties.rs style: Use the ? operator for Option 2017-12-09 08:29:53 -08:00
data.rs style: Add a couple FIXMEs I've noticed while working on this. 2018-01-12 12:08:40 +01:00
dom.rs style: Make invalidation state also be with the ::slotted rules. 2018-01-09 14:26:03 +01:00
dom_apis.rs style: Add invalidation support for ::slotted(). 2018-01-09 14:26:02 +01:00
driver.rs Add weighted telemetry probes for parallel restyles 2017-12-12 10:13:23 -06:00
element_state.rs style: Remove :unsolved pseudo-class 2018-01-10 17:20:06 +08:00
encoding_support.rs Use encoding-rs instead of rust-encoding for CSS parsing 2017-10-31 19:08:43 +01:00
error_reporting.rs style: Update cssparser to 0.23. 2017-12-05 10:01:37 +01:00
font_face.rs style: Move font-family outside of mako 2017-11-26 00:36:00 +08:00
font_metrics.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
hash.rs Revert "Diagnostic map semantics." 2017-10-23 13:51:08 -07:00
lib.rs style: Add a document state invalidator. 2018-01-12 12:08:42 +01:00
logical_geometry.rs style: Make all keywords CamelCase for consistency. 2017-12-06 02:35:10 +01:00
macros.rs style: Move font-variant-numeric outside of mako 2017-11-18 17:57:22 +08:00
matching.rs style: Fix propagation of the can_be_fragmented bit on Servo. 2018-01-04 14:48:28 +01:00
media_queries.rs style: Simplify a bit media query construction. 2017-11-06 13:51:53 +01:00
parallel.rs Increase stack safety margin for stylo. 2017-09-07 11:44:45 -07:00
parser.rs Allow deriving Parse for keywords. 2017-12-15 20:01:31 +01:00
README.md
rule_cache.rs Skip rule node which contains only inherited properties for rule cache. 2018-01-05 11:29:01 +11:00
scoped_tls.rs Reduce the size of top_down_dom stackframes. 2017-06-08 13:02:36 -04:00
selector_map.rs style: Remove some unneeded indirection. 2018-01-10 03:56:34 +01:00
selector_parser.rs style: Move :-moz-locale-dir matching to rust. 2018-01-11 14:47:29 +01:00
shared_lock.rs Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
str.rs Allow unused imports for AsciiExt in style code. 2017-11-09 12:43:23 +01:00
style_adjuster.rs style: Remove TNode::set_can_be_fragmented and TNode::can_be_fragmented. 2018-01-04 14:45:54 +01:00
style_resolver.rs style: Remove some unneeded indirection. 2018-01-10 03:56:34 +01:00
stylesheet_set.rs style: Make invalidation state also be with the ::slotted rules. 2018-01-09 14:26:03 +01:00
stylist.rs Auto merge of #19734 - emilio:less-indirection, r=mbrubeck 2018-01-09 23:34:15 -06:00
thread_state.rs Bump bitflags to 1.0 in every servo crate 2017-10-30 23:36:06 +01:00
timer.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
traversal.rs style: Require an nth-index cache for invalidation. 2017-11-29 21:22:29 +01:00
traversal_flags.rs style: Get rid of unstyled children only traversals. 2017-11-20 08:24:08 +01:00

servo-style

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