From 0b67b218d0c8dc48a5301227802296aff98af6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 9 Jul 2016 22:43:52 -0700 Subject: style: Add a new Timer structure to the shared style context, and basic infrastructure for controlling animations. --- components/script_layout_interface/message.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'components/script_layout_interface/message.rs') 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, -- cgit v1.2.3