summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-03 15:44:06 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-06 00:27:09 +0200
commit36085676d24bb9c837747f59224637d75b4f324f (patch)
tree798e36f58d54bed9828ec4258b733d04661ab490 /Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp
parenta835f313f7df7900742176b145143b5c93931915 (diff)
downloadserenity-36085676d24bb9c837747f59224637d75b4f324f.zip
LibWeb: Make CSSImportList mark its document
We don't need to use a WeakPtr here anymore, since the garbage collector will resolve any cycles.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp
index bb6ee1eb85..378878253c 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp
@@ -43,6 +43,7 @@ CSSImportRule::CSSImportRule(AK::URL url, DOM::Document& document)
void CSSImportRule::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
+ visitor.visit(m_document);
visitor.visit(m_style_sheet);
}