Bug 1261561 - Part 1: Fix TimeScale.getAnimationDimensions() to handle multiple iterations. r=pbro

MozReview-Commit-ID: FUjebmapYH1

--HG--
extra : rebase_source : 5f54bc420da55d5f66c684bb75f7e0be7fb810ad
This commit is contained in:
Ryo Kato 2016-04-04 08:32:39 -07:00
Родитель 2973c9f6e8
Коммит 4098f4c76b
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -328,7 +328,8 @@ var TimeScale = {
// The width of the endDelay.
let endDelayW = this.durationToDistance(Math.abs(endDelay) / rate);
// The start position of the endDelay.
let endDelayX = endDelay < 0 ? x + w - endDelayW : x + w;
let endDelayX = endDelay < 0 ? x + iterationW - endDelayW
: x + iterationW;
return {x, w, iterationW, delayX, delayW, negativeDelayW,
endDelayX, endDelayW};