Bug 182667 - Web Inspector: Canvas tab: tree selection abruptly changes when selecting a recording frame
Summary: Web Inspector: Canvas tab: tree selection abruptly changes when selecting a r...
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: InRadar
Depends on:
Blocks: WebInspectorCanvasTab 183015
  Show dependency treegraph
 
Reported: 2018-02-09 17:50 PST by Matt Baker
Modified: 2018-02-21 13:24 PST (History)
4 users (show)

See Also:


Attachments
Patch (11.73 KB, patch)
2018-02-09 18:14 PST, Matt Baker
no flags Details | Formatted Diff | Diff
Patch (12.07 KB, patch)
2018-02-09 18:34 PST, Matt Baker
no flags Details | Formatted Diff | Diff
Patch for landing (11.93 KB, patch)
2018-02-09 21:32 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 2018-02-09 17:50:35 PST
Summary:
Tree selection abruptly changes when selecting a recording frame.

Steps to Reproduce:
1. Goto https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_animations
2. Record any canvas
3. In the sidebar, select 'Frame 1'
  => Tree selection jumps to the last action in the frame
Comment 1 Radar WebKit Bug Importer 2018-02-09 17:51:06 PST
<rdar://problem/37412639>
Comment 2 Matt Baker 2018-02-09 18:14:44 PST
Created attachment 333545 [details]
Patch
Comment 3 Matt Baker 2018-02-09 18:34:07 PST
Created attachment 333548 [details]
Patch
Comment 4 Devin Rousso 2018-02-09 19:10:26 PST
Comment on attachment 333548 [details]
Patch

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

r=me.  This feels much more smooth.  I still think that we shouldn't auto-select a recording when viewing a Canvas, but we can discuss that before doing anything.

> Source/WebInspectorUI/UserInterface/Views/CanvasSidebarPanel.css:71
> +.sidebar > .panel.navigation.canvas > .content > .recording-content > .tree-outline .item.folder-icon > .status {
> +    line-height: 16px;
> +}

This rule already exists below.

> Source/WebInspectorUI/UserInterface/Views/TreeOutline.css:247
> +.tree-outline:not(.large):matches(:focus, .force-focus) .item.selected .status .indeterminate-progress-spinner {
> +    filter: invert();
> +}

Nice!
Comment 5 Matt Baker 2018-02-09 21:32:57 PST
Created attachment 333552 [details]
Patch for landing
Comment 6 WebKit Commit Bot 2018-02-09 22:15:51 PST
Comment on attachment 333552 [details]
Patch for landing

Clearing flags on attachment: 333552

Committed r228362: <https://trac.webkit.org/changeset/228362>
Comment 7 WebKit Commit Bot 2018-02-09 22:15:52 PST
All reviewed patches have been landed.  Closing bug.