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

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

Issue 317153002: [DevTools] Move user agent override to responsive design toolbar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: mac style 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 | « Source/devtools/front_end/ResponsiveDesignView.js ('k') | Source/devtools/front_end/common/Settings.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 633ed5c362e53d7a54f3438af1a7a2b37e2856ab..0dac503811e7e738e08007c09f5e988f218563d1 100644
--- a/Source/devtools/front_end/common/DOMExtension.js
+++ b/Source/devtools/front_end/common/DOMExtension.js
@@ -334,6 +334,18 @@ Element.prototype.removeChildren = function()
this.textContent = "";
}
+Element.prototype.appendChildren = function(children)
+{
+ for (var i = 0; i < children.length; ++i)
+ this.appendChild(children[i]);
+}
+
+Element.prototype.setChildren = function(children)
+{
+ this.removeChildren();
+ this.appendChildren(children);
+}
+
Element.prototype.isInsertionCaretInside = function()
{
var selection = window.getSelection();
« no previous file with comments | « Source/devtools/front_end/ResponsiveDesignView.js ('k') | Source/devtools/front_end/common/Settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698