servo/components/style
bors-servo e5762cb695 Auto merge of #16613 - birtles:clear-animation-dirty-bit, r=hiikezoe
Clear animation-only dirty descendants bit on display:none descendants

PR for [Gecko bug 1359658](https://bugzilla.mozilla.org/show_bug.cgi?id=1359658)

When an element has a display:none ancestor we don't traverse it during
restyle. However, at the end of restyling we expect the tree to be free
of dirty bits. We currently take special care to clear the regular
(non-animation) dirty bit on nodes in display:none subtrees in order to
preserve this invariant. This patch applies the same handling to the
animation-only dirty descendants bit.

---
- [X] `./mach build -d` just keeps crashing because mozjs calls sed.exe in a way that breaks it
- [X] `./mach test-tidy` does not report any errors
- [X] There are tests for these changes on the Gecko side

<!-- 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/16613)
<!-- Reviewable:end -->
2017-04-26 01:47:00 -05:00
..
binding_tools Update Gecko atom bindings for Gecko bug 1351139. 2017-03-28 10:19:09 -04:00
counter_style Exclude 'none' from <counter-style-name> after all. 2017-04-26 06:18:58 +02:00
gecko Add missing 'additive-symbols' validity checks 2017-04-26 13:02:40 +09:00
gecko_bindings Add 'fallback' descriptor to @counter-style 2017-04-26 13:02:30 +09:00
gecko_string_cache Allow 'decimal' and 'none' in <counter-style-name> 2017-04-26 13:04:27 +09:00
properties Keep custom-ident and string separate in animation/keyframes name. 2017-04-26 13:04:22 +09:00
rule_tree style: Tweak rule tree memory ordering. 2017-04-03 21:47:39 +02:00
servo Make font-variant shorthand. 2017-04-14 08:50:16 +09:00
values Consider foo and "foo" equal as keyframes/animation names. 2017-04-26 13:04:28 +09:00
animation.rs Keep custom-ident and string separate in animation/keyframes name. 2017-04-26 13:04:22 +09:00
attr.rs Fix indentation errors in servo rust code that tidy now finds. 2017-04-18 14:56:13 -04:00
bezier.rs More docs in style. 2017-01-02 10:40:20 +01:00
bloom.rs Do the sequential traversal breadth-first. 2017-04-09 14:52:49 +08:00
build.rs stylo: Add a build log mechanism. 2017-03-18 13:21:10 +01:00
build_gecko.rs Stylo: add -moz-border-*-colors support 2017-04-25 09:52:19 +08:00
cache.rs Optimize LRUCache by using a VecDeque. 2017-04-13 21:52:39 +08:00
Cargo.toml Update to cssparser 0.13 2017-04-25 01:45:33 +02:00
cascade_info.rs
context.rs Disable the style sharing cache on opt builds to avoid regressing Talos by matching too many revalidation selectors. 2017-04-23 12:43:17 -07:00
custom_properties.rs Rearrange PropertyDeclaration to avoid embedding DeclaredValue. 2017-03-16 14:40:55 -07:00
data.rs Bug 1341372 - Part 1: Let animation-only restyle include css-transition. 2017-04-17 17:06:12 +08:00
dom.rs Bug 1341372 - Part 6: Trigger transitions. 2017-04-17 17:08:54 +08:00
element_state.rs Bug 1350140: stylo: Implement all the remaining state pseudo-classes. r=heycam 2017-03-29 11:52:53 +02:00
encoding_support.rs Support line number offsets for inline stylesheets 2017-04-13 19:36:49 -04:00
error_reporting.rs Rename StdoutErrorReporter to RustLogReporter. 2017-04-24 08:23:41 +02:00
font_face.rs Reject @font-face descriptors with value value followed by more stuff. 2017-04-01 14:54:57 +02:00
font_metrics.rs stylo: Use gecko's font metrics 2017-04-10 14:29:51 +08:00
keyframes.rs Rename MemoryHoleReporter to NullReporter 2017-04-24 07:56:50 +02:00
lib.rs Add initial style system support for @counter-style rules 2017-04-26 13:02:22 +09:00
logical_geometry.rs style: Add Gecko-only support for writing-mode:sideways-{lr,rl}. 2017-04-17 11:24:23 +10:00
matching.rs Keep custom-ident and string separate in animation/keyframes name. 2017-04-26 13:04:22 +09:00
media_queries.rs Bug 1325878: Pass the MediaList down to Servo, making <style media> work. r=xidorn 2017-04-12 22:27:45 +08:00
parallel.rs Limit traversal statistics dumps to subtrees of 50 or more elements. 2017-04-13 13:41:52 +08:00
parser.rs SVG length parsing mode 2017-04-14 17:22:16 +08:00
README.md
restyle_hints.rs Rename SimpleSelector to Component. 2017-04-20 15:04:48 -07:00
scoped_tls.rs Bug 1331856 - Add style performance statistics to Servo. r=emilio 2017-01-19 15:05:19 -08:00
selector_parser.rs style: Stop special-casing a few attributes for style sharing, and use a visitor to track dependencies. 2017-04-09 18:15:50 +08:00
sequential.rs Limit traversal statistics dumps to subtrees of 50 or more elements. 2017-04-13 13:41:52 +08:00
shared_lock.rs Use AtomicRefCell instead of RwLock inside SharedRwLock for stylo. 2017-03-20 16:36:03 -07:00
sink.rs style: document the sink module. 2017-01-02 12:57:49 +01:00
str.rs Support vendor prefix keyframes rule. 2017-04-21 12:18:12 +09:00
style_adjuster.rs style: Move all the fixup code into a StyleAdjuster struct. 2017-04-26 03:22:24 +02:00
stylesheet_set.rs stylo: Centralize stylesheet handling. 2017-04-19 09:41:36 +02:00
stylesheets.rs Exclude 'none' from <counter-style-name> after all. 2017-04-26 06:18:58 +02:00
stylist.rs Keep custom-ident and string separate in animation/keyframes name. 2017-04-26 13:04:22 +09:00
supports.rs Check context to test keyframe rule_type 2017-04-12 16:40:37 +08:00
thread_state.rs Tidy up rust code with regard to new rule (no = in beginning of line) 2017-01-06 20:57:16 +01:00
timer.rs
traversal.rs Clear animation-only dirty descendants bit on display:none descendants 2017-04-26 14:14:30 +09:00
viewport.rs Pass ParserContext down to lengths 2017-04-12 16:40:48 +08:00

servo-style

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