Instead of pretending to be a regular node DataGrid object should have an explicit root node that would contain all its children. This way we don't need to share some methods between DataGridNode and DataGrid.
Created attachment 137686 [details] Patch
Comment on attachment 137686 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=137686&action=review > Source/WebCore/inspector/front-end/ApplicationCacheItemsView.js:208 > + this._dataGrid = new WebInspector.DataGrid(columns, new WebInspector.DataGridNode()); You should create root node implicitly within the data grid.
(In reply to comment #2) > (From update of attachment 137686 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=137686&action=review > > > Source/WebCore/inspector/front-end/ApplicationCacheItemsView.js:208 > > + this._dataGrid = new WebInspector.DataGrid(columns, new WebInspector.DataGridNode()); > > You should create root node implicitly within the data grid. Done.
Committed r114504: <http://trac.webkit.org/changeset/114504>