mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
LibWeb: Use camelCase for JS keyframe objects
This commit is contained in:
parent
74840de7fc
commit
37ee45db3d
Notes:
sideshowbarker
2024-07-17 05:02:35 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/37ee45db3d Pull-request: https://github.com/SerenityOS/serenity/pull/24530
@ -835,7 +835,7 @@ WebIDL::ExceptionOr<JS::MarkedVector<JS::Object*>> KeyframeEffect::get_keyframes
|
|||||||
|
|
||||||
for (auto const& [id, value] : keyframe.parsed_properties()) {
|
for (auto const& [id, value] : keyframe.parsed_properties()) {
|
||||||
auto value_string = JS::PrimitiveString::create(vm, value->to_string());
|
auto value_string = JS::PrimitiveString::create(vm, value->to_string());
|
||||||
TRY(object->set(JS::PropertyKey(DeprecatedFlyString(CSS::string_from_property_id(id))), value_string, ShouldThrowExceptions::Yes));
|
TRY(object->set(JS::PropertyKey(DeprecatedFlyString(CSS::camel_case_string_from_property_id(id))), value_string, ShouldThrowExceptions::Yes));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_keyframe_objects.append(object);
|
m_keyframe_objects.append(object);
|
||||||
|
Loading…
Reference in New Issue
Block a user