commit dcd95a8a361720b8af02e30c6ff42eb1c410a6d3
parent 91056b20233aa6b30aa6c8f7bf356772f10146b3
Author: David Shin <dshin@mozilla.com>
Date: Fri, 12 Dec 2025 14:43:57 +0000
Bug 2005744: Add a comment for DevTools follow-up when adding to ToWebIDLSelectorWarningKind. r=firefox-style-system-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D276190
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/layout/style/CSSStyleRule.cpp b/layout/style/CSSStyleRule.cpp
@@ -358,6 +358,9 @@ Element* CSSStyleRule::GetScopeRootFor(uint32_t aSelectorIndex,
SelectorWarningKind ToWebIDLSelectorWarningKind(
StyleSelectorWarningKind aKind) {
+ // Whenever an entry is modified here, file a DevTools follow-up bug to make
+ // use of the warning, e.g. Like it is done in
+ // `css-selector-warnings-tooltip-helper.js`.
switch (aKind) {
case StyleSelectorWarningKind::UnconstraintedRelativeSelector:
return SelectorWarningKind::UnconstrainedHas;