1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:17:34 +00:00

LibHTML: Start fleshing out a basic layout tree.

This commit is contained in:
Andreas Kling 2019-06-15 22:49:44 +02:00
parent f8a86b5164
commit 8a0e21b22b
24 changed files with 338 additions and 18 deletions

17
LibHTML/LayoutText.h Normal file
View file

@ -0,0 +1,17 @@
#pragma once
#include <LibHTML/LayoutNode.h>
#include <LibHTML/Text.h>
class LayoutText : public LayoutNode {
public:
explicit LayoutText(const Text&);
virtual ~LayoutText() override;
const Text& node() const { return static_cast<const Text&>(*LayoutNode::node()); }
virtual const char* class_name() const override { return "LayoutText"; }
virtual bool is_text() const final { return true; }
private:
};