mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -198,7 +198,7 @@ public:
|
|||
return *m_first_available_computed_font;
|
||||
}
|
||||
|
||||
void set_computed_font_list(NonnullRefPtr<Gfx::FontCascadeList> font_list)
|
||||
void set_computed_font_list(NonnullRefPtr<Gfx::FontCascadeList const> font_list)
|
||||
{
|
||||
m_font_list = move(font_list);
|
||||
// https://drafts.csswg.org/css-fonts/#first-available-font
|
||||
|
@ -251,8 +251,8 @@ private:
|
|||
HashMap<PropertyID, NonnullRefPtr<CSSStyleValue const>> m_animated_property_values;
|
||||
|
||||
int m_math_depth { InitialValues::math_depth() };
|
||||
RefPtr<Gfx::FontCascadeList> m_font_list;
|
||||
RefPtr<Gfx::Font> m_first_available_computed_font;
|
||||
RefPtr<Gfx::FontCascadeList const> m_font_list;
|
||||
RefPtr<Gfx::Font const> m_first_available_computed_font;
|
||||
|
||||
Optional<CSSPixels> m_line_height;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue