diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-04-12 12:00:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-12 23:03:46 +0200 |
commit | c449cabae3e861d19ec665ec1b55ac2882a9925c (patch) | |
tree | 0f7d402955e83f87fdbbfc68bdf06a2e22a8c05e /Meta/Lagom | |
parent | 1304bf5a219d042c5ccd2560bf99cedd76a85b45 (diff) | |
download | serenity-c449cabae3e861d19ec665ec1b55ac2882a9925c.zip |
LibWeb: Move CSS Parser into new Web::CSS::Parser namespace
The goal here is to move the parser-internal classes into this namespace
so they can have more convenient names without causing collisions. The
Parser itself won't collide, and would be more convenient to just
remain `CSS::Parser`, but having a namespace and a class with the same
name makes C++ unhappy.
Diffstat (limited to 'Meta/Lagom')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp index 0fccaec451..8381c5b4b1 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp @@ -312,7 +312,7 @@ NonnullRefPtr<StyleValue> property_initial_value(PropertyID property_id) static bool initialized = false; if (!initialized) { initialized = true; - ParsingContext parsing_context; + Parser::ParsingContext parsing_context; )~~~"); // NOTE: Parsing a shorthand property requires that its longhands are already available here. @@ -334,7 +334,7 @@ NonnullRefPtr<StyleValue> property_initial_value(PropertyID property_id) member_generator.set("initial_value_string", initial_value_string); member_generator.append(R"~~~( { - auto parsed_value = Parser(parsing_context, "@initial_value_string@").parse_as_css_value(PropertyID::@name:titlecase@); + auto parsed_value = parse_css_value(parsing_context, "@initial_value_string@", PropertyID::@name:titlecase@); VERIFY(!parsed_value.is_null()); initial_values[to_underlying(PropertyID::@name:titlecase@)] = parsed_value.release_nonnull(); } |