mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb: Include all pseudo-classes in SimpleSelector::serialize
Rather than logging ones that are missed, just rely on the compiler to complain if one is missing. `:indeterminate` was. :^)
This commit is contained in:
parent
44911173f5
commit
a336fe4fc4
Notes:
sideshowbarker
2024-07-17 03:05:16 +09:00
Author: https://github.com/AtkinsSJ
Commit: a336fe4fc4
Pull-request: https://github.com/SerenityOS/serenity/pull/20302
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 3 deletions
|
@ -227,6 +227,7 @@ ErrorOr<String> Selector::SimpleSelector::serialize() const
|
|||
case Selector::SimpleSelector::PseudoClass::Type::Disabled:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Enabled:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Checked:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Indeterminate:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Active:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Scope:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Defined:
|
||||
|
@ -265,9 +266,6 @@ ErrorOr<String> Selector::SimpleSelector::serialize() const
|
|||
}
|
||||
TRY(s.try_append(')'));
|
||||
break;
|
||||
default:
|
||||
dbgln("FIXME: Unknown pseudo class type for serialization: {}", to_underlying(pseudo_class.type));
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue