ladybird/Userland/Libraries/LibWeb/CSS/Parser
Ben Wiederhake 0db6ca4065 LibWeb: Resolve cyclic dependency between StyleSheet and ImportRule
Previously: CSSImportRule::loaded_style_sheet() (and others) depend on
the definition of class CSSStyleSheet. Meanwhile,
CSSStyleSheet::template for_each_effective_style_rule (and others)
depend on the definition of class CSSImportRule.

This hasn't caused any problems so far because CSSStyleSheet.h happened
to be always included after CSSImportRule.h (in part due to alphabetical
ordering).

However, a compilation unit that (for example) only contains
    #include <Userland/Libraries/LibWeb/CSSImportRule.h>
would fail to compile.

This patch resolves this issue by pushing the inline definition of
Web::CSS::CSSStyleSheet::for_each_effective_style_rule and
for_first_not_loaded_import_rule into a different file, and adding the
missing headers.
2021-10-06 23:52:40 +01:00
..
DeclarationOrAtRule.h LibWeb: Add accessors to CSS::DeclarationOrAtRule 2021-07-11 23:19:56 +02:00
Parser.cpp LibWeb: Resolve cyclic dependency between StyleSheet and ImportRule 2021-10-06 23:52:40 +01:00
Parser.h LibWeb: Parse media queries! :^) 2021-10-01 20:03:03 +02:00
StyleBlockRule.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
StyleComponentValueRule.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
StyleDeclarationRule.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
StyleFunctionRule.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
StyleRule.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
StyleRules.cpp Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
Token.cpp LibWeb: Make CSS 'An+B' parsing spec-compliant 2021-07-31 00:18:11 +02:00
Token.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
Tokenizer.cpp LibWeb: Stop treating EOF as a valid part of an identifier 2021-09-17 23:06:45 +02:00
Tokenizer.h LibWeb: Correct escape handling in CSS Tokenizer 2021-07-11 23:19:56 +02:00