Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 600cfea07b287a49b35bc6ed568c6683a1699a73
https://github.com/WebKit/WebKit/commit/600cfea07b287a49b35bc6ed568c6683a1699a73
Author: j0pan <[email protected]>
Date: 2025-12-17 (Wed, 17 Dec 2025)
Changed paths:
M Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
M Source/WebInspectorUI/UserInterface/Base/Setting.js
M Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsPanel.js
M Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js
M
Source/WebInspectorUI/UserInterface/Views/SpreadsheetRulesStyleDetailsPanel.js
M Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js
Log Message:
-----------
Web Inspector: Add a toggle to hide UA stylesheet rules in Elements tab
https://bugs.webkit.org/show_bug.cgi?id=302161
rdar://164265183
Reviewed by NOBODY.
This change adds a setting in the Setting > Elements tab to control whether
User Agent styles are displayed.
When disabled, User Agent rules are filtered out at section creation time in
the Elements > Styles panel.
Under the computed Panel the "go-to" arrows situated beside each style property
are also hidden if
the style property points to a User Agent Style and the "show user agent
styles" settings is disabled.
No new tests.
* Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js:
* Source/WebInspectorUI/UserInterface/Base/Setting.js:
* Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsPanel.js:
(WI.ComputedStyleDetailsPanel.prototype.initialLayout):
(WI.ComputedStyleDetailsPanel.prototype._handleShowUserAgentStylesChanged):
* Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js:
(WI.SettingsTabContentView.prototype._createElementsSettingsView):
*
Source/WebInspectorUI/UserInterface/Views/SpreadsheetRulesStyleDetailsPanel.js:
(WI.SpreadsheetRulesStyleDetailsPanel):
(WI.SpreadsheetRulesStyleDetailsPanel.prototype.layout):
(WI.SpreadsheetRulesStyleDetailsPanel.prototype._shouldIncludeStyle):
(WI.SpreadsheetRulesStyleDetailsPanel.prototype._handleShowUserAgentStylesChanged):
* Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js:
(WI.SpreadsheetStyleProperty.prototype.update):
Canonical link: https://commits.webkit.org/304627@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications