Shannon Booth
6ce0d588ee
Everywhere: Avoid calling from_utf8 on FlyString or String
...
We already have a String :^)
2023-12-10 09:45:03 +01:00
Shannon Booth
6813dcaff8
LibWeb: Return FlyString const& from CSS::Parser::Token
...
This allows us to not need to convert back to a FlyString when we need
one.
2023-12-02 22:54:53 +01:00
Sam Atkins
f69d38a346
LibWeb: Use ComponentValue::is_ident("..."sv) helper
2023-11-22 09:45:51 +01:00
Shannon Booth
3f13a50a20
LibWeb: Return FlyString from CSS::Parser::Token::ident
...
Instead of a StringView. This allows us to preserve the nice O(1) string
compare property of FlyString, and not needing to allocate when one is
needed.
Ideally all other places in Token should have similar changes done, but
to prevent a huge amount of churn, just change ident for now.
2023-11-07 11:33:41 +01:00
Sam Atkins
5b125811f1
LibWeb: Add support for pseudo-class functions that take an ident param
...
This is prep work for `:dir()`, though other pseudo-classes may well use
it in the future too.
2023-08-21 13:51:56 +02:00
Sam Atkins
8e5b2907f6
LibWeb: Move selector parsing code to a separate file
2023-08-17 19:39:10 +02:00