git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactor tune() to pass in an integer-based count
[WebKit-https.git]
/
PerformanceTests
/
Animometer
/
tests
/
examples
/
resources
/
canvas-electrons.js
diff --git
a/PerformanceTests/Animometer/tests/examples/resources/canvas-electrons.js
b/PerformanceTests/Animometer/tests/examples/resources/canvas-electrons.js
index
5e12e9f
..
11f8920
100644
(file)
--- a/
PerformanceTests/Animometer/tests/examples/resources/canvas-electrons.js
+++ b/
PerformanceTests/Animometer/tests/examples/resources/canvas-electrons.js
@@
-60,8
+60,6
@@
CanvasElectronsStage.prototype.constructor = CanvasElectronsStage;
CanvasElectronsStage.prototype.tune = function(count)
{
- count = count > 0 ? Math.floor(count) : Math.ceil(count);
-
if (count == 0)
return this._electrons.length;