Title: [275545] trunk/Source/WebInspectorUI
- Revision
- 275545
- Author
- [email protected]
- Date
- 2021-04-06 13:26:30 -0700 (Tue, 06 Apr 2021)
Log 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.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (275544 => 275545)
--- trunk/Source/WebInspectorUI/ChangeLog 2021-04-06 20:20:41 UTC (rev 275544)
+++ trunk/Source/WebInspectorUI/ChangeLog 2021-04-06 20:26:30 UTC (rev 275545)
@@ -1,3 +1,19 @@
+2021-04-06 BJ Burg <[email protected]>
+
+ 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.
+
2021-04-06 Razvan Caliman <[email protected]>
Web Inspector: Layout sidebar grid overlay color swatch tooltip shouldn't include "switch format" hint
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LayoutDetailsSidebarPanel.js (275544 => 275545)
--- trunk/Source/WebInspectorUI/UserInterface/Views/LayoutDetailsSidebarPanel.js 2021-04-06 20:20:41 UTC (rev 275544)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LayoutDetailsSidebarPanel.js 2021-04-06 20:26:30 UTC (rev 275545)
@@ -36,11 +36,6 @@
// Public
- get minimumWidth()
- {
- return this._boxModelDiagramRow?.minimumWidth ?? 0;
- }
-
inspect(objects)
{
// Layout panel doesn't show when hasDOMNode is false.
@@ -102,11 +97,6 @@
initialLayout()
{
- this._boxModelDiagramRow = new WI.BoxModelDetailsSectionRow;
- let boxModelGroup = new WI.DetailsSectionGroup([this._boxModelDiagramRow]);
- let boxModelSection = new WI.DetailsSection("layout-box-model", WI.UIString("Box Model"), [boxModelGroup]);
- this.contentView.element.appendChild(boxModelSection.element);
-
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."));
let gridGroup = new WI.DetailsSectionGroup([this._gridDetailsSectionRow]);
let gridDetailsSection = new WI.DetailsSection("layout-css-grid", WI.UIString("Grid", "Grid @ Elements details sidebar", "CSS Grid layout section name"), [gridGroup]);
@@ -134,9 +124,6 @@
this._gridSection.gridNodeSet = this._gridNodeSet;
}
-
- if (this._boxModelDiagramRow.nodeStyles !== this._nodeStyles)
- this._boxModelDiagramRow.nodeStyles = this._nodeStyles;
}
// Private
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes