mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
0db2f3cbe6
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.
15 lines
456 B
C++
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:
|
|
};
|