mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
style: Add a new Timer structure to the shared style context, and basic infrastructure for controlling animations.
This commit is contained in:
parent
2e68821014
commit
0b67b218d0
20 changed files with 178 additions and 26 deletions
|
@ -40,6 +40,11 @@ pub enum Msg {
|
|||
/// Requests that the layout thread render the next frame of all animations.
|
||||
TickAnimations,
|
||||
|
||||
/// Updates layout's timer for animation testing from script.
|
||||
///
|
||||
/// The inner field is the number of *milliseconds* to advance.
|
||||
AdvanceClockMs(i32),
|
||||
|
||||
/// Requests that the layout thread reflow with a newly-loaded Web font.
|
||||
ReflowWithNewlyLoadedWebFont,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue