diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-07-09 22:43:52 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-07-20 09:05:53 -0700 |
commit | 0b67b218d0c8dc48a5301227802296aff98af6d7 (patch) | |
tree | 50988441e1577dcfa61d1581318b34255e3a2c07 /components/script/dom/testbinding.rs | |
parent | 2e68821014053ebf547818e017c423a5d52717d5 (diff) | |
download | servo-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/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 64fb6fb7578..8ee6dfe8025 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -581,6 +581,10 @@ impl TestBindingMethods for TestBinding { } } + fn AdvanceClock(&self, ms: i32) { + self.global().r().as_window().advance_animation_clock(ms); + } + fn Panic(&self) { panic!("explicit panic from script") } } |