From 4098f4c76bbc150dfbc12621539eb9f8e3e5511f Mon Sep 17 00:00:00 2001 From: Ryo Kato Date: Mon, 4 Apr 2016 08:32:39 -0700 Subject: [PATCH] Bug 1261561 - Part 1: Fix TimeScale.getAnimationDimensions() to handle multiple iterations. r=pbro MozReview-Commit-ID: FUjebmapYH1 --HG-- extra : rebase_source : 5f54bc420da55d5f66c684bb75f7e0be7fb810ad --- devtools/client/animationinspector/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/client/animationinspector/utils.js b/devtools/client/animationinspector/utils.js index aa795f60865f..d791bbf1879c 100644 --- a/devtools/client/animationinspector/utils.js +++ b/devtools/client/animationinspector/utils.js @@ -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};