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

Unified Diff: Source/devtools/front_end/common/DOMExtension.js

Issue 367093003: DevTools: More code reduce via using document.createElementWithClass and document.createChild. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/components/FlameChart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/common/DOMExtension.js
diff --git a/Source/devtools/front_end/common/DOMExtension.js b/Source/devtools/front_end/common/DOMExtension.js
index 2da1f5e57af81600c0f07d9af53bbd4c17c0c6b0..e054e3bb035fc5262b4e6630f286bf849306e933 100644
--- a/Source/devtools/front_end/common/DOMExtension.js
+++ b/Source/devtools/front_end/common/DOMExtension.js
@@ -426,6 +426,15 @@ Element.prototype.createTextChildren = function(var_args)
DocumentFragment.prototype.createTextChildren = Element.prototype.createTextChildren;
/**
+ * @param {...!Element} var_args
+ */
+Element.prototype.appendChildren = function(var_args)
+{
+ for (var i = 0, n = arguments.length; i < n; ++i)
+ this.appendChild(arguments[i]);
+}
+
+/**
* @return {number}
*/
Element.prototype.totalOffsetLeft = function()
« no previous file with comments | « no previous file | Source/devtools/front_end/components/FlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698