LibWeb/CSS: Make CSSStyleRule be a CSSGroupingRule

As part of this, we can now fill in the missing serialization steps.

The parsing is a stub for now, and will be filled out in a subsequent
commit.
This commit is contained in:
Sam Atkins 2024-10-08 12:06:53 +01:00 committed by Andreas Kling
commit 7723873016
Notes: github-actions[bot] 2024-10-14 06:09:48 +00:00
5 changed files with 59 additions and 40 deletions

View file

@ -51,11 +51,12 @@ public:
template<typename T>
bool fast_is() const = delete;
// https://drafts.csswg.org/cssom-1/#serialize-a-css-rule
virtual String serialized() const = 0;
protected:
explicit CSSRule(JS::Realm&);
virtual String serialized() const = 0;
virtual void visit_edges(Cell::Visitor&) override;
[[nodiscard]] FlyString const& parent_layer_internal_qualified_name() const