mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibGfx+LibWeb: Store Typeface and Font-related types in RefPtr to const
This commit is contained in:
parent
ffd0259bef
commit
be2dd91289
Notes:
github-actions[bot]
2025-04-16 16:44:15 +00:00
Author: https://github.com/ADKaster
Commit: be2dd91289
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4362
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Hendiadyoin1
13 changed files with 28 additions and 28 deletions
|
@ -44,7 +44,7 @@ public:
|
|||
Rtl,
|
||||
};
|
||||
|
||||
GlyphRun(Vector<DrawGlyph>&& glyphs, NonnullRefPtr<Font> font, TextType text_type, float width)
|
||||
GlyphRun(Vector<DrawGlyph>&& glyphs, NonnullRefPtr<Font const> font, TextType text_type, float width)
|
||||
: m_glyphs(move(glyphs))
|
||||
, m_font(move(font))
|
||||
, m_text_type(text_type)
|
||||
|
@ -63,7 +63,7 @@ public:
|
|||
|
||||
private:
|
||||
Vector<DrawGlyph> m_glyphs;
|
||||
NonnullRefPtr<Font> m_font;
|
||||
NonnullRefPtr<Font const> m_font;
|
||||
TextType m_text_type;
|
||||
float m_width { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue