RESOLVED FIXED 156663
Web Inspector: DataGrid should be virtualized so it only renders visible rows
https://bugs.webkit.org/show_bug.cgi?id=156663
Summary Web Inspector: DataGrid should be virtualized so it only renders visible rows
Timothy Hatcher
Reported Saturday, April 16, 2016 5:50:27 PM UTC
We make a large table that is causing major rendering hangs. We should only need to make a table for the visible portion of the table (plus some padding rows to reduce scrolling flashes).
Attachments
Patch (37.09 KB, patch)
2016-04-18 19:50 PDT, Timothy Hatcher
no flags
Patch (42.84 KB, patch)
2016-04-19 15:41 PDT, Timothy Hatcher
joepeck: review+
Radar WebKit Bug Importer
Comment 1 Saturday, April 16, 2016 5:50:55 PM UTC
Timothy Hatcher
Comment 2 Tuesday, April 19, 2016 3:50:08 AM UTC
Matt Baker
Comment 3 Tuesday, April 19, 2016 4:15:45 AM UTC
Comment on attachment 276684 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=276684&action=review > Source/WebInspectorUI/UserInterface/Views/DataGrid.js:40 > + this.rows = []; This could be _rows, since it's an implementation detail only accessed by DataGrid and DataGridNode. > Source/WebInspectorUI/UserInterface/Views/DataGrid.js:547 > + var dividerElement = headerCellElement.createChild("div", "divider"); let > Source/WebInspectorUI/UserInterface/Views/DataGrid.js:549 > + var collapseDiv = headerCellElement.createChild("div", "collapser-button"); let
Timothy Hatcher
Comment 4 Tuesday, April 19, 2016 11:41:30 PM UTC
Joseph Pecoraro
Comment 5 Wednesday, April 20, 2016 12:12:34 AM UTC
Comment on attachment 276766 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=276766&action=review r=me > Source/WebInspectorUI/ChangeLog:12 > + Call uplateLayoutIfNeeded since we don't use views here. Typo: "uplate" in many places in this ChangeLog. > Source/WebInspectorUI/UserInterface/Views/DataGrid.js:252 > + set inline(x) These setters should bail if the value didn't change. > Source/WebInspectorUI/UserInterface/Views/DataGrid.js:1089 > + // A sortable data grid might not be in added to a view, so it needs its layout updated here. Grammar: "might not be in added"
Joseph Pecoraro
Comment 6 Wednesday, April 20, 2016 12:12:53 AM UTC
Comment on attachment 276766 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=276766&action=review > Source/WebInspectorUI/ChangeLog:33 > + when the virtural table starts at an odd row. Typo: "virtural"
Timothy Hatcher
Comment 7 Wednesday, April 20, 2016 12:42:54 AM UTC
Note You need to log in before you can comment on or make changes to this bug.