ladybird/Libraries/LibWeb/CSS/Parser
Sam Atkins ee712bd98f LibWeb/CSS: Simplify calculations after parsing them
If a calculation was simplified down to a single numeric node, then most
of the time we can instead return a regular StyleValue, for example
`calc(2px + 3px)` would be simplified down to a `5px` LengthStyleValue.
This means that parse_calculated_value() can't return a
CalculatedStyleValue directly, and its callers all have to handle
non-calculated values as well as calculated ones.

This simplification is reflected in the new test results. Serialization
is not yet correct in all cases but we're closer than we were. :^)
2025-01-30 19:31:54 +01:00
..
ComponentValue.cpp
ComponentValue.h
Dimension.h LibWeb/CSS: Add Parser::Dimension::to_string() 2024-12-18 12:21:22 +00:00
GradientParsing.cpp LibWeb/CSS: Replace Parser "current property" with a stack of contexts 2025-01-13 10:59:16 +00:00
Helpers.cpp
MediaParsing.cpp LibGC: Rename MarkedVector => RootVector 2024-12-26 19:10:44 +01:00
Parser.cpp LibWeb/CSS: Simplify calculations after parsing them 2025-01-30 19:31:54 +01:00
Parser.h LibWeb/CSS: Simplify calculations after parsing them 2025-01-30 19:31:54 +01:00
ParsingContext.cpp LibWeb/CSS: Make ParsingContext's Realm optional 2024-12-05 19:59:57 +01:00
ParsingContext.h LibWeb/CSS: Replace Parser "current property" with a stack of contexts 2025-01-13 10:59:16 +00:00
RuleParsing.cpp LibWeb/CSS: Wrap calc()-resolution data in a struct 2025-01-30 19:31:54 +01:00
SelectorParsing.cpp LibWeb: Require CSS combinators to be followed by a simple selector 2024-11-23 09:49:33 +01:00
Token.cpp
Token.h
Tokenizer.cpp LibWeb: Move CSS character type definitions to new header 2024-12-02 16:19:47 +00:00
Tokenizer.h
TokenStream.h
Types.cpp
Types.h