RESOLVED FIXED 198299
Web Inspector: Timelines: spacing around pie chart is different between CPU and Memory
https://bugs.webkit.org/show_bug.cgi?id=198299
Summary Web Inspector: Timelines: spacing around pie chart is different between CPU a...
Devin Rousso
Reported 2019-05-28 10:04:36 PDT
See atta
Attachments
[Image] Screenshot of Issue (CPU) (813.09 KB, image/png)
2019-05-28 10:05 PDT, Devin Rousso
no flags
[Image] Screenshot of Issue (Memory) (801.53 KB, image/png)
2019-05-28 10:05 PDT, Devin Rousso
no flags
Patch (10.51 KB, patch)
2019-05-28 10:41 PDT, Devin Rousso
no flags
Patch (10.46 KB, patch)
2019-05-28 16:33 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-05-28 10:05:15 PDT
Created attachment 370755 [details] [Image] Screenshot of Issue (CPU)
Devin Rousso
Comment 2 2019-05-28 10:05:37 PDT
Created attachment 370756 [details] [Image] Screenshot of Issue (Memory)
Devin Rousso
Comment 3 2019-05-28 10:41:24 PDT
Matt Baker
Comment 4 2019-05-28 16:03:49 PDT
Comment on attachment 370764 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=370764&action=review r=me with nits > Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.css:97 > + Unnecessary churn. Was this moved on purpose? > Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js:57 > + case CPUTimelineView.SampleType.JavaScript: Missing namespace prefix `WI`. > Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js:214 > + this._breakdownLegendScriptElement = appendLegendRow(this._breakdownLegendElement, CPUTimelineView.SampleType.JavaScript); Missing namespace prefix `WI`. > Source/WebInspectorUI/UserInterface/Views/MemoryTimelineView.css:67 > + border-bottom: 1px solid var(--border-color); More churn.
Devin Rousso
Comment 5 2019-05-28 16:14:05 PDT
Comment on attachment 370764 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=370764&action=review >> Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.css:97 >> + > > Unnecessary churn. Was this moved on purpose? I mention the reason for this in the ChangeLog. Although it's "unnecessary", I found it to be an annoyance when first investigating this issue as I had to search around through the file to find the right rule, as it wasn't where I'd expected it to be. >> Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js:57 >> + case CPUTimelineView.SampleType.JavaScript: > > Missing namespace prefix `WI`. Joe and I have started doing this, but we each have different reasons for it. Either way, the `WI` is not necessary in these cases since they're used within the class object, and the "enum" is defined on that same class object. Joe's reason is to provide "testing" for this "somewhat obscure" part of JSC. My reason is that if we ever decide to move to using modules, this would reduce code churn, as we'd likely drop (or change) the `WI` namespace, as it's probably not as useful with modules.
WebKit Commit Bot
Comment 6 2019-05-28 16:15:02 PDT Comment hidden (obsolete)
Devin Rousso
Comment 7 2019-05-28 16:33:52 PDT
Matt Baker
Comment 8 2019-05-28 17:09:27 PDT
Comment on attachment 370764 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=370764&action=review >>> Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js:57 >>> + case CPUTimelineView.SampleType.JavaScript: >> >> Missing namespace prefix `WI`. > > Joe and I have started doing this, but we each have different reasons for it. Either way, the `WI` is not necessary in these cases since they're used within the class object, and the "enum" is defined on that same class object. > > Joe's reason is to provide "testing" for this "somewhat obscure" part of JSC. > > My reason is that if we ever decide to move to using modules, this would reduce code churn, as we'd likely drop (or change) the `WI` namespace, as it's probably not as useful with modules. Cool, both are good reasons.
WebKit Commit Bot
Comment 9 2019-05-28 17:14:41 PDT
Comment on attachment 370803 [details] Patch Clearing flags on attachment: 370803 Committed r245833: <https://trac.webkit.org/changeset/245833>
WebKit Commit Bot
Comment 10 2019-05-28 17:14:42 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11 2019-05-28 17:15:35 PDT
Note You need to log in before you can comment on or make changes to this bug.