summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/DOM/Document.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-04 16:16:50 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-04 16:16:50 +0200
commit04b9dc2d30cfc9b383029f6a4b02e2725108b0ae (patch)
treee117a998173b767f9fd009d49c4f8573d8b85432 /Libraries/LibHTML/DOM/Document.cpp
parent63814ffebf16291419745cd8ba29a4d2fd888563 (diff)
downloadserenity-04b9dc2d30cfc9b383029f6a4b02e2725108b0ae.zip
Libraries: Create top level directory for libraries.
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
Diffstat (limited to 'Libraries/LibHTML/DOM/Document.cpp')
-rw-r--r--Libraries/LibHTML/DOM/Document.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Libraries/LibHTML/DOM/Document.cpp b/Libraries/LibHTML/DOM/Document.cpp
new file mode 100644
index 0000000000..36c937e6d7
--- /dev/null
+++ b/Libraries/LibHTML/DOM/Document.cpp
@@ -0,0 +1,21 @@
+#include <LibHTML/CSS/StyleResolver.h>
+#include <LibHTML/DOM/Document.h>
+#include <LibHTML/DOM/Element.h>
+#include <LibHTML/Layout/LayoutDocument.h>
+#include <stdio.h>
+
+Document::Document()
+ : ParentNode(NodeType::DOCUMENT_NODE)
+{
+}
+
+Document::~Document()
+{
+}
+
+StyleResolver& Document::style_resolver()
+{
+ if (!m_style_resolver)
+ m_style_resolver = make<StyleResolver>(*this);
+ return *m_style_resolver;
+}