mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Use free functions for parsing in @Supports
This commit is contained in:
committed by
Andreas Kling
parent
84af8dd9ed
commit
235018046e
@@ -7455,4 +7455,12 @@ RefPtr<CSS::Supports> parse_css_supports(CSS::Parser::ParsingContext const& cont
|
||||
return parser.parse_as_supports();
|
||||
}
|
||||
|
||||
Optional<CSS::StyleProperty> parse_css_supports_condition(CSS::Parser::ParsingContext const& context, StringView string)
|
||||
{
|
||||
if (string.is_empty())
|
||||
return {};
|
||||
CSS::Parser::Parser parser(context, string);
|
||||
return parser.parse_as_supports_condition();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user