mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
AK+Everywhere: Store JSON object keys as String
This commit is contained in:
Notes:
github-actions[bot]
2025-02-21 00:29:28 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/e5916364195 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631 Reviewed-by: https://github.com/awesomekling ✅
@@ -43,7 +43,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static String get_snake_case_function_name_for_css_property_name(ByteString const& name)
|
||||
static String get_snake_case_function_name_for_css_property_name(StringView name)
|
||||
{
|
||||
auto snake_case_name = snake_casify(name);
|
||||
if (snake_case_name.starts_with('_'))
|
||||
@@ -182,7 +182,7 @@ interface mixin GeneratedCSSStyleProperties {
|
||||
// For each CSS property property that is a supported CSS property and that begins with the string -webkit-,
|
||||
// the following partial interface applies where webkit-cased attribute is obtained by running the CSS property
|
||||
// to IDL attribute algorithm for property, with the lowercase first flag set.
|
||||
if (name.starts_with("-webkit-"sv)) {
|
||||
if (name.starts_with_bytes("-webkit-"sv)) {
|
||||
member_generator.set("name:webkit", css_property_to_idl_attribute(name, /* lowercase_first= */ true));
|
||||
member_generator.append(R"~~~(
|
||||
[CEReactions, LegacyNullToEmptyString, AttributeCallbackName=@name:snakecase@_webkit, ImplementedAs=@name:acceptable_cpp@] attribute CSSOMString @name:webkit@;
|
||||
|
||||
Reference in New Issue
Block a user