mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Introduce UpdateAnimationTasks to perform a bunch of animation's tasks in a SequentialTask.
The UpdateAnimationsTasks is a bitflags and each bit is generated from Gecko's UpdateAnimationsTasks (enum class) values for matching values between C++ and Rust. For this reason, the bitflags is annotated as (feature = "gecko"), as a result update_animations() which uses this bitflags also became gecko-only function.
This commit is contained in:
parent
0c843d4b7d
commit
4183b0dff2
9 changed files with 82 additions and 21 deletions
|
@ -451,10 +451,6 @@ impl<'le> TElement for ServoLayoutElement<'le> {
|
|||
self.element.has_selector_flags(flags)
|
||||
}
|
||||
|
||||
fn update_animations(&self, _pseudo: Option<&PseudoElement>) {
|
||||
panic!("this should be only called on gecko");
|
||||
}
|
||||
|
||||
fn has_animations(&self, _pseudo: Option<&PseudoElement>) -> bool {
|
||||
panic!("this should be only called on gecko");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue