1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibWeb: Move pseudo-element-from-string code into Selector

This commit is contained in:
Sam Atkins 2022-03-03 14:22:50 +00:00 committed by Andreas Kling
parent adc08d0646
commit 1c18bb13a2
3 changed files with 21 additions and 11 deletions

View file

@ -165,6 +165,8 @@ constexpr StringView pseudo_element_name(Selector::PseudoElement pseudo_element)
VERIFY_NOT_REACHED();
}
Optional<Selector::PseudoElement> pseudo_element_from_string(StringView);
constexpr StringView pseudo_class_name(Selector::SimpleSelector::PseudoClass::Type pseudo_class)
{
switch (pseudo_class) {