summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/SelectorEngine.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-07-02 20:25:13 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-11 23:19:56 +0200
commit004ae453d17a5d1d215d3c719fb199bed8919cb5 (patch)
treea7cd01e6c05cb0b80b82b7952c55f0c18743049d /Userland/Libraries/LibWeb/CSS/SelectorEngine.cpp
parent390cc30a9707b36477b1042359249f7e448038c0 (diff)
downloadserenity-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.cpp2
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);