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:
parent
adc08d0646
commit
1c18bb13a2
3 changed files with 21 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue