1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:37:45 +00:00

LibWeb: Use free functions for parsing in @Supports

This commit is contained in:
Sam Atkins 2023-03-06 14:46:21 +00:00 committed by Andreas Kling
parent 84af8dd9ed
commit 235018046e
3 changed files with 11 additions and 2 deletions

View file

@ -52,13 +52,13 @@ bool Supports::InParens::evaluate() const
bool Supports::Declaration::evaluate() const
{
auto style_property = Parser::Parser({}, declaration).parse_as_supports_condition();
auto style_property = parse_css_supports_condition({}, declaration);
return style_property.has_value();
}
bool Supports::Selector::evaluate() const
{
auto style_property = Parser::Parser({}, selector).parse_as_selector();
auto style_property = parse_selector({}, selector);
return style_property.has_value();
}