| Summary: | Web Inspector: Rendering Frames timeline pie chart should use SVG instead of 2D canvas | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Baker <mattbaker> | ||||||||||||||
| Component: | Web Inspector | Assignee: | Matt Baker <mattbaker> | ||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||
| Severity: | Normal | CC: | bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||
| Hardware: | All | ||||||||||||||||
| OS: | All | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Matt Baker
2015-08-25 18:19:43 PDT
Created attachment 259909 [details]
[Image] Updated UI using SVG
Created attachment 259922 [details]
[Patch] WIP
Created attachment 259923 [details]
[Patch] WIP
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.
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. 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. Created attachment 260001 [details]
[Patch] Proposed Fix
Created attachment 260004 [details]
[Image] UI - Empty and populated charts
Comment on attachment 260001 [details] [Patch] Proposed Fix Clearing flags on attachment: 260001 Committed r189006: <http://trac.webkit.org/changeset/189006> All reviewed patches have been landed. Closing bug. 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() Reopening to attach new patch. Created attachment 260179 [details]
[Patch] WIP
Just need to write a test
(In reply to comment #14) > Created attachment 260179 [details] > [Patch] WIP > > Just need to write a test Attached to wrong bug. Ignore. |