mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-28 21:21:55 +00:00
LibHTML: Implement LayoutText
This commit is contained in:
parent
9f8d776c70
commit
93003bfda1
Notes:
sideshowbarker
2024-07-19 11:55:53 +09:00
Author: https://github.com/bugaevc
Commit: 93003bfda1
Pull-request: https://github.com/SerenityOS/serenity/pull/609
Reviewed-by: https://github.com/awesomekling ✅
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