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) |