RESOLVED FIXED 148457
Web Inspector: Rendering Frames timeline pie chart should use SVG instead of 2D canvas
https://bugs.webkit.org/show_bug.cgi?id=148457
Summary Web Inspector: Rendering Frames timeline pie chart should use SVG instead of ...
Matt Baker
Reported 2015-08-25 18:19:43 PDT
* SUMMARY Rendering Frames timeline pie chart should use SVG instead of 2D canvas.
Attachments
[Image] Updated UI using SVG (251.38 KB, image/png)
2015-08-25 18:20 PDT, Matt Baker
no flags
[Patch] WIP (8.44 KB, patch)
2015-08-25 22:03 PDT, Matt Baker
no flags
[Patch] WIP (8.61 KB, patch)
2015-08-25 22:05 PDT, Matt Baker
no flags
[Patch] Proposed Fix (14.62 KB, patch)
2015-08-26 17:15 PDT, Matt Baker
no flags
[Image] UI - Empty and populated charts (55.54 KB, image/png)
2015-08-26 17:23 PDT, Matt Baker
no flags
[Patch] WIP (22.87 KB, patch)
2015-08-28 14:39 PDT, Matt Baker
mattbaker: commit-queue-
Radar WebKit Bug Importer
Comment 1 2015-08-25 18:20:02 PDT
Matt Baker
Comment 2 2015-08-25 18:20:23 PDT
Created attachment 259909 [details] [Image] Updated UI using SVG
Matt Baker
Comment 3 2015-08-25 22:03:08 PDT
Created attachment 259922 [details] [Patch] WIP
Matt Baker
Comment 4 2015-08-25 22:05:50 PDT
Created attachment 259923 [details] [Patch] WIP
Timothy Hatcher
Comment 5 2015-08-26 02:44:23 PDT
Comment on attachment 259923 [details] [Patch] WIP I'd be curious if reusing the path elements and just updating "d" when nothing else needs to change would be even better.
Timothy Hatcher
Comment 6 2015-08-26 02:46:29 PDT
Comment on attachment 259923 [details] [Patch] WIP View in context: https://bugs.webkit.org/attachment.cgi?id=259923&action=review > Source/WebInspectorUI/UserInterface/Views/ChartDetailsSectionRow.js:348 > + let path = createSVGElement("path"); These could get class names and have the stroke, stroke-width and even color be set via a style sheet now.
Matt Baker
Comment 7 2015-08-26 13:07:01 PDT
Comment on attachment 259923 [details] [Patch] WIP View in context: https://bugs.webkit.org/attachment.cgi?id=259923&action=review >> Source/WebInspectorUI/UserInterface/Views/ChartDetailsSectionRow.js:348 >> + let path = createSVGElement("path"); > > These could get class names and have the stroke, stroke-width and even color be set via a style sheet now. Nice idea! We can definitely set all the stroke properties in CSS, since stroke color isn't based on the item color.
Matt Baker
Comment 8 2015-08-26 17:15:58 PDT
Created attachment 260001 [details] [Patch] Proposed Fix
Matt Baker
Comment 9 2015-08-26 17:23:18 PDT
Created attachment 260004 [details] [Image] UI - Empty and populated charts
WebKit Commit Bot
Comment 10 2015-08-26 18:10:01 PDT
Comment on attachment 260001 [details] [Patch] Proposed Fix Clearing flags on attachment: 260001 Committed r189006: <http://trac.webkit.org/changeset/189006>
WebKit Commit Bot
Comment 11 2015-08-26 18:10:05 PDT
All reviewed patches have been landed. Closing bug.
Blaze Burg
Comment 12 2015-08-27 08:19:26 PDT
Comment on attachment 260001 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=260001&action=review > Source/WebInspectorUI/UserInterface/Views/ChartDetailsSectionRow.css:50 > + stroke: rgba(255, 255, 255, 0.7); I think we are preferring hsla()
Matt Baker
Comment 13 2015-08-28 14:39:16 PDT
Reopening to attach new patch.
Matt Baker
Comment 14 2015-08-28 14:39:19 PDT
Created attachment 260179 [details] [Patch] WIP Just need to write a test
Matt Baker
Comment 15 2015-08-28 14:40:03 PDT
(In reply to comment #14) > Created attachment 260179 [details] > [Patch] WIP > > Just need to write a test Attached to wrong bug. Ignore.
Note You need to log in before you can comment on or make changes to this bug.