Changeset 92213 in webkit


Ignore:
Timestamp:
Aug 2, 2011 11:41:36 AM (13 years ago)
Author:
vsevik@chromium.org
Message:

Web Inspector: Remove initator column for JSC, fix network resource initiator tests.
https://bugs.webkit.org/show_bug.cgi?id=65534

Reviewed by Pavel Feldman.

Source/WebCore:

  • inspector/front-end/NetworkPanel.js:

(WebInspector.NetworkLogView.prototype._createTable):
(WebInspector.NetworkLogView.prototype.switchToDetailedView):
(WebInspector.NetworkLogView.prototype.switchToBriefView):
(WebInspector.NetworkLogView.prototype._toggleGridMode):
(WebInspector.NetworkLogView.prototype._toggleViewingResourceMode):
(WebInspector.NetworkDataGridNode.prototype.createCells):
(WebInspector.NetworkDataGridNode.prototype.refreshResource):

  • inspector/front-end/Settings.js:

Source/WebKit/chromium:

  • src/js/DevTools.js:

():

LayoutTests:

  • http/tests/inspector/network/network-initiator-expected.txt:
  • http/tests/inspector/network/network-initiator.html:
  • platform/chromium/http/tests/inspector/network/network-initiator-expected.txt: Copied from LayoutTests/http/tests/inspector/network/network-initiator-expected.txt.
Location:
trunk
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r92211 r92213  
     12011-08-02  Vsevolod Vlasov  <vsevik@chromium.org>
     2
     3        Web Inspector: Remove initator column for JSC, fix network resource initiator tests.
     4        https://bugs.webkit.org/show_bug.cgi?id=65534
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * http/tests/inspector/network/network-initiator-expected.txt:
     9        * http/tests/inspector/network/network-initiator.html:
     10        * platform/chromium/http/tests/inspector/network/network-initiator-expected.txt: Copied from LayoutTests/http/tests/inspector/network/network-initiator-expected.txt.
     11
    1122011-08-02  Zhenyao Mo  <zmo@google.com>
    213
  • trunk/LayoutTests/http/tests/inspector/network/network-initiator-expected.txt

    r91928 r92213  
    1212http://127.0.0.1:8000/inspector/network/resources/resource.php?type=image&random=1&size=200: parser
    1313    http://127.0.0.1:8000/inspector/network/network-initiator.html 100
    14 http://127.0.0.1:8000/inspector/network/resources/resource.php?type=image&random=1&size=300: script
    15     http://127.0.0.1:8000/inspector/network/network-initiator.html 17
    16 http://127.0.0.1:8000/inspector/network/resources/resource.php?type=image&random=1&size=400: script
    17     http://127.0.0.1:8000/inspector/network/network-initiator.html 29
     14http://127.0.0.1:8000/inspector/network/resources/resource.php?type=image&random=1&size=300: other
     15http://127.0.0.1:8000/inspector/network/resources/resource.php?type=image&random=1&size=400: other
    1816
  • trunk/LayoutTests/http/tests/inspector/network/network-initiator.html

    r91928 r92213  
    1010    // We need to setTimeout, to make sure that style recalculation scheduling
    1111    // is really triggered by adding a class to the div.
    12     window.setTimeout(addClassToDivStep2.bind(this), 0);
     12    window.setTimeout(addClassToDivStep2, 0);
    1313}
    1414
  • trunk/Source/WebCore/ChangeLog

    r92212 r92213  
     12011-08-02  Vsevolod Vlasov  <vsevik@chromium.org>
     2
     3        Web Inspector: Remove initator column for JSC, fix network resource initiator tests.
     4        https://bugs.webkit.org/show_bug.cgi?id=65534
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/front-end/NetworkPanel.js:
     9        (WebInspector.NetworkLogView.prototype._createTable):
     10        (WebInspector.NetworkLogView.prototype.switchToDetailedView):
     11        (WebInspector.NetworkLogView.prototype.switchToBriefView):
     12        (WebInspector.NetworkLogView.prototype._toggleGridMode):
     13        (WebInspector.NetworkLogView.prototype._toggleViewingResourceMode):
     14        (WebInspector.NetworkDataGridNode.prototype.createCells):
     15        (WebInspector.NetworkDataGridNode.prototype.refreshResource):
     16        * inspector/front-end/Settings.js:
     17
    1182011-08-02  Vsevolod Vlasov  <vsevik@chromium.org>
    219
  • trunk/Source/WebCore/inspector/front-end/NetworkPanel.js

    r92194 r92213  
    144144    _createTable: function()
    145145    {
    146         var columns = {name: {}, method: {}, status: {}, type: {}, initiator: {}, size: {}, time: {}, timeline: {}};
     146        var columns;
     147        if (Preferences.showNetworkPanelInitiatorColumn)
     148            columns = {name: {}, method: {}, status: {}, type: {}, initiator: {}, size: {}, time: {}, timeline: {}};
     149        else
     150            columns = {name: {}, method: {}, status: {}, type: {}, size: {}, time: {}, timeline: {}};
    147151        columns.name.titleDOMFragment = this._makeHeaderFragment(WebInspector.UIString("Name"), WebInspector.UIString("Path"));
    148152        columns.name.sortable = true;
     
    162166        columns.type.width = "6%";
    163167
    164         columns.initiator.title = WebInspector.UIString("Initiator");
    165         columns.initiator.sortable = true;
    166         columns.initiator.width = "10%";
     168        if (Preferences.showNetworkPanelInitiatorColumn) {
     169            columns.initiator.title = WebInspector.UIString("Initiator");
     170            columns.initiator.sortable = true;
     171            columns.initiator.width = "10%";
     172        }
    167173
    168174        columns.size.titleDOMFragment = this._makeHeaderFragment(WebInspector.UIString("Size"), WebInspector.UIString("Content"));
     
    178184        columns.timeline.title = "";
    179185        columns.timeline.sortable = false;
    180         columns.timeline.width = "40%";
     186        if (Preferences.showNetworkPanelInitiatorColumn)
     187            columns.timeline.width = "40%";
     188        else
     189            columns.timeline.width = "50%";
    181190        columns.timeline.sort = "ascending";
    182191
     
    806815        this._dataGrid.showColumn("status");
    807816        this._dataGrid.showColumn("type");
    808         this._dataGrid.showColumn("initiator");
     817        if (Preferences.showNetworkPanelInitiatorColumn)
     818            this._dataGrid.showColumn("initiator");
    809819        this._dataGrid.showColumn("size");
    810820        this._dataGrid.showColumn("time");
     
    816826        widths.status = 6;
    817827        widths.type = 6;
    818         widths.initiator = 10;
     828        if (Preferences.showNetworkPanelInitiatorColumn)
     829            widths.initiator = 10;
    819830        widths.size = 6;
    820831        widths.time = 6;
    821         widths.timeline = 40;
     832        if (Preferences.showNetworkPanelInitiatorColumn)
     833            widths.timeline = 40;
     834        else
     835            widths.timeline = 50;
    822836
    823837        this._dataGrid.applyColumnWidthsMap(widths);
     
    831845        this._dataGrid.hideColumn("status");
    832846        this._dataGrid.hideColumn("type");
    833         this._dataGrid.hideColumn("initiator");
     847        if (Preferences.showNetworkPanelInitiatorColumn)
     848            this._dataGrid.hideColumn("initiator");
    834849        this._dataGrid.hideColumn("size");
    835850        this._dataGrid.hideColumn("time");
     
    900915        this._dataGrid.showColumn("status");
    901916        this._dataGrid.showColumn("type");
    902         this._dataGrid.showColumn("initiator");
     917        if (Preferences.showNetworkPanelInitiatorColumn)
     918            this._dataGrid.showColumn("initiator");
    903919        this._dataGrid.showColumn("size");
    904920        this._dataGrid.showColumn("time");
     
    909925        widths.status = 6;
    910926        widths.type = 6;
    911         widths.initiator = 10;
     927        if (Preferences.showNetworkPanelInitiatorColumn)
     928            widths.initiator = 10;
    912929        widths.size = 6;
    913930        widths.time = 6;
    914         widths.timeline = 40;
     931        if (Preferences.showNetworkPanelInitiatorColumn)
     932            widths.timeline = 40;
     933        else
     934            widths.timeline = 50;
    915935
    916936        this._dataGrid.showColumn("timeline");
     
    929949        this._dataGrid.hideColumn("status");
    930950        this._dataGrid.hideColumn("type");
    931         this._dataGrid.hideColumn("initiator");
     951        if (Preferences.showNetworkPanelInitiatorColumn)
     952            this._dataGrid.hideColumn("initiator");
    932953        this._dataGrid.hideColumn("size");
    933954        this._dataGrid.hideColumn("time");
     
    17361757        this._statusCell = this._createDivInTD("status");
    17371758        this._typeCell = this._createDivInTD("type");
    1738         this._initiatorCell = this._createDivInTD("initiator");
     1759        if (Preferences.showNetworkPanelInitiatorColumn)
     1760            this._initiatorCell = this._createDivInTD("initiator");
    17391761        this._sizeCell = this._createDivInTD("size");
    17401762        this._timeCell = this._createDivInTD("time");
     
    18291851        this._refreshStatusCell();
    18301852        this._refreshTypeCell();
    1831         this._refreshInitiatorCell();
     1853        if (Preferences.showNetworkPanelInitiatorColumn)
     1854            this._refreshInitiatorCell();
    18321855        this._refreshSizeCell();
    18331856        this._refreshTimeCell();
  • trunk/Source/WebCore/inspector/front-end/Settings.js

    r91408 r92213  
    5555    canInspectWorkers: false,
    5656    canClearCacheAndCookies: false,
    57     canDisableCache: false
     57    canDisableCache: false,
     58    showNetworkPanelInitiatorColumn: false
    5859}
    5960
  • trunk/Source/WebKit/chromium/ChangeLog

    r92206 r92213  
     12011-08-02  Vsevolod Vlasov  <vsevik@chromium.org>
     2
     3        Web Inspector: Remove initator column for JSC, fix network resource initiator tests.
     4        https://bugs.webkit.org/show_bug.cgi?id=65534
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * src/js/DevTools.js:
     9        ():
     10
    1112011-08-02  Nat Duca  <nduca@chromium.org>
    212
  • trunk/Source/WebKit/chromium/src/js/DevTools.js

    r91408 r92213  
    5656    Preferences.canClearCacheAndCookies = true;
    5757    Preferences.canDisableCache = true;
     58    Preferences.showNetworkPanelInitiatorColumn = true;
    5859})();
    5960
Note: See TracChangeset for help on using the changeset viewer.