1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-17 12:40:59 +00:00
serenity/LibHTML/Layout/LayoutBlock.h
Andreas Kling c7cf6f00fc LibHTML: Let the layout tree own the style tree.
Each layout node is now constructed with an owning back-pointer to the style
tree node that originated it.
2019-07-03 07:19:29 +02:00

21 lines
447 B
C++

#pragma once
#include <LibHTML/Layout/LayoutNode.h>
class Element;
class LayoutBlock : public LayoutNode {
public:
LayoutBlock(const Node&, const StyledNode&);
virtual ~LayoutBlock() override;
virtual const char* class_name() const override { return "LayoutBlock"; }
virtual void layout() override;
private:
virtual bool is_block() const override { return true; }
void compute_width();
void compute_height();
};