mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03:00
LibWeb: Make BrowsingContextGroup store Page member as NonnullGCPtr
No need to use WeakPtr anymore.
This commit is contained in:
parent
289ea2db9c
commit
7c926d04b7
Notes:
sideshowbarker
2024-07-17 00:53:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7c926d04b7 Pull-request: https://github.com/SerenityOS/serenity/pull/22142 Issue: https://github.com/SerenityOS/serenity/issues/22091
@ -34,6 +34,7 @@ BrowsingContextGroup::~BrowsingContextGroup()
|
||||
void BrowsingContextGroup::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_page);
|
||||
for (auto& context : m_browsing_context_set)
|
||||
visitor.visit(context);
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ private:
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#browsing-context-group-set
|
||||
OrderedHashTable<JS::NonnullGCPtr<BrowsingContext>> m_browsing_context_set;
|
||||
|
||||
WeakPtr<Page> m_page;
|
||||
JS::NonnullGCPtr<Page> m_page;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user