diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-21 16:23:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-21 16:23:08 +0200 |
commit | 685e006e27a24749896ed152800dc681149f16ca (patch) | |
tree | 59638845832d09943b319e4f11fb967a66b51b9f /Libraries/LibWeb/Parser | |
parent | 4065182811830391fc22fd443267de737c4d444e (diff) | |
download | serenity-685e006e27a24749896ed152800dc681149f16ca.zip |
LibWeb: Use "namespace Web::Foo {" since C++20 allows it :^)
Thanks @nico for teaching me about this!
Diffstat (limited to 'Libraries/LibWeb/Parser')
-rw-r--r-- | Libraries/LibWeb/Parser/CSSParser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibWeb/Parser/CSSParser.h b/Libraries/LibWeb/Parser/CSSParser.h index 25f478c16f..dc38bb7c74 100644 --- a/Libraries/LibWeb/Parser/CSSParser.h +++ b/Libraries/LibWeb/Parser/CSSParser.h @@ -29,9 +29,7 @@ #include <AK/NonnullRefPtr.h> #include <LibWeb/CSS/StyleSheet.h> -namespace Web { - -namespace CSS { +namespace Web::CSS { class ParsingContext { public: ParsingContext(); @@ -44,6 +42,8 @@ private: }; } +namespace Web { + RefPtr<StyleSheet> parse_css(const CSS::ParsingContext&, const StringView&); RefPtr<StyleDeclaration> parse_css_declaration(const CSS::ParsingContext&, const StringView&); RefPtr<StyleValue> parse_css_value(const CSS::ParsingContext&, const StringView&); |