mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibWeb: Move pseudo-element-from-string code into Selector
This commit is contained in:
parent
adc08d0646
commit
1c18bb13a2
Notes:
sideshowbarker
2024-07-17 17:37:43 +09:00
Author: https://github.com/AtkinsSJ
Commit: 1c18bb13a2
Pull-request: https://github.com/SerenityOS/serenity/pull/12873
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