summaryrefslogtreecommitdiffstats
path: root/WebCore/inspector/front-end/treeoutline.js
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/inspector/front-end/treeoutline.js')
-rw-r--r--WebCore/inspector/front-end/treeoutline.js18
1 files changed, 16 insertions, 2 deletions
diff --git a/WebCore/inspector/front-end/treeoutline.js b/WebCore/inspector/front-end/treeoutline.js
index e2f879c..a1e052f 100644
--- a/WebCore/inspector/front-end/treeoutline.js
+++ b/WebCore/inspector/front-end/treeoutline.js
@@ -485,6 +485,15 @@ TreeElement.prototype = {
this._setListItemNodeContent();
},
+ get titleHTML() {
+ return this._titleHTML;
+ },
+
+ set titleHTML(x) {
+ this._titleHTML = x;
+ this._setListItemNodeContent();
+ },
+
get tooltip() {
return this._tooltip;
},
@@ -553,8 +562,13 @@ TreeElement.prototype = {
{
if (!this._listItemNode)
return;
- if (!this._title || typeof this._title === "string")
- this._listItemNode.innerHTML = this._title;
+
+ if (!this._titleHTML && !this._title)
+ this._listItemNode.removeChildren();
+ else if (typeof this._titleHTML === "string")
+ this._listItemNode.innerHTML = this._titleHTML;
+ else if (typeof this._title === "string")
+ this._listItemNode.textContent = this._title;
else {
this._listItemNode.removeChildren();
if (this._title.parentNode)