Changeset 140814 in webkit


Ignore:
Timestamp:
Jan 25, 2013 4:57:55 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: [Network] Use DataGrid column alignment instead of custom styling.
https://bugs.webkit.org/show_bug.cgi?id=107935

Patch by Eugene Klyuchnikov <eustas@chromium.org> on 2013-01-25
Reviewed by Pavel Feldman.

On Network Panel column alignment is specified both in
column descriptors and in CSS stylesheet.

Only one alignment specifier should last.

  • inspector/front-end/DataGrid.js:

(WebInspector.DataGridNode.prototype.createTD): Extracted common code.
(WebInspector.DataGridNode.prototype.createCell): Use "createTD".

  • inspector/front-end/NetworkPanel.js:

(WebInspector.NetworkDataGridNode.prototype._createDivInTD): Ditto.

  • inspector/front-end/networkLogView.css: Remove exheberant rules.
  • inspector/front-end/networkPanel.css: Fix whitespaces.
Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140813 r140814  
     12013-01-25  Eugene Klyuchnikov  <eustas@chromium.org>
     2
     3        Web Inspector: [Network] Use DataGrid column alignment instead of custom styling.
     4        https://bugs.webkit.org/show_bug.cgi?id=107935
     5
     6        Reviewed by Pavel Feldman.
     7
     8        On Network Panel column alignment is specified both in
     9        column descriptors and in CSS stylesheet.
     10
     11        Only one alignment specifier should last.
     12
     13        * inspector/front-end/DataGrid.js:
     14        (WebInspector.DataGridNode.prototype.createTD): Extracted common code.
     15        (WebInspector.DataGridNode.prototype.createCell): Use "createTD".
     16        * inspector/front-end/NetworkPanel.js:
     17        (WebInspector.NetworkDataGridNode.prototype._createDivInTD): Ditto.
     18        * inspector/front-end/networkLogView.css: Remove exheberant rules.
     19        * inspector/front-end/networkPanel.css: Fix whitespaces.
     20
    1212013-01-25  Sergey Ryazanov  <serya@chromium.org>
    222
  • trunk/Source/WebCore/inspector/front-end/DataGrid.js

    r140335 r140814  
    12591259    },
    12601260
    1261     createCell: function(columnIdentifier)
     1261    /**
     1262     * @param {string} columnIdentifier
     1263     * @return {!Element}
     1264     */
     1265    createTD: function(columnIdentifier)
    12621266    {
    12631267        var cell = document.createElement("td");
     
    12681272        if (alignment)
    12691273            cell.addStyleClass(alignment);
     1274
     1275        return cell;
     1276    },
     1277
     1278    createCell: function(columnIdentifier)
     1279    {
     1280        var cell = this.createTD(columnIdentifier);
    12701281
    12711282        var data = this.data[columnIdentifier];
  • trunk/Source/WebCore/inspector/front-end/NetworkPanel.js

    r140391 r140814  
    20162016    _createDivInTD: function(columnIdentifier)
    20172017    {
    2018         var td = document.createElement("td");
    2019         td.className = columnIdentifier + "-column";
    2020         var div = document.createElement("div");
    2021         td.appendChild(div);
     2018        var td = this.createTD(columnIdentifier);
     2019        var div = td.createChild("div");
    20222020        this._element.appendChild(td);
    20232021        return div;
  • trunk/Source/WebCore/inspector/front-end/networkLogView.css

    r140003 r140814  
    8585#network-container:not(.brief-mode) .network-log-grid.data-grid td.name-column:hover {
    8686    text-decoration: underline;
    87 }
    88 
    89 .network-log-grid.data-grid td.size-column,
    90 .network-log-grid.data-grid td.time-column {
    91     text-align: right;
    9287}
    9388
  • trunk/Source/WebCore/inspector/front-end/networkPanel.css

    r139886 r140814  
    5050}
    5151
    52 #network-views.small #network-close-button  {
     52#network-views.small #network-close-button {
    5353    top: 4px;
    5454}
Note: See TracChangeset for help on using the changeset viewer.