mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
LibWeb: Use free functions for parsing in @Supports
This commit is contained in:
parent
84af8dd9ed
commit
235018046e
3 changed files with 11 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue