mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:58:12 +00:00
LibWeb: Add context to new CSS parser, and deprecate the old one
The new one is the same as the old one, just in the new Parser's source files. This isn't the most elegant solution but it seemed like the best option. And it's all temporary, after all.
This commit is contained in:
parent
390cc30a97
commit
004ae453d1
10 changed files with 83 additions and 41 deletions
|
@ -109,7 +109,7 @@ static bool matches(const CSS::Selector::SimpleSelector& component, const DOM::E
|
|||
case CSS::Selector::SimpleSelector::PseudoClass::Not: {
|
||||
if (component.not_selector.is_empty())
|
||||
return false;
|
||||
auto not_selector = Web::parse_selector(CSS::ParsingContext(element), component.not_selector);
|
||||
auto not_selector = Web::parse_selector(CSS::DeprecatedParsingContext(element), component.not_selector);
|
||||
if (!not_selector.has_value())
|
||||
return false;
|
||||
auto not_matches = matches(not_selector.value(), element);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue