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

LibWeb: Move PseudoElement enum up a level

This in preparation for changing how we store these, plus it's unwieldy
having to type CSS::Selector::SimpleSelector::PseudoElement.
This commit is contained in:
Sam Atkins 2022-02-24 15:13:20 +00:00 committed by Andreas Kling
parent 5390e05851
commit caef4ec157
4 changed files with 28 additions and 28 deletions

View file

@ -438,19 +438,19 @@ void dump_selector(StringBuilder& builder, CSS::Selector const& selector)
if (simple_selector.type == CSS::Selector::SimpleSelector::Type::PseudoElement) {
char const* pseudo_element_description = "";
switch (simple_selector.pseudo_element) {
case CSS::Selector::SimpleSelector::PseudoElement::None:
case CSS::Selector::PseudoElement::None:
pseudo_element_description = "NONE";
break;
case CSS::Selector::SimpleSelector::PseudoElement::Before:
case CSS::Selector::PseudoElement::Before:
pseudo_element_description = "before";
break;
case CSS::Selector::SimpleSelector::PseudoElement::After:
case CSS::Selector::PseudoElement::After:
pseudo_element_description = "after";
break;
case CSS::Selector::SimpleSelector::PseudoElement::FirstLine:
case CSS::Selector::PseudoElement::FirstLine:
pseudo_element_description = "first-line";
break;
case CSS::Selector::SimpleSelector::PseudoElement::FirstLetter:
case CSS::Selector::PseudoElement::FirstLetter:
pseudo_element_description = "first-letter";
break;
}