aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-07-09 22:43:52 -0700
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-07-20 09:05:53 -0700
commit0b67b218d0c8dc48a5301227802296aff98af6d7 (patch)
tree50988441e1577dcfa61d1581318b34255e3a2c07 /components/script_layout_interface
parent2e68821014053ebf547818e017c423a5d52717d5 (diff)
downloadservo-0b67b218d0c8dc48a5301227802296aff98af6d7.tar.gz
servo-0b67b218d0c8dc48a5301227802296aff98af6d7.zip
style: Add a new Timer structure to the shared style context, and basic infrastructure for controlling animations.
Diffstat (limited to 'components/script_layout_interface')
-rw-r--r--components/script_layout_interface/message.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script_layout_interface/message.rs b/components/script_layout_interface/message.rs
index 22370b043c3..ce97c805bb2 100644
--- a/components/script_layout_interface/message.rs
+++ b/components/script_layout_interface/message.rs
@@ -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,