aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorjmr0 <jrosello720@gmail.com>2016-03-09 01:24:46 -0500
committerjmr0 <jrosello720@gmail.com>2016-06-15 23:28:07 -0400
commit2bff131535987da0330737f78fb23291593db30d (patch)
tree61ca05aa1da49d0d1a82856c13af460a91f94229 /components/script/dom/window.rs
parentce88b8ed30feff9c7d3f067041fe5d781e012351 (diff)
downloadservo-2bff131535987da0330737f78fb23291593db30d.tar.gz
servo-2bff131535987da0330737f78fb23291593db30d.zip
Implement non-visible pipeline and iframe visibility methods
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 4bfbb1993d1..b778b37abd7 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1477,6 +1477,14 @@ impl Window {
self.timers.suspend();
}
+ pub fn slow_down_timers(&self) {
+ self.timers.slow_down();
+ }
+
+ pub fn speed_up_timers(&self) {
+ self.timers.speed_up();
+ }
+
pub fn need_emit_timeline_marker(&self, timeline_type: TimelineMarkerType) -> bool {
let markers = self.devtools_markers.borrow();
markers.contains(&timeline_type)