mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +00:00
LibHTML: Make sure every DOM Node belongs to a Document
This commit is contained in:
parent
13860e4dd8
commit
1b8509a0c9
Notes:
sideshowbarker
2024-07-19 11:53:57 +09:00
Author: https://github.com/awesomekling
Commit: 1b8509a0c9
9 changed files with 28 additions and 22 deletions
|
@ -7,8 +7,9 @@
|
|||
#include <LibHTML/Layout/LayoutInline.h>
|
||||
#include <LibHTML/Layout/LayoutText.h>
|
||||
|
||||
Node::Node(NodeType type)
|
||||
: m_type(type)
|
||||
Node::Node(Document& document, NodeType type)
|
||||
: m_document(document)
|
||||
, m_type(type)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue