mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
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.
This commit is contained in:
parent
1304bf5a21
commit
c449cabae3
23 changed files with 61 additions and 58 deletions
|
@ -52,13 +52,13 @@ bool Supports::InParens::evaluate() const
|
|||
|
||||
bool Supports::Declaration::evaluate() const
|
||||
{
|
||||
auto style_property = Parser({}, declaration).parse_as_supports_condition();
|
||||
auto style_property = Parser::Parser({}, declaration).parse_as_supports_condition();
|
||||
return style_property.has_value();
|
||||
}
|
||||
|
||||
bool Supports::Selector::evaluate() const
|
||||
{
|
||||
auto style_property = Parser({}, selector).parse_as_selector();
|
||||
auto style_property = Parser::Parser({}, selector).parse_as_selector();
|
||||
return style_property.has_value();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue