mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Rename "frame" to "browsing_context" in various places
We renamed the Frame class to BrowsingContext a while back, but forgot to update some variable names.
This commit is contained in:
@@ -27,10 +27,10 @@ void BrowsingContextContainer::inserted()
|
||||
HTMLElement::inserted();
|
||||
if (!is_connected())
|
||||
return;
|
||||
if (auto* frame = document().browsing_context()) {
|
||||
VERIFY(frame->page());
|
||||
m_nested_browsing_context = BrowsingContext::create_nested(*frame->page(), *this);
|
||||
m_nested_browsing_context->set_frame_nesting_levels(frame->frame_nesting_levels());
|
||||
if (auto* browsing_context = document().browsing_context()) {
|
||||
VERIFY(browsing_context->page());
|
||||
m_nested_browsing_context = BrowsingContext::create_nested(*browsing_context->page(), *this);
|
||||
m_nested_browsing_context->set_frame_nesting_levels(browsing_context->frame_nesting_levels());
|
||||
m_nested_browsing_context->register_frame_nesting(document().url());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user