mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +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:
parent
5dd4b3eaaa
commit
41fe02e012
7 changed files with 82 additions and 82 deletions
|
@ -223,27 +223,27 @@ void Window::cancel_animation_frame(i32 id)
|
|||
|
||||
void Window::did_set_location_href(Badge<Bindings::LocationObject>, AK::URL const& new_href)
|
||||
{
|
||||
auto* frame = associated_document().browsing_context();
|
||||
if (!frame)
|
||||
auto* browsing_context = associated_document().browsing_context();
|
||||
if (!browsing_context)
|
||||
return;
|
||||
frame->loader().load(new_href, FrameLoader::Type::Navigation);
|
||||
browsing_context->loader().load(new_href, FrameLoader::Type::Navigation);
|
||||
}
|
||||
|
||||
void Window::did_call_location_reload(Badge<Bindings::LocationObject>)
|
||||
{
|
||||
auto* frame = associated_document().browsing_context();
|
||||
if (!frame)
|
||||
auto* browsing_context = associated_document().browsing_context();
|
||||
if (!browsing_context)
|
||||
return;
|
||||
frame->loader().load(associated_document().url(), FrameLoader::Type::Reload);
|
||||
browsing_context->loader().load(associated_document().url(), FrameLoader::Type::Reload);
|
||||
}
|
||||
|
||||
void Window::did_call_location_replace(Badge<Bindings::LocationObject>, String url)
|
||||
{
|
||||
auto* frame = associated_document().browsing_context();
|
||||
if (!frame)
|
||||
auto* browsing_context = associated_document().browsing_context();
|
||||
if (!browsing_context)
|
||||
return;
|
||||
auto new_url = associated_document().parse_url(url);
|
||||
frame->loader().load(move(new_url), FrameLoader::Type::Navigation);
|
||||
browsing_context->loader().load(move(new_url), FrameLoader::Type::Navigation);
|
||||
}
|
||||
|
||||
bool Window::dispatch_event(NonnullRefPtr<Event> event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue