mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +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
|
@ -29,8 +29,8 @@ public:
|
|||
callback(font);
|
||||
}
|
||||
|
||||
void add(NonnullRefPtr<Font> font);
|
||||
void add(NonnullRefPtr<Font> font, Vector<UnicodeRange> unicode_ranges);
|
||||
void add(NonnullRefPtr<Font const> font);
|
||||
void add(NonnullRefPtr<Font const> font, Vector<UnicodeRange> unicode_ranges);
|
||||
|
||||
void extend(FontCascadeList const& other);
|
||||
|
||||
|
@ -39,7 +39,7 @@ public:
|
|||
bool equals(FontCascadeList const& other) const;
|
||||
|
||||
struct Entry {
|
||||
NonnullRefPtr<Font> font;
|
||||
NonnullRefPtr<Font const> font;
|
||||
Optional<Vector<UnicodeRange>> unicode_ranges;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue