mirror of
https://github.com/RGBCube/serenity
synced 2026-01-18 12:40:59 +00:00
The basic idea of block layout is: width, then children based on width, then height based on height of children.
15 lines
458 B
C++
15 lines
458 B
C++
#pragma once
|
|
|
|
#include <LibHTML/Layout/LayoutBlock.h>
|
|
#include <LibHTML/DOM/Document.h>
|
|
|
|
class LayoutDocument final : public LayoutBlock {
|
|
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:
|
|
};
|