servo/components/style
bors-servo d1279ebdc6
Auto merge of #26331 - mrobinson:animation-update-on-restyle, r=jdm,emilio
Restyle should reflect animations and transitions

When doing a restyle, we should apply animations and transitions to the
new style so that it is reflected in `getComputedStyle()` and the new
style information properly cascades. This is the first part of properly
ticking animations and transitions.

This causes a couple new animations tests failures (along with many new
passes), but we currently don't have support for properly handling
animations after they have completed, so this isn't totally unexpected.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #20116

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-04-29 18:06:24 -04:00
..
counter_style style: Reformat recent changes. 2020-04-16 17:50:17 +02:00
gecko style: Run rustfmt. 2020-04-18 03:48:22 +02:00
gecko_bindings style: Remove unused FFI function to refcount nsIReferrerInfo. 2020-02-12 02:43:08 +01:00
gecko_string_cache style: Reformat recent changes. 2020-04-16 17:50:17 +02:00
invalidation style: Implement parsing / selector-matching for :is() and :where(). 2020-04-18 03:48:15 +02:00
media_queries style: Fix Servo build. 2019-11-04 13:41:55 +01:00
properties Add an iterator for transition properties 2020-04-17 15:11:49 +02:00
rule_tree style: Export a size to fix a test that was trying to use a now-private type. 2020-04-23 05:07:02 +02:00
servo style: Run rustfmt. 2020-04-18 03:48:22 +02:00
sharing style: Rustfmt recent changes. 2020-02-12 02:43:23 +01:00
stylesheets style: Reformat recent changes. 2020-04-16 17:50:17 +02:00
use_counters style: Support css use counters for unimplemented properties. 2019-09-12 22:34:16 +02:00
values style: Fix two regressions from #26113. 2020-04-16 21:16:02 +02:00
animation.rs Restyle should reflect animations and transitions 2020-04-29 15:31:31 +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 style: Convert GenerateServoCSSPropList.py to py3. 2020-04-16 16:35:07 +02:00
build_gecko.rs style: Report missing include filename in ServoBindings.toml. 2019-11-04 13:36:32 +01:00
Cargo.toml Add ElementAnimationState and PossibleElementAnimationState 2020-04-24 11:51:17 +02:00
context.rs Add ElementAnimationState and PossibleElementAnimationState 2020-04-24 11:51:17 +02:00
custom_properties.rs style: Reformat recent changes. 2020-04-16 17:50:17 +02:00
data.rs Remove unused code from selector and style crates 2019-06-07 15:14:21 +02:00
dom.rs style: Allow to export a shadow part under multiple names. 2020-04-16 16:35:07 +02:00
dom_apis.rs style: Implement shadow part forwarding (minus invalidation). 2019-11-30 20:45:03 +01:00
driver.rs style: Fix two regressions from #26113. 2020-04-16 21:16:02 +02:00
element_state.rs style: Prototype :focus-visible behind a flag. 2020-04-16 16:35:07 +02:00
encoding_support.rs Some servo build fixes. 2020-04-16 18:29:30 +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 Add ElementAnimationState and PossibleElementAnimationState 2020-04-24 11:51:17 +02: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 Restyle should reflect animations and transitions 2020-04-29 15:31:31 +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 Update link 2020-04-28 09:09:54 -07:00
rule_cache.rs style: Undo minor debugging change. 2019-11-30 20:45:07 +01:00
rule_collector.rs style: Reformat recent changes. 2020-04-16 17:50:17 +02:00
scoped_tls.rs Replace ScopedTLS::unsafe_get by ScopedTLS::into_slots 2020-04-05 01:20:39 +02:00
selector_map.rs style: Implement parsing / selector-matching for :is() and :where(). 2020-04-18 03:48:15 +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: Reformat recent changes. 2020-04-16 17:50:17 +02: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 style: Minor cleanup of ServoStyleSet. 2020-04-16 16:35:07 +02:00
stylist.rs style: Implement parsing / selector-matching for :is() and :where(). 2020-04-18 03:48:15 +02: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: Reformat recent changes. 2020-04-16 17:50:17 +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.