1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 08:07:45 +00:00

LibHTML: Create anonymous blocks around inline children of blocks.

This commit is contained in:
Andreas Kling 2019-07-08 17:42:23 +02:00
parent 2caec95d30
commit fc127eb769
9 changed files with 33 additions and 17 deletions

View file

@ -6,13 +6,15 @@ class Element;
class LayoutBlock : public LayoutNode {
public:
LayoutBlock(const Node&, const StyledNode&);
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; }