Bug 152996 - Web Inspector: Move helper methods for getting icons/text to TimelineTabContentView
Summary: Web Inspector: Move helper methods for getting icons/text to TimelineTabConte...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Matt Baker
URL:
Keywords: DoNotImportToRadar
Depends on:
Blocks:
 
Reported: 2016-01-11 16:28 PST by Matt Baker
Modified: 2016-01-12 16:04 PST (History)
8 users (show)

See Also:


Attachments
[Patch] Proposed Fix (19.99 KB, patch)
2016-01-11 16:37 PST, Matt Baker
no flags Details | Formatted Diff | Diff
[Patch] Proposed Fix (20.12 KB, patch)
2016-01-12 15:11 PST, Matt Baker
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Baker 2016-01-11 16:28:49 PST
* SUMMARY
Move helper methods for getting icons/text to TimelineTabContentView. Static methods in TimelineSidebarPanel can simply be moved. Code for getting icons and titles for timeline records should be broken out of TimelineRecordTreeElement, and made into helper methods.

Refactoring this will simplify removing the Timelines navigation sidebar in the near future.
Comment 1 Matt Baker 2016-01-11 16:37:27 PST
Created attachment 268726 [details]
[Patch] Proposed Fix
Comment 2 BJ Burg 2016-01-12 11:03:54 PST
Comment on attachment 268726 [details]
[Patch] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=268726&action=review

r=me

> Source/WebInspectorUI/UserInterface/Views/TimelineRecordTreeElement.js:35
> +        if (includeDetailsInMainTitle && timelineRecord.type === WebInspector.TimelineRecord.Type.Script && timelineRecord.eventType === WebInspector.ScriptTimelineRecord.EventType.TimerInstalled) {

This change isn't described in the changelog. It seems to be extracted from...

> Source/WebInspectorUI/UserInterface/Views/TimelineRecordTreeElement.js:-100
> -                    let timeoutString =  Number.secondsToString(timelineRecord.details.timeout / 1000);

.. here
Comment 3 Matt Baker 2016-01-12 15:11:23 PST
Created attachment 268816 [details]
[Patch] Proposed Fix
Comment 4 WebKit Commit Bot 2016-01-12 16:04:40 PST
Comment on attachment 268816 [details]
[Patch] Proposed Fix

Clearing flags on attachment: 268816

Committed r194932: <http://trac.webkit.org/changeset/194932>
Comment 5 WebKit Commit Bot 2016-01-12 16:04:42 PST
All reviewed patches have been landed.  Closing bug.