serenity/LibHTML/Layout/LayoutDocument.h
Andreas Kling 0db2f3cbe6 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.
2019-06-16 21:35:03 +02:00

15 lines
456 B
C++

#pragma once
#include <LibHTML/Layout/LayoutNode.h>
#include <LibHTML/DOM/Document.h>
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:
};