| Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
|
| index 00faa50fe523dd4191da8576dfea490f5f9d2ba0..ca468b7e7714e30b724c5ca72047f9b19a7e92ef 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
|
| @@ -1212,6 +1212,8 @@ WebInspector.DataGridNode = function(data, hasChildren)
|
| this._expanded = false;
|
| /** @type {boolean} */
|
| this._selected = false;
|
| + /** @type {boolean} */
|
| + this._unsaved = false;
|
| /** @type {number|undefined} */
|
| this._depth;
|
| /** @type {boolean|undefined} */
|
| @@ -1275,6 +1277,8 @@ WebInspector.DataGridNode.prototype = {
|
| this._element.classList.add("selected");
|
| if (this.revealed)
|
| this._element.classList.add("revealed");
|
| + if (this.unsaved)
|
| + this._element.classList.add("unsaved");
|
| },
|
|
|
| /**
|
| @@ -1396,6 +1400,22 @@ WebInspector.DataGridNode.prototype = {
|
| this.deselect();
|
| },
|
|
|
| + get unsaved()
|
| + {
|
| + return this._unsaved;
|
| + },
|
| +
|
| + set unsaved(x)
|
| + {
|
| + this._unsaved = x;
|
| + if (!this._element)
|
| + return;
|
| + if (x)
|
| + this._element.classList.add("unsaved");
|
| + else
|
| + this._element.classList.remove("unsaved");
|
| + },
|
| +
|
| get expanded()
|
| {
|
| return this._expanded;
|
| @@ -1467,7 +1487,7 @@ WebInspector.DataGridNode.prototype = {
|
| var data = this.data[columnIdentifier];
|
| if (data instanceof Node) {
|
| cell.appendChild(data);
|
| - } else {
|
| + } else if (data !== null) {
|
| cell.textContent = data;
|
| if (this.dataGrid._columns[columnIdentifier].longText)
|
| cell.title = data;
|
|
|