diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-06-28 17:31:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-28 17:31:01 -0500 |
commit | d3a81373e44634c30d31da0457e1c1e86c0911ed (patch) | |
tree | fbefd4e32ec3adff49b2ffec316f8efff6c647d4 /components/script/script_thread.rs | |
parent | 7b2080c5b7c933f74c0d92249a66f8602340ebbe (diff) | |
parent | 392f243ca7dd08a34da4ca15dfc5596f69adf4d8 (diff) | |
download | servo-d3a81373e44634c30d31da0457e1c1e86c0911ed.tar.gz servo-d3a81373e44634c30d31da0457e1c1e86c0911ed.zip |
Auto merge of #11766 - emilio:keyframes-parsing, r=SimonSapin,pcwalton
Add `@keyframes` and `animation-*` support.
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
<!-- Either: -->
- [x] There are tests for these changes
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This adds support for parsing `@keyframes` rules, and animation properties. Stylo will need it sometime soonish, plus I want to make animations work in Servo.
The remaining part is doin the math and trigger the animations correctly from servo. I don't expect it to be *that* hard, but probaby I'll need to learn a bit more about the current animation infra (e.g. why the heck is the `new_animations_sender` guarded by a `Mutex`?).
I'd expect to land this, since this is already a bunch of work, this is the part exclusively required by stylo (at least if we don't use Servo's machinery), the media query parsing is tested, and the properties land after a flag, but if you prefer to wait until I finish this up it's fine for me too.
r? @SimonSapin
cc @pcwalton @bholley
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11766)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 6697f334696..96555524c5d 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -671,7 +671,7 @@ impl ScriptThread { } // Store new resizes, and gather all other events. - let mut sequential = vec!(); + let mut sequential = vec![]; // Receive at least one message so we don't spinloop. let mut event = { |