RESOLVED FIXED 156934
Web Inspector: HeapAllocationsTimeline grid should use built-in grid column icons
https://bugs.webkit.org/show_bug.cgi?id=156934
Summary Web Inspector: HeapAllocationsTimeline grid should use built-in grid column i...
Matt Baker
Reported 2016-04-22 15:31:48 PDT
* SUMMARY HeapAllocationsTimeline grid should use built-in grid column icons. To avoid subtle differences in styling, grid nodes should avoid creating their own icon elements for document fragment cells.
Attachments
[Patch] Proposed Fix (3.41 KB, patch)
2016-04-22 15:34 PDT, Matt Baker
no flags
[Patch] Proposed Fix (3.41 KB, patch)
2016-04-22 16:09 PDT, Matt Baker
no flags
Matt Baker
Comment 1 2016-04-22 15:34:29 PDT
Created attachment 277108 [details] [Patch] Proposed Fix
Radar WebKit Bug Importer
Comment 2 2016-04-22 15:35:23 PDT
Radar WebKit Bug Importer
Comment 3 2016-04-22 15:35:29 PDT
Joseph Pecoraro
Comment 4 2016-04-22 15:51:37 PDT
Comment on attachment 277108 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=277108&action=review I still don't think it makes sense for DataGrid to special case having an icon for a data grid cell. It feels like too much is getting put into DataGrid. As is, this change looks fine, it just seems like increased complexity for no profit. > Source/WebInspectorUI/UserInterface/Views/HeapAllocationsTimelineView.js:40 > + icon: true Style: Should have trailing comma.
Matt Baker
Comment 5 2016-04-22 16:05:51 PDT
(In reply to comment #4) > Comment on attachment 277108 [details] > [Patch] Proposed Fix > > View in context: > https://bugs.webkit.org/attachment.cgi?id=277108&action=review > > I still don't think it makes sense for DataGrid to special case having an > icon for a data grid cell. It feels like too much is getting put into > DataGrid. As is, this change looks fine, it just seems like increased > complexity for no profit. I disagree. Adding icon elements is a common operation, and pushing it into the grid adds very little complexity while ensuring consistently styled cell content.
Matt Baker
Comment 6 2016-04-22 16:09:26 PDT
Created attachment 277110 [details] [Patch] Proposed Fix
Timothy Hatcher
Comment 7 2016-04-22 16:20:40 PDT
Comment on attachment 277110 [details] [Patch] Proposed Fix One solution to Joe's concerns would be to have a subclass of DataGridNode that added the icon support, but didn't bake it into DataGridNode directly. That would be similar to GeneralTreeElement for TreeOutlines. But I think this is fine. I suspect there are other places we could do this.
Matt Baker
Comment 8 2016-04-22 19:00:52 PDT
Since grid cell formatting is the same for all cells in a column, we might want something like this: DataGridColumn (basic formatting for text & numbers) DataGridIconColumn DataGridCustomColumn (for document fragment cells) I'll give it some more thought.
WebKit Commit Bot
Comment 9 2016-04-22 19:49:20 PDT
Comment on attachment 277110 [details] [Patch] Proposed Fix Clearing flags on attachment: 277110 Committed r199947: <http://trac.webkit.org/changeset/199947>
WebKit Commit Bot
Comment 10 2016-04-22 19:49:25 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.