Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d6b900fa473cd5504b359fe60e4a26a720bfcea0
      
https://github.com/WebKit/WebKit/commit/d6b900fa473cd5504b359fe60e4a26a720bfcea0
  Author: Antti Koivisto <[email protected]>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-animations/revert-rule-keyframes-dynamic-expected.txt
    M Source/WebCore/animation/BlendingKeyframes.cpp
    M Source/WebCore/animation/BlendingKeyframes.h
    M Source/WebCore/animation/KeyframeEffect.cpp
    M Source/WebCore/style/StyleBuilder.cpp
    M Source/WebCore/style/StyleBuilderState.h
    M Source/WebCore/style/StyleResolver.cpp

  Log Message:
  -----------
  [css-cascade] Invalidate keyframes for revert-rule
https://bugs.webkit.org/show_bug.cgi?id=309343
rdar://171889390

Reviewed by Sam Weinig.

`revert-rule` makes the keyframe style depend on the parent element style.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-animations/revert-rule-keyframes-dynamic-expected.txt:
* Source/WebCore/animation/BlendingKeyframes.cpp:
(WebCore::BlendingKeyframes::updatePropertiesMetadata):
(WebCore::BlendingKeyframes::analyzeKeyframe):
* Source/WebCore/animation/BlendingKeyframes.h:
(WebCore::BlendingKeyframes::hasPropertiesWithRevertRuleOrLayer const):
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::recomputeKeyframesIfNecessary):

Recompute such keyframes when the parent style changes.

* Source/WebCore/style/StyleBuilder.cpp:
(WebCore::Style::Builder::applyProperty):
(WebCore::Style::Builder::applyCustomProperty):

Collect the use of reverts during style building.

* Source/WebCore/style/StyleBuilderState.h:
(WebCore::Style::BuilderState::hasRevertRuleOrLayerInKeyframeStyle const):
* Source/WebCore/style/StyleResolver.cpp:
(WebCore::Style::Resolver::styleForKeyframe const):

Canonical link: https://commits.webkit.org/308805@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to