1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00
serenity/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins 2b3185955e LibWeb: Use StateTransaction for UnicodeRange parsing
...and change how the two parsing steps fit together.

The two steps were previously quite muddled. Both worked with the
TokenStream directly, and both were responsible for rewinding that
stream if there was an error. This is both confusing and also made it
impossible to replace the rewinding with StateTransactions.

This commit more clearly divides the work between the two functions: One
parses ComponentValues and produces a string, and the other parses that
string to produce the UnicodeRange. It also replaces manual rewinding
in the former with StateTransactions.
2022-04-29 00:07:31 +02:00
..
Block.cpp LibWeb: Break friendship between CSS Block and Parser 2022-04-12 23:03:46 +02:00
Block.h LibWeb: Break friendship between CSS Block and Parser 2022-04-12 23:03:46 +02:00
ComponentValue.cpp LibWeb: Move/rename StyleBlockRule to Parser::Block 2022-04-12 23:03:46 +02:00
ComponentValue.h LibWeb: Add missing include to ComponentValue.h 2022-04-12 23:03:46 +02:00
Declaration.cpp LibWeb: Break friendship between CSS Declaration and Parser 2022-04-12 23:03:46 +02:00
Declaration.h LibWeb: Break friendship between CSS Declaration and Parser 2022-04-12 23:03:46 +02:00
DeclarationOrAtRule.cpp LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
DeclarationOrAtRule.h LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
Function.cpp LibWeb: Break friendship between CSS Function and Parser 2022-04-12 23:03:46 +02:00
Function.h LibWeb: Break friendship between CSS Function and Parser 2022-04-12 23:03:46 +02:00
Parser.cpp LibWeb: Use StateTransaction for UnicodeRange parsing 2022-04-29 00:07:31 +02:00
Parser.h LibWeb: Use StateTransaction for UnicodeRange parsing 2022-04-29 00:07:31 +02:00
Rule.cpp LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
Rule.h LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
Token.cpp LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00
Token.h LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00
Tokenizer.cpp LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00
Tokenizer.h LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00