<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[196229] trunk/PerformanceTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/196229">196229</a></dd>
<dt>Author</dt> <dd>jonlee@apple.com</dd>
<dt>Date</dt> <dd>2016-02-06 16:34:31 -0800 (Sat, 06 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Move createElement and createSVGElement to Utilities.

* Animometer/resources/extensions.js:
(Utilities.createElement): Added.
(Utilities.createSVGElement): Added.
(DocumentExtension.createElement): Deleted.
(DocumentExtension.createSvgElement): Deleted.

* Animometer/resources/debug-runner/animometer.js:
* Animometer/resources/runner/animometer.js:
* Animometer/tests/bouncing-particles/resources/bouncing-svg-images.js:
* Animometer/tests/bouncing-particles/resources/bouncing-svg-particles.js:
* Animometer/tests/bouncing-particles/resources/bouncing-svg-shapes.js:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkPerformanceTestsAnimometerresourcesdebugrunneranimometerjs">trunk/PerformanceTests/Animometer/resources/debug-runner/animometer.js</a></li>
<li><a href="#trunkPerformanceTestsAnimometerresourcesextensionsjs">trunk/PerformanceTests/Animometer/resources/extensions.js</a></li>
<li><a href="#trunkPerformanceTestsAnimometerresourcesrunneranimometerjs">trunk/PerformanceTests/Animometer/resources/runner/animometer.js</a></li>
<li><a href="#trunkPerformanceTestsAnimometertestsbouncingparticlesresourcesbouncingsvgimagesjs">trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-images.js</a></li>
<li><a href="#trunkPerformanceTestsAnimometertestsbouncingparticlesresourcesbouncingsvgparticlesjs">trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-particles.js</a></li>
<li><a href="#trunkPerformanceTestsAnimometertestsbouncingparticlesresourcesbouncingsvgshapesjs">trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-shapes.js</a></li>
<li><a href="#trunkPerformanceTestsChangeLog">trunk/PerformanceTests/ChangeLog</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkPerformanceTestsAnimometerresourcesdebugrunneranimometerjs"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/resources/debug-runner/animometer.js (196228 => 196229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/resources/debug-runner/animometer.js        2016-02-07 00:27:12 UTC (rev 196228)
+++ trunk/PerformanceTests/Animometer/resources/debug-runner/animometer.js        2016-02-07 00:34:31 UTC (rev 196229)
</span><span class="lines">@@ -186,11 +186,11 @@
</span><span class="cx"> 
</span><span class="cx">     _createSuiteElement: function(treeElement, suite, id)
</span><span class="cx">     {
</span><del>-        var suiteElement = DocumentExtension.createElement(&quot;li&quot;, {}, treeElement);
-        var expand = DocumentExtension.createElement(&quot;input&quot;, { type: &quot;checkbox&quot;,  class: &quot;expand-button&quot;, id: id }, suiteElement);
-        var label = DocumentExtension.createElement(&quot;label&quot;, { class: &quot;tree-label&quot;, for: id }, suiteElement);
</del><ins>+        var suiteElement = Utilities.createElement(&quot;li&quot;, {}, treeElement);
+        var expand = Utilities.createElement(&quot;input&quot;, { type: &quot;checkbox&quot;,  class: &quot;expand-button&quot;, id: id }, suiteElement);
+        var label = Utilities.createElement(&quot;label&quot;, { class: &quot;tree-label&quot;, for: id }, suiteElement);
</ins><span class="cx"> 
</span><del>-        var suiteCheckbox = DocumentExtension.createElement(&quot;input&quot;, { type: &quot;checkbox&quot; }, label);
</del><ins>+        var suiteCheckbox = Utilities.createElement(&quot;input&quot;, { type: &quot;checkbox&quot; }, label);
</ins><span class="cx">         suiteCheckbox.suite = suite;
</span><span class="cx">         suiteCheckbox.onchange = this._onChangeSuiteCheckbox.bind(this);
</span><span class="cx">         suiteCheckbox.testsElements = [];
</span><span class="lines">@@ -201,10 +201,10 @@
</span><span class="cx"> 
</span><span class="cx">     _createTestElement: function(listElement, test, suiteCheckbox)
</span><span class="cx">     {
</span><del>-        var testElement = DocumentExtension.createElement(&quot;li&quot;, {}, listElement);
-        var span = DocumentExtension.createElement(&quot;label&quot;, { class: &quot;tree-label&quot; }, testElement);
</del><ins>+        var testElement = Utilities.createElement(&quot;li&quot;, {}, listElement);
+        var span = Utilities.createElement(&quot;label&quot;, { class: &quot;tree-label&quot; }, testElement);
</ins><span class="cx"> 
</span><del>-        var testCheckbox = DocumentExtension.createElement(&quot;input&quot;, { type: &quot;checkbox&quot; }, span);
</del><ins>+        var testCheckbox = Utilities.createElement(&quot;input&quot;, { type: &quot;checkbox&quot; }, span);
</ins><span class="cx">         testCheckbox.test = test;
</span><span class="cx">         testCheckbox.onchange = function(event) {
</span><span class="cx">             this._onChangeTestCheckbox(event.target.suiteCheckbox);
</span><span class="lines">@@ -213,7 +213,7 @@
</span><span class="cx"> 
</span><span class="cx">         suiteCheckbox.testsElements.push(testElement);
</span><span class="cx">         span.appendChild(document.createTextNode(&quot; &quot; + test.name));
</span><del>-        var complexity = DocumentExtension.createElement(&quot;input&quot;, { type: &quot;number&quot; }, testElement);
</del><ins>+        var complexity = Utilities.createElement(&quot;input&quot;, { type: &quot;number&quot; }, testElement);
</ins><span class="cx">         complexity.relatedCheckbox = testCheckbox;
</span><span class="cx">         complexity.oninput = function(event) {
</span><span class="cx">             var relatedCheckbox = event.target.relatedCheckbox;
</span><span class="lines">@@ -229,7 +229,7 @@
</span><span class="cx"> 
</span><span class="cx">         Suites.forEach(function(suite, index) {
</span><span class="cx">             var suiteElement = this._createSuiteElement(treeElement, suite, &quot;suite-&quot; + index);
</span><del>-            var listElement = DocumentExtension.createElement(&quot;ul&quot;, {}, suiteElement);
</del><ins>+            var listElement = Utilities.createElement(&quot;ul&quot;, {}, suiteElement);
</ins><span class="cx">             var suiteCheckbox = this._checkboxElement(suiteElement);
</span><span class="cx"> 
</span><span class="cx">             suite.tests.forEach(function(test) {
</span></span></pre></div>
<a id="trunkPerformanceTestsAnimometerresourcesextensionsjs"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/resources/extensions.js (196228 => 196229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/resources/extensions.js        2016-02-07 00:27:12 UTC (rev 196228)
+++ trunk/PerformanceTests/Animometer/resources/extensions.js        2016-02-07 00:34:31 UTC (rev 196229)
</span><span class="lines">@@ -54,6 +54,34 @@
</span><span class="cx">         if (classMethods)
</span><span class="cx">             Utilities.extendObject(classConstructor.prototype, classMethods);
</span><span class="cx">         return classConstructor;
</span><ins>+    },
+
+    createElement: function(name, attrs, parentElement)
+    {
+        var element = document.createElement(name);
+
+        for (var key in attrs)
+            element.setAttribute(key, attrs[key]);
+
+        parentElement.appendChild(element);
+        return element;
+    },
+
+    createSVGElement: function(name, attrs, xlinkAttrs, parentElement)
+    {
+        const svgNamespace = &quot;http://www.w3.org/2000/svg&quot;;
+        const xlinkNamespace = &quot;http://www.w3.org/1999/xlink&quot;;
+
+        var element = document.createElementNS(svgNamespace, name);
+
+        for (var key in attrs)
+            element.setAttribute(key, attrs[key]);
+
+        for (var key in xlinkAttrs)
+            element.setAttributeNS(xlinkNamespace, key, xlinkAttrs[key]);
+
+        parentElement.appendChild(element);
+        return element;
</ins><span class="cx">     }
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="lines">@@ -306,34 +334,3 @@
</span><span class="cx">         return roots.reduce(function(a, b) { return a * b; });
</span><span class="cx">     }
</span><span class="cx"> };
</span><del>-
-DocumentExtension =
-{
-    createElement: function(name, attrs, parentElement)
-    {
-        var element = document.createElement(name);
-
-        for (var key in attrs)
-            element.setAttribute(key, attrs[key]);
-
-        parentElement.appendChild(element);
-        return element;
-    },
-
-    createSvgElement: function(name, attrs, xlinkAttrs, parentElement)
-    {
-        const svgNamespace = &quot;http://www.w3.org/2000/svg&quot;;
-        const xlinkNamespace = &quot;http://www.w3.org/1999/xlink&quot;;
-
-        var element = document.createElementNS(svgNamespace, name);
-
-        for (var key in attrs)
-            element.setAttribute(key, attrs[key]);
-
-        for (var key in xlinkAttrs)
-            element.setAttributeNS(xlinkNamespace, key, xlinkAttrs[key]);
-
-        parentElement.appendChild(element);
-        return element;
-    }
-};
</del></span></pre></div>
<a id="trunkPerformanceTestsAnimometerresourcesrunneranimometerjs"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/resources/runner/animometer.js (196228 => 196229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/resources/runner/animometer.js        2016-02-07 00:27:12 UTC (rev 196228)
+++ trunk/PerformanceTests/Animometer/resources/runner/animometer.js        2016-02-07 00:34:31 UTC (rev 196229)
</span><span class="lines">@@ -86,11 +86,11 @@
</span><span class="cx"> 
</span><span class="cx">     _addHeader: function()
</span><span class="cx">     {
</span><del>-        var thead = DocumentExtension.createElement(&quot;thead&quot;, {}, this.element);
-        var row = DocumentExtension.createElement(&quot;tr&quot;, {}, thead);
</del><ins>+        var thead = Utilities.createElement(&quot;thead&quot;, {}, this.element);
+        var row = Utilities.createElement(&quot;tr&quot;, {}, thead);
</ins><span class="cx"> 
</span><span class="cx">         this._headers.forEach(function (header) {
</span><del>-            var th = DocumentExtension.createElement(&quot;th&quot;, {}, row);
</del><ins>+            var th = Utilities.createElement(&quot;th&quot;, {}, row);
</ins><span class="cx">             if (header.title != Strings.text.results.graph)
</span><span class="cx">                 th.textContent = header.title;
</span><span class="cx">             if (header.children)
</span><span class="lines">@@ -104,7 +104,7 @@
</span><span class="cx">         if (!data)
</span><span class="cx">             return;
</span><span class="cx"> 
</span><del>-        var button = DocumentExtension.createElement(&quot;button&quot;, { class: &quot;small-button&quot; }, td);
</del><ins>+        var button = Utilities.createElement(&quot;button&quot;, { class: &quot;small-button&quot; }, td);
</ins><span class="cx"> 
</span><span class="cx">         button.addEventListener(&quot;click&quot;, function() {
</span><span class="cx">             var score = testResults[Strings.json.score].toFixed(2);
</span><span class="lines">@@ -152,15 +152,15 @@
</span><span class="cx"> 
</span><span class="cx">     _addEmptyRow: function()
</span><span class="cx">     {
</span><del>-        var row = DocumentExtension.createElement(&quot;tr&quot;, {}, this.element);
</del><ins>+        var row = Utilities.createElement(&quot;tr&quot;, {}, this.element);
</ins><span class="cx">         this._flattenedHeaders.forEach(function (header) {
</span><del>-            return DocumentExtension.createElement(&quot;td&quot;, { class: &quot;suites-separator&quot; }, row);
</del><ins>+            return Utilities.createElement(&quot;td&quot;, { class: &quot;suites-separator&quot; }, row);
</ins><span class="cx">         });
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     _addTest: function(testName, testResults, options)
</span><span class="cx">     {
</span><del>-        var row = DocumentExtension.createElement(&quot;tr&quot;, {}, this.element);
</del><ins>+        var row = Utilities.createElement(&quot;tr&quot;, {}, this.element);
</ins><span class="cx"> 
</span><span class="cx">         var isNoisy = false;
</span><span class="cx">         [Strings.json.experiments.complexity, Strings.json.experiments.frameRate].forEach(function (experiment) {
</span><span class="lines">@@ -184,12 +184,12 @@
</span><span class="cx">                 var titleClassName = className;
</span><span class="cx">                 if (isNoisy)
</span><span class="cx">                     titleClassName += &quot; noisy-results&quot;;
</span><del>-                var td = DocumentExtension.createElement(&quot;td&quot;, { class: titleClassName }, row);
</del><ins>+                var td = Utilities.createElement(&quot;td&quot;, { class: titleClassName }, row);
</ins><span class="cx">                 td.textContent = testName;
</span><span class="cx">                 return;
</span><span class="cx">             }
</span><span class="cx"> 
</span><del>-            var td = DocumentExtension.createElement(&quot;td&quot;, { class: className }, row);
</del><ins>+            var td = Utilities.createElement(&quot;td&quot;, { class: className }, row);
</ins><span class="cx">             if (header.title == Strings.text.results.graph) {
</span><span class="cx">                 this._addGraphButton(td, testName, testResults);
</span><span class="cx">             } else if (!(&quot;text&quot; in header)) {
</span></span></pre></div>
<a id="trunkPerformanceTestsAnimometertestsbouncingparticlesresourcesbouncingsvgimagesjs"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-images.js (196228 => 196229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-images.js        2016-02-07 00:27:12 UTC (rev 196228)
+++ trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-images.js        2016-02-07 00:34:31 UTC (rev 196229)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx"> 
</span><span class="cx">         var attrs = { x: 0, y: 0, width: this.size.x, height: this.size.y };
</span><span class="cx">         var xlinkAttrs = { href: stage.imageSrc };
</span><del>-        this.element = DocumentExtension.createSvgElement(&quot;image&quot;, attrs, xlinkAttrs, stage.element);
</del><ins>+        this.element = Utilities.createSVGElement(&quot;image&quot;, attrs, xlinkAttrs, stage.element);
</ins><span class="cx">         this._move();
</span><span class="cx">     }
</span><span class="cx"> );
</span></span></pre></div>
<a id="trunkPerformanceTestsAnimometertestsbouncingparticlesresourcesbouncingsvgparticlesjs"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-particles.js (196228 => 196229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-particles.js        2016-02-07 00:27:12 UTC (rev 196228)
+++ trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-particles.js        2016-02-07 00:34:31 UTC (rev 196229)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx"> 
</span><span class="cx">     _createDefs: function()
</span><span class="cx">     {
</span><del>-        return DocumentExtension.createSvgElement(&quot;defs&quot;, {}, {}, this.element);
</del><ins>+        return Utilities.createSVGElement(&quot;defs&quot;, {}, {}, this.element);
</ins><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     _ensureDefsIsCreated: function()
</span><span class="lines">@@ -48,10 +48,10 @@
</span><span class="cx">     _createClipStar: function()
</span><span class="cx">     {
</span><span class="cx">         var attrs = { id: &quot;star-clip&quot;, clipPathUnits: &quot;objectBoundingBox&quot; };
</span><del>-        var clipPath  = DocumentExtension.createSvgElement(&quot;clipPath&quot;, attrs, {}, this._ensureDefsIsCreated());
</del><ins>+        var clipPath  = Utilities.createSVGElement(&quot;clipPath&quot;, attrs, {}, this._ensureDefsIsCreated());
</ins><span class="cx"> 
</span><span class="cx">         attrs = { d: &quot;M.50,0L.38,.38L0,.38L.30,.60L.18,1L.50,.75L.82,1L.70,.60L1,.38L.62,.38z&quot; };
</span><del>-        DocumentExtension.createSvgElement(&quot;path&quot;, attrs, {}, clipPath);
</del><ins>+        Utilities.createSVGElement(&quot;path&quot;, attrs, {}, clipPath);
</ins><span class="cx">         return clipPath;
</span><span class="cx">     },
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkPerformanceTestsAnimometertestsbouncingparticlesresourcesbouncingsvgshapesjs"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-shapes.js (196228 => 196229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-shapes.js        2016-02-07 00:27:12 UTC (rev 196228)
+++ trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-shapes.js        2016-02-07 00:34:31 UTC (rev 196229)
</span><span class="lines">@@ -18,13 +18,13 @@
</span><span class="cx">         switch (this._shape) {
</span><span class="cx">         case &quot;rect&quot;:
</span><span class="cx">             var attrs = { x: 0, y: 0, width: this.size.x, height: this.size.y };
</span><del>-            this.element = DocumentExtension.createSvgElement(&quot;rect&quot;, attrs, {}, stage.element);
</del><ins>+            this.element = Utilities.createSVGElement(&quot;rect&quot;, attrs, {}, stage.element);
</ins><span class="cx">             break;
</span><span class="cx"> 
</span><span class="cx">         case &quot;circle&quot;:
</span><span class="cx">         default:
</span><span class="cx">             var attrs = { cx: this.size.x / 2, cy: this.size.y / 2, r: Math.min(this.size.x, this.size.y) / 2 };
</span><del>-            this.element = DocumentExtension.createSvgElement(&quot;circle&quot;, attrs, {}, stage.element);
</del><ins>+            this.element = Utilities.createSVGElement(&quot;circle&quot;, attrs, {}, stage.element);
</ins><span class="cx">             break;
</span><span class="cx">         }
</span><span class="cx">     },
</span><span class="lines">@@ -61,11 +61,11 @@
</span><span class="cx">     createGradient: function(stops)
</span><span class="cx">     {
</span><span class="cx">         var attrs = { id: &quot;gradient-&quot; + ++this._gradientsCount };
</span><del>-        var gradient = DocumentExtension.createSvgElement(&quot;linearGradient&quot;, attrs, {}, this._ensureDefsIsCreated());
</del><ins>+        var gradient = Utilities.createSVGElement(&quot;linearGradient&quot;, attrs, {}, this._ensureDefsIsCreated());
</ins><span class="cx"> 
</span><span class="cx">         for (var i = 0; i &lt; stops; ++i) {
</span><span class="cx">             attrs = { offset: i * 100 / stops + &quot;%&quot;, 'stop-color': Stage.randomColor() };
</span><del>-            DocumentExtension.createSvgElement(&quot;stop&quot;, attrs, {}, gradient);
</del><ins>+            Utilities.createSVGElement(&quot;stop&quot;, attrs, {}, gradient);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         return gradient;
</span></span></pre></div>
<a id="trunkPerformanceTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/ChangeLog (196228 => 196229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/ChangeLog        2016-02-07 00:27:12 UTC (rev 196228)
+++ trunk/PerformanceTests/ChangeLog        2016-02-07 00:34:31 UTC (rev 196229)
</span><span class="lines">@@ -1,5 +1,21 @@
</span><span class="cx"> 2016-02-06  Jon Lee  &lt;jonlee@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Move createElement and createSVGElement to Utilities.
+
+        * Animometer/resources/extensions.js:
+        (Utilities.createElement): Added.
+        (Utilities.createSVGElement): Added.
+        (DocumentExtension.createElement): Deleted.
+        (DocumentExtension.createSvgElement): Deleted.
+
+        * Animometer/resources/debug-runner/animometer.js:
+        * Animometer/resources/runner/animometer.js:
+        * Animometer/tests/bouncing-particles/resources/bouncing-svg-images.js:
+        * Animometer/tests/bouncing-particles/resources/bouncing-svg-particles.js:
+        * Animometer/tests/bouncing-particles/resources/bouncing-svg-shapes.js:
+
+2016-02-06  Jon Lee  &lt;jonlee@apple.com&gt;
+
</ins><span class="cx">         Add a convenience function for creating a class.
</span><span class="cx"> 
</span><span class="cx">         The pattern for creating a class is common enough to add as a Utilities
</span></span></pre>
</div>
</div>

</body>
</html>