mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17: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
|
@ -115,11 +115,11 @@ public:
|
|||
String title() const;
|
||||
void set_title(const String&);
|
||||
|
||||
void attach_to_frame(Badge<Frame>, Frame&);
|
||||
void detach_from_frame(Badge<Frame>, Frame&);
|
||||
void attach_to_browsing_context(Badge<BrowsingContext>, BrowsingContext&);
|
||||
void detach_from_browsing_context(Badge<BrowsingContext>, BrowsingContext&);
|
||||
|
||||
Frame* frame() { return m_frame.ptr(); }
|
||||
const Frame* frame() const { return m_frame.ptr(); }
|
||||
BrowsingContext* browsing_context() { return m_browsing_context.ptr(); }
|
||||
const BrowsingContext* browsing_context() const { return m_browsing_context.ptr(); }
|
||||
|
||||
Page* page();
|
||||
const Page* page() const;
|
||||
|
@ -297,7 +297,7 @@ private:
|
|||
RefPtr<CSS::StyleSheetList> m_style_sheets;
|
||||
RefPtr<Node> m_hovered_node;
|
||||
RefPtr<Node> m_inspected_node;
|
||||
WeakPtr<Frame> m_frame;
|
||||
WeakPtr<BrowsingContext> m_browsing_context;
|
||||
URL m_url;
|
||||
|
||||
RefPtr<Window> m_window;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue