Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 305495110963caa7a6ea92bf96631017d9bae4e7
https://github.com/WebKit/WebKit/commit/305495110963caa7a6ea92bf96631017d9bae4e7
Author: Tim Nguyen <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes