gecko-dev/devtools/client
Daisuke Akatsuka 7d7ca7e5f3 Bug 1426194 - Part 1: Correspond to the keyframes which have same offset. r=pbro
The problem with this bug was that it did not correspond to animations that
have multiple keyframes with the same offset.

In summary graph, although we were changing the resolution for the graph
creation by the distance of offset between keyframes, as the calculation of
resolution between keyframes with equivalent offset was infinite, generation
was not completed and it was in a state of freezing.
In here, in case of zero distance of offsets, we make avoiding to affect to
changing the resolution.

In addition, the detail graph did not display correctly.
For example, there is an animation below.

div.animate(
  [
    {
      offset: 0,
      opacity: 1,
    },
    {
      offset: 0.5,
      opacity: 0.5,
    },
    {
      offset: 0.5,
      opacity: 0.1,
    },
    {
      offset: 1,
      opacity: 1,
    },
  ],
  1000
);

In this animation, opacity changes from 1 to 0.5 during 0 - 499ms, from 0.1 to 1
after 500ms.
So, opacity at offset 0.5 behaves 0.5 during 0 - 499ms, 0.1 after 500ms.
Since current animation inspector creates the graph with computed value of the
time of offset, the opacity of offset 0.5 always is 0.1 in the example,
was not correct.
As a solution, same to the actual animation work, create the graph between each
keyframes with range that from start keyframe offset time to just before the
time of end keyframe offset time.
Also, in same offsets, connects between just before the time of the offset time
and the offset time.
So, in the example, we separate as below, then calculate the each coordinates,
then combine as graph shape.

1: 0 ~ 499.999ms
2: 499.999 ~ 500ms (same offsets)
3: 500 ~ 999.999ms
4: 1000ms

MozReview-Commit-ID: p4Cn2N9iFt

--HG--
extra : rebase_source : 0f175fa0b7a3c882171e59a6e4a94bb4802e96d2
2017-12-22 00:49:10 +09:00
..
aboutdebugging Bug 1425393 - open sw tabs in background in about:debugging tests;r=ochameau 2017-12-12 15:49:36 -06:00
animationinspector Bug 1426194 - Part 1: Correspond to the keyframes which have same offset. r=pbro 2017-12-22 00:49:10 +09:00
canvasdebugger Bug 1416711 - Add registerAllActors API;r=ochameau 2017-11-13 21:22:15 +01:00
commandline Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE 2017-12-07 12:20:21 +02:00
debugger Bug 1426462 - Update Debugger Frontend (12-20). r=jdescottes 2017-12-22 18:33:29 +01:00
dom Bug 1417512 - Performance Tools to ES6 Classes, prop-types and react-dom-factories r=gregtatum 2017-11-15 17:00:45 +00:00
framework Bug 1421992 - Hand written cleanup patch to make tests pass after removing obsolete xpcshell functions. r=Gijs,ochameau a=Aryx 2017-12-21 11:11:57 +01:00
inspector Bug 1427051 - Revert portait mode width of the inspector back to 700px. r=me 2017-12-27 13:28:31 -05:00
jsonview Bug 1426094 - Add test for URL linkification in the JSON Viewer r=Honza 2017-12-22 17:41:09 +01:00
locales Bug 1425280 - Fix localization note mismatch in devtools files;r=pbro 2017-12-14 15:43:37 -06:00
memory Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
netmonitor Backed out changeset 591cf97d4777 (bug 1427077) for ES failures in /builds/worker/checkouts/gecko/devtools/client/shared/webpack/rewrite-lazy-getter.js r=backout on a CLOSED TREE 2018-01-04 10:42:44 +02:00
performance Bug 1417512 - Performance Tools to ES6 Classes, prop-types and react-dom-factories r=gregtatum 2017-11-15 17:00:45 +00:00
performance-new Backed out changeset 36b3f7fb7d31 (bug 1408124)for chrome failures in devtools test devtools/shared/security/tests/chrome/test_websocket-transport.html r=backout on a CLOSED TREE 2017-11-28 21:47:41 +02:00
preferences Bug 1423158 - Update Debugger Frontend (12-5) r=jdescottes 2017-12-13 18:18:50 -06:00
responsive.html Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
scratchpad Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE 2017-12-07 12:20:21 +02:00
shadereditor Bug 1416711 - Add registerAllActors API;r=ochameau 2017-11-13 21:22:15 +01:00
shared Backed out changeset 591cf97d4777 (bug 1427077) for ES failures in /builds/worker/checkouts/gecko/devtools/client/shared/webpack/rewrite-lazy-getter.js r=backout on a CLOSED TREE 2018-01-04 10:42:44 +02:00
sourceeditor Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
storage Bug 1402485 - Remove Delete all Session cookies option for non cookie staorage r=miker 2017-12-10 18:56:12 +05:30
styleeditor Bug 1426057 - Move chart style from skin/widgets.css StatisticsPanel.css r=Honza 2017-12-22 15:55:10 +08:00
themes Bug 1426057 - Move chart style from skin/widgets.css StatisticsPanel.css r=Honza 2017-12-22 15:55:10 +08:00
webaudioeditor Bug 1416711 - Add registerAllActors API;r=ochameau 2017-11-13 21:22:15 +01:00
webconsole Bug 1406038 - Rename and enable browser_webconsole_bug_1050691_click_function_to_source.js in new console frontend; r=bgrins. 2018-01-03 18:06:34 +01:00
webide Bug 1425363 - remove onWindowTitleChanged given that nobody uses it, r=bgrins 2017-12-14 21:55:44 -06:00
.eslintrc.js
definitions.js Backed out changeset 36b3f7fb7d31 (bug 1408124)for chrome failures in devtools test devtools/shared/security/tests/chrome/test_websocket-transport.html r=backout on a CLOSED TREE 2017-11-28 21:47:41 +02:00
jar.mn Bug 1426057 - Move chart style from skin/widgets.css StatisticsPanel.css r=Honza 2017-12-22 15:55:10 +08:00
menus.js Bug 1405584 - Add telemetry to track toolbox open time. r=francois,jdescottes datareview=francois 2017-10-11 11:43:25 +02:00
moz.build Backed out changeset 36b3f7fb7d31 (bug 1408124)for chrome failures in devtools test devtools/shared/security/tests/chrome/test_websocket-transport.html r=backout on a CLOSED TREE 2017-11-28 21:47:41 +02:00