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

Unified Diff: third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js

Issue 2139043002: DevTools: show alternate title onexpand of object in console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DevTools: show alternate title onexpand of object in console Created 4 years, 5 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
Index: third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
diff --git a/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js b/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
index 144a966417d113a18bbba2e274df28bb5aa37914..de46b4c15be3f91d1677b51758e6623ae37ff4f5 100644
--- a/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
+++ b/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
@@ -733,6 +733,20 @@ HTMLImageElement.prototype.completePromise = function()
}
/**
+ * @param {!Node} node
+ */
+Node.prototype.swapChildren = function(node) {
lushnikov 2016/07/20 23:54:26 let's inline this for now
luoe 2016/07/22 22:30:58 Done.
+ if (!node)
+ return;
+
+ var copyOfChildren = Array.prototype.slice.call(this.childNodes);
+ this.removeChildren();
+ this.appendChildren.apply(this, node.childNodes);
+ node.removeChildren();
+ node.appendChildren.apply(node, copyOfChildren);
+};
+
+/**
* @param {...!Node} var_args
*/
Node.prototype.appendChildren = function(var_args)

Powered by Google App Engine
This is Rietveld 408576698