WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 195085
Web Inspector: CPU Usage Timeline - Make Threads section expandable / collapsable
https://bugs.webkit.org/show_bug.cgi?id=195085
Summary
Web Inspector: CPU Usage Timeline - Make Threads section expandable / collaps...
Joseph Pecoraro
Reported
2019-02-26 18:38:06 PST
CPU Usage Timeline - Make Threads section expandable / collapsable To make space for more stuff below it
Attachments
[PATCH] Proposed Fix
(9.56 KB, patch)
2019-02-26 18:44 PST
,
Joseph Pecoraro
joepeck
: commit-queue-
Details
Formatted Diff
Diff
[IMAGE] Expandable / Collapsable
(872.96 KB, image/png)
2019-02-26 18:46 PST
,
Joseph Pecoraro
no flags
Details
[PATCH] Proposed Fix
(10.77 KB, patch)
2019-02-27 23:28 PST
,
Joseph Pecoraro
mattbaker
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2019-02-26 18:44:57 PST
Created
attachment 363052
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 2
2019-02-26 18:46:41 PST
Created
attachment 363053
[details]
[IMAGE] Expandable / Collapsable
Joseph Pecoraro
Comment 3
2019-02-27 20:06:12 PST
Comment on
attachment 363052
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=363052&action=review
> Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js:534 > + this._detailsContainerElement.insertBefore(workerView.element, this._webkitThreadUsageView.element);
This insertBefore should be: `this._threadsDetailsElement` not `this._detailsContainerElement`. Rest of the patch should still be good to review.
Joseph Pecoraro
Comment 4
2019-02-27 23:28:08 PST
Created
attachment 363195
[details]
[PATCH] Proposed Fix
Matt Baker
Comment 5
2019-02-28 00:15:44 PST
Comment on
attachment 363195
[details]
[PATCH] Proposed Fix r=me, very nice! I ran into an assertion, but it looks like it will be fixed by <
https://webkit.org/b/195146
>.
Devin Rousso
Comment 6
2019-02-28 11:35:49 PST
Comment on
attachment 363195
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=363195&action=review
> Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.css:66 > +.timeline-view.cpu > .content > .details > .subtitle, > +.timeline-view.cpu > .content > .details > details > .subtitle {
Rather than have two `.details` in a row, could we simplify this as `.timeline-view.cpu > .content > .details .subtitle`? If not, I think the second `.details` should actually be a tag selector `details` (no class ".").
> Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.css:71 > +.timeline-view.cpu > .content > .details > details > .subtitle.threads {
Ditto (>65).
> Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js:212 > + this._threadsDetailsElement.addEventListener("toggle", () => {
NIT: I normally still put the `event` in the parameters even if it's not used to help signify that this function is expected to be used as an event handler.
Matt Baker
Comment 7
2019-02-28 12:14:43 PST
Comment on
attachment 363195
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=363195&action=review
>> Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js:212 >> + this._threadsDetailsElement.addEventListener("toggle", () => { > > NIT: I normally still put the `event` in the parameters even if it's not used to help signify that this function is expected to be used as an event handler.
I like this convention. Same with the first parameter of delegate methods.
Joseph Pecoraro
Comment 8
2019-02-28 16:22:23 PST
(In reply to Devin Rousso from
comment #6
)
> Comment on
attachment 363195
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=363195&action=review
> > > Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.css:66 > > +.timeline-view.cpu > .content > .details > .subtitle, > > +.timeline-view.cpu > .content > .details > details > .subtitle { > > Rather than have two `.details` in a row, could we simplify this as > `.timeline-view.cpu > .content > .details .subtitle`? > > If not, I think the second `.details` should actually be a tag selector > `details` (no class ".").
Since subtitle is so commonly used, I want to make sure it is the direct child of these two cases.
Joseph Pecoraro
Comment 9
2019-02-28 16:48:49 PST
https://trac.webkit.org/r242242
Radar WebKit Bug Importer
Comment 10
2019-02-28 16:49:36 PST
<
rdar://problem/48494376
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug