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

LibWeb: Ensure CSSStyleSheet::css_rules() always returns the same object

Instead of having a method that replaces the stylesheet's CSSRuleList,
we now have a method on CSSRuleList to modify it's underlying CSSRules.
This commit is contained in:
Tim Ledbetter 2024-02-24 07:46:59 +00:00 committed by Andreas Kling
parent 811033ec19
commit d209d5a84f
2 changed files with 2 additions and 1 deletions

View file

@ -44,7 +44,6 @@ public:
CSSRuleList const& rules() const { return *m_rules; }
CSSRuleList& rules() { return *m_rules; }
void set_rules(CSSRuleList& rules) { m_rules = &rules; }
CSSRuleList* css_rules() { return m_rules; }
CSSRuleList const* css_rules() const { return m_rules; }