mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
AK+Everywhere: Store JSON strings as String
This commit is contained in:
parent
e591636419
commit
bc54c0cdfb
Notes:
github-actions[bot]
2025-02-21 00:29:21 +00:00
Author: https://github.com/trflynn89
Commit: bc54c0cdfb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631
Reviewed-by: https://github.com/awesomekling ✅
33 changed files with 163 additions and 152 deletions
|
@ -182,7 +182,7 @@ bool media_feature_accepts_type(MediaFeatureID media_feature_id, MediaFeatureVal
|
|||
VERIFY(type.is_string());
|
||||
auto type_name = type.as_string();
|
||||
// Skip keywords.
|
||||
if (type_name[0] != '<')
|
||||
if (!type_name.starts_with('<'))
|
||||
continue;
|
||||
if (type_name == "<mq-boolean>") {
|
||||
append_value_type_switch_if_needed();
|
||||
|
@ -258,9 +258,9 @@ bool media_feature_accepts_keyword(MediaFeatureID media_feature_id, Keyword keyw
|
|||
auto& values_array = values.value();
|
||||
for (auto& keyword : values_array.values()) {
|
||||
VERIFY(keyword.is_string());
|
||||
auto keyword_name = keyword.as_string();
|
||||
auto const& keyword_name = keyword.as_string();
|
||||
// Skip types.
|
||||
if (keyword_name[0] == '<')
|
||||
if (keyword_name.starts_with('<'))
|
||||
continue;
|
||||
append_keyword_switch_if_needed();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue