mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Rename Web::Frame to Web::BrowsingContext
Our "frame" concept very closely matches what the web specs call a "browsing context", so let's rename it to that. :^) The "main frame" becomes the "top-level browsing context", and "sub-frames" are now "nested browsing contexts".
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
#include <LibWeb/HighResolutionTime/Performance.h>
|
||||
#include <LibWeb/InProcessWebView.h>
|
||||
#include <LibWeb/Layout/InitialContainingBlockBox.h>
|
||||
#include <LibWeb/Page/Frame.h>
|
||||
#include <LibWeb/Page/BrowsingContext.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
@@ -139,7 +139,7 @@ void Window::cancel_animation_frame(i32 id)
|
||||
|
||||
void Window::did_set_location_href(Badge<Bindings::LocationObject>, const URL& new_href)
|
||||
{
|
||||
auto* frame = document().frame();
|
||||
auto* frame = document().browsing_context();
|
||||
if (!frame)
|
||||
return;
|
||||
frame->loader().load(new_href, FrameLoader::Type::Navigation);
|
||||
@@ -147,7 +147,7 @@ void Window::did_set_location_href(Badge<Bindings::LocationObject>, const URL& n
|
||||
|
||||
void Window::did_call_location_reload(Badge<Bindings::LocationObject>)
|
||||
{
|
||||
auto* frame = document().frame();
|
||||
auto* frame = document().browsing_context();
|
||||
if (!frame)
|
||||
return;
|
||||
frame->loader().load(document().url(), FrameLoader::Type::Reload);
|
||||
|
||||
Reference in New Issue
Block a user