Revert "LibWeb/CSS: Keep invalid parts of <forgiving-selector-list>s around"

This reverts commit 698dd600f2.

This caused multiple tests to crash on macOS:
https://github.com/LadybirdBrowser/ladybird/pull/2317#issuecomment-2474725826
This commit is contained in:
Andreas Kling 2024-11-13 21:37:34 +01:00
commit 2a5dbedad4
Notes: github-actions[bot] 2024-11-13 20:39:08 +00:00
8 changed files with 3 additions and 110 deletions

View file

@ -12,7 +12,6 @@
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibWeb/CSS/Keyword.h>
#include <LibWeb/CSS/Parser/ComponentValue.h>
#include <LibWeb/CSS/PseudoClass.h>
namespace Web::CSS {
@ -93,7 +92,6 @@ public:
PseudoClass,
PseudoElement,
Nesting,
Invalid,
};
struct ANPlusBPattern {
@ -197,12 +195,8 @@ public:
CaseType case_type;
};
struct Invalid {
Vector<Parser::ComponentValue> component_values;
};
Type type;
Variant<Empty, Attribute, PseudoClassSelector, PseudoElement, Name, QualifiedName, Invalid> value {};
Variant<Empty, Attribute, PseudoClassSelector, PseudoElement, Name, QualifiedName> value {};
Attribute const& attribute() const { return value.get<Attribute>(); }
Attribute& attribute() { return value.get<Attribute>(); }