diff options
author | Sam Atkins <atkinssj@gmail.com> | 2021-07-02 20:25:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-11 23:19:56 +0200 |
commit | 004ae453d17a5d1d215d3c719fb199bed8919cb5 (patch) | |
tree | a7cd01e6c05cb0b80b82b7952c55f0c18743049d /Userland/Libraries/LibWeb/CSS/SelectorEngine.cpp | |
parent | 390cc30a9707b36477b1042359249f7e448038c0 (diff) | |
download | serenity-004ae453d17a5d1d215d3c719fb199bed8919cb5.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/SelectorEngine.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/SelectorEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/SelectorEngine.cpp b/Userland/Libraries/LibWeb/CSS/SelectorEngine.cpp index ccbaf1712d..141e426adf 100644 --- a/Userland/Libraries/LibWeb/CSS/SelectorEngine.cpp +++ b/Userland/Libraries/LibWeb/CSS/SelectorEngine.cpp @@ -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); |