mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +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:
@@ -8,7 +8,7 @@
|
||||
#include <LibWeb/HTML/HTMLIFrameElement.h>
|
||||
#include <LibWeb/Layout/FrameBox.h>
|
||||
#include <LibWeb/Origin.h>
|
||||
#include <LibWeb/Page/Frame.h>
|
||||
#include <LibWeb/Page/BrowsingContext.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
@@ -43,7 +43,7 @@ void HTMLIFrameElement::inserted()
|
||||
|
||||
void HTMLIFrameElement::load_src(const String& value)
|
||||
{
|
||||
if (!m_content_frame)
|
||||
if (!m_nested_browsing_context)
|
||||
return;
|
||||
|
||||
if (value.is_null())
|
||||
@@ -60,7 +60,7 @@ void HTMLIFrameElement::load_src(const String& value)
|
||||
}
|
||||
|
||||
dbgln("Loading iframe document from {}", value);
|
||||
m_content_frame->loader().load(url, FrameLoader::Type::IFrame);
|
||||
m_nested_browsing_context->loader().load(url, FrameLoader::Type::IFrame);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user