layout: Expand animation test mode to support not force-ticking layout.

This commit is contained in:
Emilio Cobos Álvarez 2016-08-05 14:38:33 -07:00
parent 805988e839
commit 0e3d4ab407
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 16 additions and 12 deletions

View file

@ -1074,9 +1074,9 @@ impl Window {
}
/// Advances the layout animation clock by `delta` milliseconds, and then
/// forces a reflow.
pub fn advance_animation_clock(&self, delta: i32) {
self.layout_chan.send(Msg::AdvanceClockMs(delta)).unwrap();
/// forces a reflow if `tick` is true.
pub fn advance_animation_clock(&self, delta: i32, tick: bool) {
self.layout_chan.send(Msg::AdvanceClockMs(delta, tick)).unwrap();
}
/// Reflows the page unconditionally if possible and not suppressed. This