1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:35:08 +00:00

LibHTML: Implement LayoutText

This commit is contained in:
Sergey Bugaev 2019-09-25 12:36:44 +03:00 committed by Andreas Kling
parent 9f8d776c70
commit 93003bfda1
4 changed files with 190 additions and 4 deletions

View file

@ -3,6 +3,8 @@
#include <LibHTML/DOM/Text.h>
#include <LibHTML/Layout/LayoutNode.h>
class Font;
class LayoutText : public LayoutNode {
public:
LayoutText(const Text&, StyleProperties&&);
@ -24,7 +26,9 @@ public:
const Vector<Run>& runs() const { return m_runs; }
private:
void load_font();
void compute_runs();
Vector<Run> m_runs;
RefPtr<Font> m_font;
};