1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00
serenity/Userland/Libraries/LibWeb/CSS/Parser
Shannon Booth 83758d4cdd LibWeb: Wrap PseudoElements stored in SimpleSelector in a class
No functional impact intended. This is just a more complicated way of
writing what we have now.

The goal of this commit is so that we are able to store the 'name' of a
pseudo element for use in serializing 'unknown -webkit-
pseudo-elements', see:

https://www.w3.org/TR/selectors-4/#compat

This is quite awkward, as in pretty much all cases just the selector
type enum is enough, but we will need to cache the name for serializing
these unknown selectors. I can't figure out any reason why we would need
this name anywhere else in the engine, so pretty much everywhere is
still just passing around this raw enum. But this change will allow us
to easily store the name inside of this new struct for when it is needed
for serialization, once those webkit unknown elements are supported by
our engine.
2023-12-11 16:54:59 +01:00
..
Block.cpp LibWeb: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
Block.h LibWeb: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
ComponentValue.cpp LibWeb: Add ComponentValue::is_function(name) and is_ident(name) helpers 2023-09-11 17:03:22 +01:00
ComponentValue.h LibWeb: Add ComponentValue::is_function(name) and is_ident(name) helpers 2023-09-11 17:03:22 +01:00
Declaration.cpp LibWeb: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
Declaration.h LibWeb: Port custom properties to FlyString 2023-11-07 11:33:41 +01:00
DeclarationOrAtRule.cpp LibWeb: Port CSS::Parser::Rule to new Strings 2023-02-15 12:48:26 -05:00
DeclarationOrAtRule.h LibWeb: Port CSS::Parser::Rule to new Strings 2023-02-15 12:48:26 -05:00
Dimension.h LibWeb: Implement Flex and FlexStyleValue types 2023-09-28 20:33:20 +01:00
Function.cpp LibWeb: Stop adding extra whitespace when serializing CSS Functions 2023-09-20 18:29:37 +02:00
Function.h LibWeb: Expose Parser::Function name as FlyString const& 2023-09-05 14:27:23 +02:00
GradientParsing.cpp LibWeb: Use ComponentValue::is_ident("..."sv) helper 2023-11-22 09:45:51 +01:00
Helpers.cpp LibWeb: Make external StyleValue-parsing methods infallible 2023-08-19 17:34:22 +02:00
MediaParsing.cpp LibWeb: Use ComponentValue::is_ident("..."sv) helper 2023-11-22 09:45:51 +01:00
Parser.cpp LibWeb: Wrap PseudoElements stored in SimpleSelector in a class 2023-12-11 16:54:59 +01:00
Parser.h LibWeb: Wrap PseudoElements stored in SimpleSelector in a class 2023-12-11 16:54:59 +01:00
ParsingContext.cpp LibWeb: Add SVG-presentation-attribute-parsing mode to CSS parser 2023-09-26 20:01:55 +02:00
ParsingContext.h LibWeb: Add SVG-presentation-attribute-parsing mode to CSS parser 2023-09-26 20:01:55 +02:00
Rule.cpp LibWeb: Port CSS::Parser::Rule to new Strings 2023-02-15 12:48:26 -05:00
Rule.h LibWeb: Port CSS::Parser::Rule to new Strings 2023-02-15 12:48:26 -05:00
SelectorParsing.cpp LibWeb: Wrap PseudoElements stored in SimpleSelector in a class 2023-12-11 16:54:59 +01:00
Token.cpp LibWeb: Make serializing CSS Parser types infallible 2023-08-22 17:51:48 +01:00
Token.h LibWeb: Use code_points helper for getting delim CSS token codepoint 2023-12-11 16:54:59 +01:00
Tokenizer.cpp LibWeb: Tokenize CSS numbers as doubles 2023-08-20 14:25:18 +01:00
Tokenizer.h LibWeb: Tokenize CSS numbers as doubles 2023-08-20 14:25:18 +01:00
TokenStream.h LibWeb: Add preliminary support for CSS animations 2023-05-29 05:35:41 +02:00