summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Selector.h
diff options
context:
space:
mode:
authorTobias Christiansen <tobi@tobyase.de>2021-05-23 20:59:26 +0200
committerLinus Groh <mail@linusgroh.de>2021-05-24 22:10:08 +0100
commit1ab82afee695d0671c767eff683a7fd1326c5609 (patch)
treedbd364e86e7e17093a9899405dcc9b53f69e4898 /Userland/Libraries/LibWeb/CSS/Selector.h
parent78f3bad7e6a7e00c40ac138e956c04f704e47191 (diff)
downloadserenity-1ab82afee695d0671c767eff683a7fd1326c5609.zip
LibWeb: Add :not pseudoclass to the CSS parser
The selector given in the :not() is stored in the SimpleSelector as a String.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Selector.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Selector.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Selector.h b/Userland/Libraries/LibWeb/CSS/Selector.h
index 9e7036a98a..eb648bde8c 100644
--- a/Userland/Libraries/LibWeb/CSS/Selector.h
+++ b/Userland/Libraries/LibWeb/CSS/Selector.h
@@ -7,6 +7,7 @@
#pragma once
#include <AK/FlyString.h>
+#include <AK/String.h>
#include <AK/Vector.h>
namespace Web::CSS {
@@ -41,6 +42,7 @@ public:
Disabled,
Enabled,
Checked,
+ Not,
};
PseudoClass pseudo_class { PseudoClass::None };
@@ -75,6 +77,7 @@ public:
// FIXME: We don't need this field on every single SimpleSelector, but it's also annoying to malloc it somewhere.
// Only used when "pseudo_class" is "NthChild" or "NthLastChild".
NthChildPattern nth_child_pattern;
+ String not_selector {};
};
struct ComplexSelector {