mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-15 04:57:26 +00:00
The basic idea of block layout is: width, then children based on width, then height based on height of children.
16 lines
458 B
C++
16 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:
|
|
};
|