mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
AbstractBrowsingContext has a subclass RemoteBrowsingContext without a visit_edges() override (and it doesn't really need one). But currently, we rely on subclasses visiting AbstractBrowsingContext's opener BC. This adds a visit_edges() to AbstractBrowsingContext to explicitly visit the opener BC itself.
18 lines
381 B
C++
18 lines
381 B
C++
/*
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/HTML/AbstractBrowsingContext.h>
|
|
#include <LibWeb/HTML/BrowsingContext.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
void AbstractBrowsingContext::visit_edges(JS::Cell::Visitor& visitor)
|
|
{
|
|
Base::visit_edges(visitor);
|
|
visitor.visit(m_opener_browsing_context);
|
|
}
|
|
|
|
}
|