mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +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
|
@ -23,7 +23,7 @@ public:
|
|||
IFrame,
|
||||
};
|
||||
|
||||
explicit FrameLoader(Frame&);
|
||||
explicit FrameLoader(BrowsingContext&);
|
||||
~FrameLoader();
|
||||
|
||||
bool load(const URL&, Type);
|
||||
|
@ -31,8 +31,8 @@ public:
|
|||
|
||||
void load_html(const StringView&, const URL&);
|
||||
|
||||
Frame& frame() { return m_frame; }
|
||||
const Frame& frame() const { return m_frame; }
|
||||
BrowsingContext& browsing_context() { return m_browsing_context; }
|
||||
const BrowsingContext& browsing_context() const { return m_browsing_context; }
|
||||
|
||||
private:
|
||||
// ^ResourceClient
|
||||
|
@ -42,7 +42,7 @@ private:
|
|||
void load_error_page(const URL& failed_url, const String& error_message);
|
||||
bool parse_document(DOM::Document&, const ByteBuffer& data);
|
||||
|
||||
Frame& m_frame;
|
||||
BrowsingContext& m_browsing_context;
|
||||
size_t m_redirects_count { 0 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue