From 0db2f3cbe6a7ed9ae2e6c25d9fbb6e9f55b92796 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 16 Jun 2019 21:35:03 +0200 Subject: 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. --- LibHTML/Layout/LayoutDocument.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'LibHTML/Layout/LayoutDocument.h') 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 #include -class LayoutDocument : public LayoutNode { +class LayoutDocument final : public LayoutNode { public: explicit LayoutDocument(const Document&); virtual ~LayoutDocument() override; const Document& node() const { return static_cast(*LayoutNode::node()); } - virtual const char* class_name() const override { return "LayoutDocument"; } - + virtual void layout() override; private: }; -- cgit v1.2.3