mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
LibWeb: Use delegating constructors in BrowsingContext
This avoids having two nearly-identical initializer lists and and an awkward setup() function that every constructor must call.
This commit is contained in:
parent
9d03ea6f74
commit
57fbeff925
2 changed files with 17 additions and 22 deletions
|
@ -91,13 +91,12 @@ public:
|
|||
HashMap<URL, size_t> const& frame_nesting_levels() const { return m_frame_nesting_levels; }
|
||||
|
||||
private:
|
||||
explicit BrowsingContext(Page&, DOM::Element* host_element, BrowsingContext& top_level_browsing_context);
|
||||
explicit BrowsingContext(DOM::Element& host_element, BrowsingContext& top_level_browsing_context);
|
||||
explicit BrowsingContext(Page&);
|
||||
|
||||
void reset_cursor_blink_cycle();
|
||||
|
||||
void setup();
|
||||
|
||||
WeakPtr<Page> m_page;
|
||||
BrowsingContext& m_top_level_browsing_context;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue