Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
| index de5cc8f1c0b8e4a70a18ab5c56d078fe933d13c0..816fc54f923df78d0b8323f7369efeb9e60a1c05 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
| @@ -436,7 +436,14 @@ WebInspector.ConsoleViewMessage.prototype = { |
| note.classList.add("info-note"); |
| note.title = WebInspector.UIString("Object value at left was snapshotted when logged, value below was evaluated just now."); |
| - var section = new WebInspector.ObjectPropertiesSection(obj, titleElement, this._linkifier); |
| + var titleText = titleElement.deepTextContent(); |
| + var expandedTitleElement = null; |
| + if (obj.description !== titleText && WebInspector.ObjectPropertiesSection.needsAlternateTitle(obj)) { |
| + expandedTitleElement = createElement("span"); |
| + expandedTitleElement.createTextChild(obj.description || ""); |
|
lushnikov
2016/07/12 02:51:55
let's just create a TextNode with obj.description
luoe
2016/07/13 18:06:28
One reason to keep expandedTitleElement an HTMLEle
|
| + } |
| + |
| + var section = new WebInspector.ObjectPropertiesSection(obj, titleElement, expandedTitleElement, this._linkifier); |
| section.element.classList.add("console-view-object-properties-section"); |
| section.enableContextMenu(); |
| return section; |