[webkit-changes] [WebKit/WebKit] 305495: [view-transitions] Register user agent `@keyframes...

Tim Nguyen noreply at github.com
Thu Feb 15 19:38:15 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 305495110963caa7a6ea92bf96631017d9bae4e7
      https://github.com/WebKit/WebKit/commit/305495110963caa7a6ea92bf96631017d9bae4e7
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2024-02-15 (Thu, 15 Feb 2024)

  Changed paths:
    M Source/WebCore/style/StyleResolver.cpp
    M Source/WebCore/style/StyleResolver.h
    M Source/WebCore/style/UserAgentStyle.cpp

  Log Message:
  -----------
  [view-transitions] Register user agent `@keyframes` rules
https://bugs.webkit.org/show_bug.cgi?id=269504
rdar://123033600

Reviewed by Matthieu Dubet.

Add static storage for user agent @keyframes, and use it for the viewTransitions.css stylesheet.

This is the same pattern used as `CounterStyleRegistry::userAgentCounterStyles`.

* Source/WebCore/style/StyleResolver.cpp:
(WebCore::Style::Resolver::userAgentKeyframes):
(WebCore::Style::Resolver::addUserAgentKeyframeStyle):
(WebCore::Style::Resolver::isAnimationNameValid):
(WebCore::Style::Resolver::keyframeRulesForName const):
* Source/WebCore/style/StyleResolver.h:
* Source/WebCore/style/UserAgentStyle.cpp:
(WebCore::Style::addUserAgentKeyframes):
(WebCore::Style::UserAgentStyle::ensureDefaultStyleSheetsForElement):

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




More information about the webkit-changes mailing list