mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:37:44 +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:
parent
8be98af77c
commit
4190fd2199
43 changed files with 241 additions and 241 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue