1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibWeb: Add serialization code for CSS{Media,Supports}Rule

The `CSSMediaRule::serialized()` code is to spec. The
`CSSSupportsRule::serialized()` code has no spec right now, but I'm
fairly confident it will be almost identical to media's, so I copied
that for now.
This commit is contained in:
Sam Atkins 2021-10-15 16:42:26 +01:00 committed by Linus Groh
parent 46bba44f8b
commit 0f88a47e58
6 changed files with 53 additions and 8 deletions

View file

@ -39,6 +39,8 @@ public:
private:
explicit CSSMediaRule(NonnullRefPtr<MediaList>&&, NonnullRefPtrVector<CSSRule>&&);
virtual String serialized() const override;
NonnullRefPtr<MediaList> m_media;
};