1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 17:05:06 +00:00
serenity/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins 23dc0dac88 LibWeb: Parse and resolve UnresolvedStyleValues
If a property is custom or contains a `var()` reference, it cannot be
parsed into a proper StyleValue immediately, so we store it as an
UnresolvedStyleValue until the property is compute. Then, at compute
time, we resolve them by expanding out any `var()` references, and
parsing the result.

The implementation here is very naive, and involves copying the
UnresolvedStyleValue's tree of StyleComponentValueRules while copying
the contents of any `var()`s it finds along the way. This is quite an
expensive operation to do every time that the style is computed.
2021-12-09 21:30:31 +01:00
..
DeclarationOrAtRule.h LibWeb: Add accessors to CSS::DeclarationOrAtRule 2021-07-11 23:19:56 +02:00
Parser.cpp LibWeb: Parse and resolve UnresolvedStyleValues 2021-12-09 21:30:31 +01:00
Parser.h LibWeb: Parse and resolve UnresolvedStyleValues 2021-12-09 21:30:31 +01:00
StyleBlockRule.h LibWeb: Make StyleBlockRule more accessible to outsiders 2021-12-09 21:30:31 +01:00
StyleComponentValueRule.h LibWeb: Implement StyleComponentValueRule::to_string() 2021-11-24 22:57:46 +01:00
StyleDeclarationRule.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
StyleFunctionRule.h LibWeb: Parse and resolve UnresolvedStyleValues 2021-12-09 21:30:31 +01:00
StyleRule.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
StyleRules.cpp LibWeb: Parse and resolve UnresolvedStyleValues 2021-12-09 21:30:31 +01:00
Token.cpp LibWeb: Implement CSS::Token::to_string() 2021-11-24 22:57:46 +01:00
Token.h LibWeb: Implement CSS::Token::to_string() 2021-11-24 22:57:46 +01:00
Tokenizer.cpp LibWeb: Add spec comments to CSS Tokenizer 2021-11-19 22:35:05 +01:00
Tokenizer.h LibWeb: Convert numeric tokens to numbers in CSS Tokenizer 2021-11-19 22:35:05 +01:00