mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
LibWeb: Avoid slicing struct in KeyframeEffect::construct_impl
This commit is contained in:
parent
7411f66fcf
commit
a27dd03dcc
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<KeyframeEffect>> KeyframeEffect::construct_
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4. Let timing input be the result corresponding to the first matching condition from below.
|
// 4. Let timing input be the result corresponding to the first matching condition from below.
|
||||||
EffectTiming timing_input;
|
KeyframeEffectOptions timing_input;
|
||||||
|
|
||||||
// If options is a KeyframeEffectOptions object,
|
// If options is a KeyframeEffectOptions object,
|
||||||
if (options.has<KeyframeEffectOptions>()) {
|
if (options.has<KeyframeEffectOptions>()) {
|
||||||
|
@ -60,7 +60,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<KeyframeEffect>> KeyframeEffect::construct_
|
||||||
else {
|
else {
|
||||||
// Let timing input be a new EffectTiming object with all members set to their default values and duration set
|
// Let timing input be a new EffectTiming object with all members set to their default values and duration set
|
||||||
// to options.
|
// to options.
|
||||||
timing_input = { .duration = options.get<double>() };
|
timing_input.duration = options.get<double>();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 5. Call the procedure to update the timing properties of an animation effect of effect from timing input.
|
// 5. Call the procedure to update the timing properties of an animation effect of effect from timing input.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue