Changeset 275545 in webkit


Ignore:
Timestamp:
Apr 6, 2021 1:26:30 PM (16 months ago)
Author:
BJ Burg
Message:

Web Inspector: remove duplicate Box Model section from Layout panel in Elements Tab
https://bugs.webkit.org/show_bug.cgi?id=224206
<rdar://problem/76235731>

Reviewed by Devin Rousso.

For now, remove it from Layout panel. It may go back there
when it is able to show used values. It currently only shows computed.

  • UserInterface/Views/LayoutDetailsSidebarPanel.js:

(WI.LayoutDetailsSidebarPanel.prototype.initialLayout):
(WI.LayoutDetailsSidebarPanel.prototype.layout):
(WI.LayoutDetailsSidebarPanel.prototype.get minimumWidth): Deleted.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r275493 r275545  
     12021-04-06  BJ Burg  <bburg@apple.com>
     2
     3        Web Inspector: remove duplicate Box Model section from Layout panel in Elements Tab
     4        https://bugs.webkit.org/show_bug.cgi?id=224206
     5        <rdar://problem/76235731>
     6
     7        Reviewed by Devin Rousso.
     8
     9        For now, remove it from Layout panel. It may go back there
     10        when it is able to show used values. It currently only shows computed.
     11
     12        * UserInterface/Views/LayoutDetailsSidebarPanel.js:
     13        (WI.LayoutDetailsSidebarPanel.prototype.initialLayout):
     14        (WI.LayoutDetailsSidebarPanel.prototype.layout):
     15        (WI.LayoutDetailsSidebarPanel.prototype.get minimumWidth): Deleted.
     16
    1172021-04-06  Razvan Caliman  <rcaliman@apple.com>
    218
  • trunk/Source/WebInspectorUI/UserInterface/Views/LayoutDetailsSidebarPanel.js

    r272934 r275545  
    3636
    3737    // Public
    38 
    39     get minimumWidth()
    40     {
    41         return this._boxModelDiagramRow?.minimumWidth ?? 0;
    42     }
    4338
    4439    inspect(objects)
     
    10398    initialLayout()
    10499    {
    105         this._boxModelDiagramRow = new WI.BoxModelDetailsSectionRow;
    106         let boxModelGroup = new WI.DetailsSectionGroup([this._boxModelDiagramRow]);
    107         let boxModelSection = new WI.DetailsSection("layout-box-model", WI.UIString("Box Model"), [boxModelGroup]);
    108         this.contentView.element.appendChild(boxModelSection.element);
    109 
    110100        this._gridDetailsSectionRow = new WI.DetailsSectionRow(WI.UIString("No CSS Grid Contexts", "No CSS Grid Contexts @ Layout Details Sidebar Panel", "Message shown when there are no CSS Grid contexts on the inspected page."));
    111101        let gridGroup = new WI.DetailsSectionGroup([this._gridDetailsSectionRow]);
     
    135125            this._gridSection.gridNodeSet = this._gridNodeSet;
    136126        }
    137 
    138         if (this._boxModelDiagramRow.nodeStyles !== this._nodeStyles)
    139             this._boxModelDiagramRow.nodeStyles = this._nodeStyles;
    140127    }
    141128
Note: See TracChangeset for help on using the changeset viewer.