Skip to content

Commit

Permalink
[web-animations] remove the IterationCompositeEnabled flag
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=265437

Reviewed by Tim Nguyen.

This flag was enabled by default a year ago exactly and is ripe for removal.

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::create):
* Source/WebCore/animation/KeyframeEffect.idl:

Canonical link: https://commits.webkit.org/271195@main
  • Loading branch information
graouts committed Nov 28, 2023
1 parent 99f5a39 commit ddee4b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
14 changes: 0 additions & 14 deletions Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7165,20 +7165,6 @@ WebAnimationsCustomFrameRateEnabled:
WebCore:
default: false

WebAnimationsIterationCompositeEnabled:
type: bool
status: stable
category: animation
humanReadableName: "Web Animations iteration composite"
humanReadableDescription: "Support for the KeyframeEffect.iterationComposite property"
defaultValue:
WebKitLegacy:
default: true
WebKit:
default: true
WebCore:
default: true

WebArchiveDebugModeEnabled:
type: bool
status: embedder
Expand Down
4 changes: 1 addition & 3 deletions Source/WebCore/animation/KeyframeEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,7 @@ ExceptionOr<Ref<KeyframeEffect>> KeyframeEffect::create(JSGlobalObject& lexicalG
};

keyframeEffect->setComposite(keyframeEffectOptions.composite);

if (document.settings().webAnimationsIterationCompositeEnabled())
keyframeEffect->setIterationComposite(keyframeEffectOptions.iterationComposite);
keyframeEffect->setIterationComposite(keyframeEffectOptions.iterationComposite);
}
auto updateTimingResult = keyframeEffect->updateTiming(timing);
if (updateTimingResult.hasException())
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/animation/KeyframeEffect.idl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ typedef USVString CSSOMString;

attribute Element? target;
attribute CSSOMString? pseudoElement;
[EnabledBySetting=WebAnimationsIterationCompositeEnabled] attribute IterationCompositeOperation iterationComposite;
attribute IterationCompositeOperation iterationComposite;
[ImplementedAs=bindingsComposite] attribute CompositeOperation composite;
[Custom] sequence<object> getKeyframes();
[CallWith=CurrentGlobalObject&CurrentDocument, ImplementedAs=setBindingsKeyframes] undefined setKeyframes(object? keyframes);
Expand Down

0 comments on commit ddee4b2

Please sign in to comment.