mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Extract MediaType to/from_string() logic into functions
This commit is contained in:
parent
1f114eaebe
commit
28278efafb
Notes:
sideshowbarker
2024-07-17 11:28:53 +09:00
Author: https://github.com/AtkinsSJ
Commit: 28278efafb
Pull-request: https://github.com/SerenityOS/serenity/pull/13824
3 changed files with 62 additions and 57 deletions
|
@ -258,6 +258,9 @@ String serialize_a_media_query_list(NonnullRefPtrVector<MediaQuery> const&);
|
|||
|
||||
bool is_media_feature_name(StringView name);
|
||||
|
||||
Optional<MediaQuery::MediaType> media_type_from_string(StringView);
|
||||
StringView to_string(MediaQuery::MediaType);
|
||||
|
||||
}
|
||||
|
||||
namespace AK {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue