mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
ffded06cc0
--HG-- extra : rebase_source : 7c69aae13ee1c1b4fff077a046e042bae9a4970d
11 lines
367 B
JavaScript
11 lines
367 B
JavaScript
// Seeks to the given time and then removes the SVG document's class to trigger
|
|
// a reftest snapshot. If pauseFlag is true, animations will be paused.
|
|
function setTimeAndSnapshot(timeInSeconds, pauseFlag) {
|
|
var svg = document.documentElement;
|
|
if (pauseFlag) {
|
|
svg.pauseAnimations();
|
|
}
|
|
svg.setCurrentTime(timeInSeconds);
|
|
svg.removeAttribute("class");
|
|
}
|