1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 09:45:06 +00:00
serenity/Libraries/LibHTML/Layout/LayoutBlock.h
Andreas Kling fc43cf929d LibHTML: Implement basic block height computation
..and add vertical box properties to the layout tree dumps.
2019-08-18 08:39:52 +02:00

24 lines
528 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;
virtual LayoutNode& inline_wrapper() override;
private:
virtual bool is_block() const override { return true; }
void compute_width();
void compute_position();
void compute_height();
};