1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00
serenity/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins c3bf9e5b79 LibWeb: Rewrite media-query parsing to match spec grammar
Past me decided that the grammar was overly verbose and I could do it
better myself. Which seemed fine until the spec changed and I didn't
know how to integrate the changes. Lesson learned! :^)

Rather than have a function for every single part of the grammar, I have
written some as lambdas, and combned `<media-condition>` and
`<media-condition-without-or>` into one function. But otherwise it's
close to the spec, with comments listing the part of the grammar being
parsed, so hopefully it will be easier to make future adjustments!

This does not add any new functionality.
2022-01-02 15:43:51 +01:00
..
DeclarationOrAtRule.h LibWeb: Add accessors to CSS::DeclarationOrAtRule 2021-07-11 23:19:56 +02:00
Parser.cpp LibWeb: Rewrite media-query parsing to match spec grammar 2022-01-02 15:43:51 +01:00
Parser.h LibWeb: Rewrite media-query parsing to match spec grammar 2022-01-02 15:43:51 +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: Use start_of_input_stream_twin() for is_valid_escape_sequence() 2021-12-27 22:56:08 +01:00
Tokenizer.h LibWeb: Pass correct values to would_start_an_identifier() 2021-12-27 22:56:08 +01:00