summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp
diff options
context:
space:
mode:
authorMatthew Olsson <matthewcolsson@gmail.com>2023-02-26 16:09:02 -0700
committerAndreas Kling <kling@serenityos.org>2023-03-15 08:48:49 +0100
commit7c0c1c8f4969abeec1436346f29081b3afbcdeab (patch)
tree985c294882161720a82dc54c70d0680e29700ec9 /Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp
parent1df3652e272e1aa69b3a1f8d1730ec464242ada9 (diff)
downloadserenity-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.cpp4
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