Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: PerformanceTests/Animation/api-balls-keyframe-animations.html

Issue 299073003: Web Animations API: Avoid style resolution when calling element.animate() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename test to api-balls-keyframe-animations.html Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 Copyright (c) 2012 Cameron Adams. All rights reserved. 2 Copyright (c) 2012 Cameron Adams. All rights reserved.
3 Copyright (c) 2012 Code Aurora Forum. All rights reserved. 3 Copyright (c) 2012 Code Aurora Forum. All rights reserved.
4 Copyright (C) 2013 Google Inc. All rights reserved. 4 Copyright (C) 2013 Google Inc. All rights reserved.
5 5
6 Redistribution and use in source and binary forms, with or without 6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are 7 modification, are permitted provided that the following conditions are
8 met: 8 met:
9 * Redistributions of source code must retain the above copyright 9 * Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer. 10 notice, this list of conditions and the following disclaimer.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 width: 12px; 53 width: 12px;
54 height: 12px; 54 height: 12px;
55 border-radius: 6px; 55 border-radius: 6px;
56 } 56 }
57 </style> 57 </style>
58 <script src="../resources/runner.js"></script> 58 <script src="../resources/runner.js"></script>
59 <script src="resources/framerate.js"></script> 59 <script src="resources/framerate.js"></script>
60 <script> 60 <script>
61 var stageWidth = 600; 61 var stageWidth = 600;
62 var stageHeight = 600; 62 var stageHeight = 600;
63 var maxParticles = 500; 63 var maxParticles = 2500;
64 var minVelocity = 50; 64 var minVelocity = 50;
65 var maxVelocity = 500; 65 var maxVelocity = 500;
66 var particleRadius = 6; 66 var particleRadius = 6;
67 var colors = ["#cc0000", "#ffcc00", "#aaff00", "#0099cc", "#194c99", "#661999"]; 67 var colors = ["#cc0000", "#ffcc00", "#aaff00", "#0099cc", "#194c99", "#661999"];
68 var animationDuration = 10; 68 var animationDuration = 10;
69 69
70 var particles = []; 70 var particles = [];
71 var allParticleKeyframes = []; 71 var allParticleKeyframes = [];
72 72
73 window.onload = function () { 73 window.onload = function () {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 stopTrackingFrameRate(); 168 stopTrackingFrameRate();
169 169
170 for (var i = 0; i < particles.length; i++) 170 for (var i = 0; i < particles.length; i++)
171 particles[i].destroy(); 171 particles[i].destroy();
172 particles = []; 172 particles = [];
173 } 173 }
174 </script> 174 </script>
175 <style id="keyframes"></style> 175 <style id="keyframes"></style>
176 </head> 176 </head>
177 </html> 177 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698