Changeset 141409 in webkit


Ignore:
Timestamp:
Jan 31, 2013 5:42:42 AM (11 years ago)
Author:
aandrey@chromium.org
Message:

Web Inspector: [Profiles] show launcher view upon deleting last profile type's header
https://bugs.webkit.org/show_bug.cgi?id=108468

Reviewed by Pavel Feldman.

We should show launcher view and hide profile type sidebar section upon deleting last profile type's header from the sidebar.
Right now we only show launcher view upon deleting the last profile header (of any profile type).

  • inspector/front-end/ProfilesPanel.js:

(WebInspector.ProfilesPanel.prototype._removeProfileHeader):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r141406 r141409  
     12013-01-31  Andrey Adaikin  <aandrey@chromium.org>
     2
     3        Web Inspector: [Profiles] show launcher view upon deleting last profile type's header
     4        https://bugs.webkit.org/show_bug.cgi?id=108468
     5
     6        Reviewed by Pavel Feldman.
     7
     8        We should show launcher view and hide profile type sidebar section upon deleting last profile type's header from the sidebar.
     9        Right now we only show launcher view upon deleting the last profile header (of any profile type).
     10
     11        * inspector/front-end/ProfilesPanel.js:
     12        (WebInspector.ProfilesPanel.prototype._removeProfileHeader):
     13
    1142013-01-31  Eugene Klyuchnikov  <eustas@chromium.org>
    215
  • trunk/Source/WebCore/inspector/front-end/ProfilesPanel.js

    r141388 r141409  
    610610        // No other item will be selected if there aren't any other profiles, so
    611611        // make sure that view gets cleared when the last profile is removed.
    612         if (!this._profiles.length)
    613             this.closeVisibleView();
     612        if (!sidebarParent.children.length) {
     613            this.profilesItemTreeElement.select();
     614            this._showLauncherView();
     615            sidebarParent.hidden = true;
     616        }
    614617    },
    615618
Note: See TracChangeset for help on using the changeset viewer.