[webkit-changes] [WebKit/WebKit] 91d257: [web-animations] keyframes should be recomputed wh...

Antoine Quint noreply at github.com
Wed Feb 1 23:20:12 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 91d257012a7475b808814fea435ad36d1bf8043f
      https://github.com/WebKit/WebKit/commit/91d257012a7475b808814fea435ad36d1bf8043f
  Author: Antoine Quint <graouts at webkit.org>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/fontWeight-expected.txt
    M Source/WebCore/animation/KeyframeEffect.cpp
    M Source/WebCore/animation/KeyframeEffect.h
    M Source/WebCore/animation/KeyframeEffectStack.cpp
    M Source/WebCore/style/StyleResolver.cpp
    M Source/WebCore/style/StyleResolver.h

  Log Message:
  -----------
  [web-animations] keyframes should be recomputed when "bolder" or "lighter" is used on a "font-weight" property
https://bugs.webkit.org/show_bug.cgi?id=251493

Reviewed by Antti Koivisto.

Keyframes can set the "font-weight" property to "bolder" or "lighter". When such values are used, we
recompute keyframes if the inherited "font-weight" value changes while an animation is active.

* LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/fontWeight-expected.txt:
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::updateBlendingKeyframes):
(WebCore::KeyframeEffect::computeCSSAnimationBlendingKeyframes):
* Source/WebCore/animation/KeyframeEffect.h:
(WebCore::KeyframeEffect::hasRelativeFontWeight const):
* Source/WebCore/animation/KeyframeEffectStack.cpp:
(WebCore::KeyframeEffectStack::applyKeyframeEffects):
* Source/WebCore/style/StyleResolver.cpp:
(WebCore::Style::Resolver::keyframeStylesForAnimation):
* Source/WebCore/style/StyleResolver.h:

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




More information about the webkit-changes mailing list