Changeset 114368 in webkit


Ignore:
Timestamp:
Apr 17, 2012, 6:03:55 AM (13 years ago)
Author:
pfeldman@chromium.org
Message:

Web Inspector: [regression r112413]content scripts tree outline is not added to the tab.
https://bugs.webkit.org/show_bug.cgi?id=84146

Reviewed by Vsevolod Vlasov.

Adding the tree to the container.

  • inspector/front-end/ScriptsNavigator.js:

(WebInspector.ScriptsNavigator):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r114367 r114368  
     12012-04-17  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Web Inspector: [regression r112413]content scripts tree outline is not added to the tab.
     4        https://bugs.webkit.org/show_bug.cgi?id=84146
     5
     6        Reviewed by Vsevolod Vlasov.
     7
     8        Adding the tree to the container.
     9
     10        * inspector/front-end/ScriptsNavigator.js:
     11        (WebInspector.ScriptsNavigator):
     12
    1132012-04-17  Mariusz Grzegorczyk  <mariusz.g@samsung.com>
    214
  • trunk/Source/WebCore/inspector/front-end/ScriptsNavigator.js

    r113563 r114368  
    4848
    4949    var scriptsTreeElement = document.createElement("ol");
    50     var scriptsView = new WebInspector.View();
    51     scriptsView.element.addStyleClass("fill");
    52     scriptsView.element.addStyleClass("navigator-container");
     50    this._scriptsTree = new WebInspector.NavigatorTreeOutline(this, scriptsTreeElement);
     51
    5352    var scriptsOutlineElement = document.createElement("div");
    5453    scriptsOutlineElement.addStyleClass("outline-disclosure");
    5554    scriptsOutlineElement.addStyleClass("navigator");
    5655    scriptsOutlineElement.appendChild(scriptsTreeElement);
     56
     57    var scriptsView = new WebInspector.View();
     58    scriptsView.element.addStyleClass("fill");
     59    scriptsView.element.addStyleClass("navigator-container");
    5760    scriptsView.element.appendChild(scriptsOutlineElement);
    58     this._scriptsTree = new WebInspector.NavigatorTreeOutline(this, scriptsTreeElement);
     61
    5962    this._tabbedPane.appendTab(WebInspector.ScriptsNavigator.ScriptsTab, WebInspector.UIString("Scripts"), scriptsView);
    6063    this._tabbedPane.selectTab(WebInspector.ScriptsNavigator.ScriptsTab);
    6164
    6265    var contentScriptsTreeElement = document.createElement("ol");
    63     var contentScriptsView = new WebInspector.View();
    64     contentScriptsView.element.addStyleClass("fill");
    65     contentScriptsView.element.addStyleClass("navigator-container");
     66    this._contentScriptsTree = new WebInspector.NavigatorTreeOutline(this, contentScriptsTreeElement);
     67
    6668    var contentScriptsOutlineElement = document.createElement("div");
    6769    contentScriptsOutlineElement.addStyleClass("outline-disclosure");
    6870    contentScriptsOutlineElement.addStyleClass("navigator");
    6971    contentScriptsOutlineElement.appendChild(contentScriptsTreeElement);
    70     this._contentScriptsTree = new WebInspector.NavigatorTreeOutline(this, contentScriptsTreeElement);
     72
     73    var contentScriptsView = new WebInspector.View();
     74    contentScriptsView.element.addStyleClass("fill");
     75    contentScriptsView.element.addStyleClass("navigator-container");
     76    contentScriptsView.element.appendChild(contentScriptsOutlineElement);
     77
    7178    this._tabbedPane.appendTab(WebInspector.ScriptsNavigator.ContentScriptsTab, WebInspector.UIString("Content scripts"), contentScriptsView);
    7279
     
    473480        if ((domain === "" && folderName === "") || !showScriptFolders)
    474481            return isContentScript ? this._contentScriptsTree : this._scriptsTree;
    475        
     482
    476483        var parentFolderElement;
    477484        if (folderName === "")
Note: See TracChangeset for help on using the changeset viewer.