mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +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
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