| Index: Source/devtools/front_end/ui/DataGrid.js
|
| diff --git a/Source/devtools/front_end/ui/DataGrid.js b/Source/devtools/front_end/ui/DataGrid.js
|
| index 3c40fce0f3159cbc9bd64812de6f9aad9575e01b..a0f9561e26875180bdf3bfc929811324d4d37d1e 100644
|
| --- a/Source/devtools/front_end/ui/DataGrid.js
|
| +++ b/Source/devtools/front_end/ui/DataGrid.js
|
| @@ -1128,14 +1128,14 @@ WebInspector.DataGridNode.prototype = {
|
| /** @type {boolean} */
|
| _isRoot: false,
|
|
|
| - get element()
|
| + /**
|
| + * @return {!Element}
|
| + */
|
| + element: function()
|
| {
|
| if (this._element)
|
| return this._element;
|
|
|
| - if (!this.dataGrid)
|
| - return null;
|
| -
|
| this._element = document.createElement("tr");
|
| this._element._dataGridNode = this;
|
|
|
| @@ -1550,7 +1550,7 @@ WebInspector.DataGridNode.prototype = {
|
| currentAncestor = currentAncestor.parent;
|
| }
|
|
|
| - this.element.scrollIntoViewIfNeeded(false);
|
| + this.element().scrollIntoViewIfNeeded(false);
|
| },
|
|
|
| /**
|
| @@ -1692,8 +1692,8 @@ WebInspector.DataGridNode.prototype = {
|
|
|
| var nextNode = null;
|
| var previousNode = this.traversePreviousNode(true, true);
|
| - var previousElement = previousNode ? previousNode.element : this.dataGrid._topFillerRow;
|
| - this.dataGrid.dataTableBody.insertBefore(this.element, previousElement.nextSibling);
|
| + var previousElement = previousNode ? previousNode.element() : this.dataGrid._topFillerRow;
|
| + this.dataGrid.dataTableBody.insertBefore(this.element(), previousElement.nextSibling);
|
|
|
| if (this.expanded)
|
| for (var i = 0; i < this.children.length; ++i)
|
|
|