From b4f78760f2ad20d7d704ac75ef654d95dfbc64eb Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 20 Apr 2023 16:45:28 +0100 Subject: [PATCH] LibWeb/HTML: Store NonnullGCPtr in browsing context group set These are never supposed to be null. --- Userland/Libraries/LibWeb/HTML/BrowsingContextGroup.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContextGroup.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContextGroup.cpp index 96262110b5..c8f81ff651 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContextGroup.cpp +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContextGroup.cpp @@ -11,21 +11,21 @@ namespace Web::HTML { // https://html.spec.whatwg.org/multipage/browsers.html#browsing-context-group-set -static HashTable& user_agent_browsing_context_group_set() +static HashTable>& user_agent_browsing_context_group_set() { - static HashTable set; + static HashTable> set; return set; } BrowsingContextGroup::BrowsingContextGroup(Web::Page& page) : m_page(page) { - user_agent_browsing_context_group_set().set(this); + user_agent_browsing_context_group_set().set(*this); } BrowsingContextGroup::~BrowsingContextGroup() { - user_agent_browsing_context_group_set().remove(this); + user_agent_browsing_context_group_set().remove(*this); } void BrowsingContextGroup::visit_edges(Cell::Visitor& visitor)