1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

LibWeb: Make CSSConditionRule.conditionText read-only

Previously @media rule conditions could be updated by assigning to
`conditionText`. This change aligns our implementation with the CSSOM
specification, which says `CSSConditionRule.conditionText` should be
read-only.
This commit is contained in:
Tim Ledbetter 2024-02-28 18:00:25 +00:00 committed by Andreas Kling
parent b08fd1b9ae
commit 4646a87eba
8 changed files with 29 additions and 15 deletions

View file

@ -19,7 +19,6 @@ public:
virtual ~CSSConditionRule() = default;
virtual String condition_text() const = 0;
virtual void set_condition_text(String const&) = 0;
virtual bool condition_matches() const = 0;
virtual void for_each_effective_style_rule(Function<void(CSSStyleRule const&)> const& callback) const override;