diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2023-02-26 16:09:02 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-15 08:48:49 +0100 |
commit | 7c0c1c8f4969abeec1436346f29081b3afbcdeab (patch) | |
tree | 985c294882161720a82dc54c70d0680e29700ec9 /Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp | |
parent | 1df3652e272e1aa69b3a1f8d1730ec464242ada9 (diff) | |
download | serenity-7c0c1c8f4969abeec1436346f29081b3afbcdeab.zip |
LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp index 75357e0f64..eac05cf0df 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp @@ -35,13 +35,13 @@ JS::ThrowCompletionOr<void> CSSStyleRule::initialize(JS::Realm& realm) void CSSStyleRule::visit_edges(Cell::Visitor& visitor) { Base::visit_edges(visitor); - visitor.visit(&m_declaration); + visitor.visit(m_declaration); } // https://www.w3.org/TR/cssom/#dom-cssstylerule-style CSSStyleDeclaration* CSSStyleRule::style() { - return &m_declaration; + return m_declaration; } // https://www.w3.org/TR/cssom/#serialize-a-css-rule |