mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Use FlyString for local font sources
The next commit will make it so we always have a FlyString, so this lets us keep using it instead of turning it into a String.
This commit is contained in:
parent
f8536fc48a
commit
93a2c9946f
Notes:
github-actions[bot]
2025-03-25 07:55:01 +00:00
Author: https://github.com/AtkinsSJ
Commit: 93a2c9946f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4073
4 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ namespace Web::CSS {
|
|||
class ParsedFontFace {
|
||||
public:
|
||||
struct Source {
|
||||
Variant<String, URL::URL> local_or_url;
|
||||
Variant<FlyString, URL::URL> local_or_url;
|
||||
// FIXME: Do we need to keep this around, or is it only needed to discard unwanted formats during parsing?
|
||||
Optional<FlyString> format;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue