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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js

Issue 1924153002: DevTools: reorder items in the resources panel sidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/ui/treeoutline.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js b/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
index 15b2134233f8d58f9453a39888f2018dace769af..56ebfc63b571768ba55311c25b76091a06b24a03 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
@@ -655,6 +655,18 @@ TreeElement.prototype = {
},
/**
+ * @return {string}
+ */
+ titleAsText: function()
+ {
+ if (!this._title)
+ return "";
+ if (typeof this._title === "string")
+ return this._title;
+ return this._title.textContent;
+ },
+
+ /**
* @param {!WebInspector.InplaceEditor.Config} editingConfig
*/
startEditingTitle: function(editingConfig)

Powered by Google App Engine
This is Rietveld 408576698