Changeset 141563 in webkit


Ignore:
Timestamp:
Feb 1, 2013 2:07:25 AM (11 years ago)
Author:
vsevik@chromium.org
Message:

Web Inspector: Sources panel navigator reveal and expand fixes.
https://bugs.webkit.org/show_bug.cgi?id=108584

Reviewed by Pavel Feldman.

Navigator folders are not expanded by default anymore.
Made domain folder expanded for inspected page main frame domain.
UISourceCodes are now added to navigator before editor container
so that they could be revealed if editor container decides to show them.

  • inspector/front-end/NavigatorView.js:

(WebInspector.BaseNavigatorTreeElement.prototype.onattach):
(WebInspector.NavigatorFolderTreeElement.prototype.onattach):

  • inspector/front-end/ScriptsPanel.js:

(WebInspector.ScriptsPanel.prototype._addUISourceCode):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r141561 r141563  
     12013-02-01  Vsevolod Vlasov  <vsevik@chromium.org>
     2
     3        Web Inspector: Sources panel navigator reveal and expand fixes.
     4        https://bugs.webkit.org/show_bug.cgi?id=108584
     5
     6        Reviewed by Pavel Feldman.
     7
     8        Navigator folders are not expanded by default anymore.
     9        Made domain folder expanded for inspected page main frame domain.
     10        UISourceCodes are now added to navigator before editor container
     11        so that they could be revealed if editor container decides to show them.
     12
     13        * inspector/front-end/NavigatorView.js:
     14        (WebInspector.BaseNavigatorTreeElement.prototype.onattach):
     15        (WebInspector.NavigatorFolderTreeElement.prototype.onattach):
     16        * inspector/front-end/ScriptsPanel.js:
     17        (WebInspector.ScriptsPanel.prototype._addUISourceCode):
     18
    1192013-02-01  Andrey Adaikin  <aandrey@chromium.org>
    220
  • trunk/Source/WebCore/inspector/front-end/NavigatorView.js

    r141558 r141563  
    461461        this.titleElement.appendChild(this._titleTextNode);
    462462        this.listItemElement.appendChild(this.titleElement);
    463         this.expand();
    464463    },
    465464
     
    537536    {
    538537        WebInspector.BaseNavigatorTreeElement.prototype.onattach.call(this);
    539         if (this.isDomain && this.titleText != WebInspector.inspectedPageDomain)
     538        if (this.isDomain && this.titleText === WebInspector.inspectedPageDomain)
     539            this.expand();
     540        else
    540541            this.collapse();
    541         else
    542             this.expand();
    543542    },
    544543
  • trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js

    r141249 r141563  
    246246        if (uiSourceCode.project().isServiceProject())
    247247            return;
     248        this._navigator.addUISourceCode(uiSourceCode);
    248249        this._editorContainer.addUISourceCode(uiSourceCode);
    249         this._navigator.addUISourceCode(uiSourceCode);
    250250        // Replace debugger script-based uiSourceCode with a network-based one.
    251251        var currentUISourceCode = this._currentUISourceCode;
Note: See TracChangeset for help on using the changeset viewer.