diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2019-09-25 12:36:44 +0300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-28 18:29:42 +0200 |
commit | 93003bfda1211288a1b9720e646d7f79dfa2f77c (patch) | |
tree | 46be823af3471e495588523c6f0ada8d6ba606a6 /Libraries/LibHTML/Layout/LayoutText.h | |
parent | 9f8d776c70cb7eb15f6e5e2b4f1ca17bd55f5997 (diff) | |
download | serenity-93003bfda1211288a1b9720e646d7f79dfa2f77c.zip |
LibHTML: Implement LayoutText
Diffstat (limited to 'Libraries/LibHTML/Layout/LayoutText.h')
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutText.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutText.h b/Libraries/LibHTML/Layout/LayoutText.h index ad1e556e91..8a16237d9b 100644 --- a/Libraries/LibHTML/Layout/LayoutText.h +++ b/Libraries/LibHTML/Layout/LayoutText.h @@ -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; }; |