mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:35:08 +00:00
LibHTML: Implement LayoutText
This commit is contained in:
parent
9f8d776c70
commit
93003bfda1
4 changed files with 190 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue