mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibWeb: Move DOM::Document factory functions out of line
This commit is contained in:
parent
50d951aea2
commit
b838f2029b
Notes:
sideshowbarker
2024-07-17 08:25:43 +09:00
Author: https://github.com/awesomekling
Commit: b838f2029b
2 changed files with 12 additions and 9 deletions
|
@ -51,15 +51,8 @@ public:
|
|||
HTML
|
||||
};
|
||||
|
||||
static NonnullRefPtr<Document> create(const AK::URL& url = "about:blank"sv)
|
||||
{
|
||||
return adopt_ref(*new Document(url));
|
||||
}
|
||||
static NonnullRefPtr<Document> create_with_global_object(Bindings::WindowObject&)
|
||||
{
|
||||
return Document::create();
|
||||
}
|
||||
|
||||
static NonnullRefPtr<Document> create(AK::URL const& url = "about:blank"sv);
|
||||
static NonnullRefPtr<Document> create_with_global_object(Bindings::WindowObject&);
|
||||
virtual ~Document() override;
|
||||
|
||||
size_t next_layout_node_serial_id(Badge<Layout::Node>) { return m_next_layout_node_serial_id++; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue