summaryrefslogtreecommitdiff
path: root/LibHTML/Layout/LayoutDocument.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-16 21:35:03 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-16 21:35:03 +0200
commit0db2f3cbe6a7ed9ae2e6c25d9fbb6e9f55b92796 (patch)
treeb2d3f9c44ba278c9d19e937be249c0950c5cf463 /LibHTML/Layout/LayoutDocument.h
parentf49e5c673280ee10a08618df69bf985bb4d5284a (diff)
downloadserenity-0db2f3cbe6a7ed9ae2e6c25d9fbb6e9f55b92796.zip
LibHTML: Add a Frame class, start fleshing out recursive layout.
Layout is initiated from Frame::layout(). It makes the document's layout node as wide as the frame, and then we'll take it from there.
Diffstat (limited to 'LibHTML/Layout/LayoutDocument.h')
-rw-r--r--LibHTML/Layout/LayoutDocument.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/LibHTML/Layout/LayoutDocument.h b/LibHTML/Layout/LayoutDocument.h
index 370834eb62..a06e9f470b 100644
--- a/LibHTML/Layout/LayoutDocument.h
+++ b/LibHTML/Layout/LayoutDocument.h
@@ -3,14 +3,13 @@
#include <LibHTML/Layout/LayoutNode.h>
#include <LibHTML/DOM/Document.h>
-class LayoutDocument : public LayoutNode {
+class LayoutDocument final : public LayoutNode {
public:
explicit LayoutDocument(const Document&);
virtual ~LayoutDocument() override;
const Document& node() const { return static_cast<const Document&>(*LayoutNode::node()); }
-
virtual const char* class_name() const override { return "LayoutDocument"; }
-
+ virtual void layout() override;
private:
};