LibWeb: Remove unused BrowsingContext::container_document()

This commit is contained in:
Aliaksandr Kalenik 2023-09-04 15:58:05 +02:00 committed by Andreas Kling
parent 57e53fa844
commit bf785fee34
Notes: sideshowbarker 2024-07-16 23:34:49 +09:00
2 changed files with 0 additions and 17 deletions

View File

@ -516,20 +516,6 @@ bool BrowsingContext::decrement_cursor_position_offset()
return true;
}
DOM::Document* BrowsingContext::container_document()
{
if (auto* container = this->container())
return &container->document();
return nullptr;
}
DOM::Document const* BrowsingContext::container_document() const
{
if (auto* container = this->container())
return &container->document();
return nullptr;
}
// https://html.spec.whatwg.org/#rendering-opportunity
bool BrowsingContext::has_a_rendering_opportunity() const
{

View File

@ -181,9 +181,6 @@ public:
void set_frame_nesting_levels(HashMap<AK::URL, size_t> frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); }
HashMap<AK::URL, size_t> const& frame_nesting_levels() const { return m_frame_nesting_levels; }
DOM::Document* container_document();
DOM::Document const* container_document() const;
bool has_a_rendering_opportunity() const;
JS::GCPtr<DOM::Node> currently_focused_area();