[webkit-changes] [WebKit/WebKit] f9880c: [scroll-animations] Have named timeline code use S...

Nikos Mouchtaris noreply at github.com
Wed Feb 5 21:27:56 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f9880cf8ee2c4ddb9e6a5e7f91ff67a1ab34de31
      https://github.com/WebKit/WebKit/commit/f9880cf8ee2c4ddb9e6a5e7f91ff67a1ab34de31
  Author: Nikolaos Mouchtaris <nmouchtaris at apple.com>
  Date:   2025-02-05 (Wed, 05 Feb 2025)

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/pseudo-on-scroller-named-timeline-expected.txt
    A LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/pseudo-on-scroller-named-timeline.html
    M Source/WebCore/animation/AnimationTimelinesController.cpp
    M Source/WebCore/animation/AnimationTimelinesController.h
    M Source/WebCore/animation/CSSAnimation.cpp
    M Source/WebCore/animation/ScrollTimeline.h
    M Source/WebCore/animation/ViewTimeline.h
    M Source/WebCore/style/StyleTreeResolver.cpp
    M Source/WebCore/style/Styleable.cpp
    M Source/WebCore/style/Styleable.h

  Log Message:
  -----------
  [scroll-animations] Have named timeline code use Styleable
https://bugs.webkit.org/show_bug.cgi?id=286781
rdar://143926206

Reviewed by Antoine Quint.

Have named timeline code use Styleable.

* Source/WebCore/animation/AnimationTimelinesController.cpp:
(WebCore::originatingElement):
(WebCore::originatingStyleableIncludingTimelineScope):
(WebCore::originatingElementExcludingTimelineScope):
(WebCore::AnimationTimelinesController::relatedTimelineScopeElements):
(WebCore::containsRenderer):
(WebCore::determineTreeOrder):
(WebCore::determineTimelineForElement):
(WebCore::AnimationTimelinesController::updateTimelineForTimelineScope):
(WebCore::AnimationTimelinesController::registerNamedScrollTimeline):
(WebCore::AnimationTimelinesController::attachPendingOperations):
(WebCore::AnimationTimelinesController::registerNamedViewTimeline):
(WebCore::AnimationTimelinesController::unregisterNamedTimeline):
(WebCore::AnimationTimelinesController::setTimelineForName):
(WebCore::updateTimelinesForTimelineScope):
(WebCore::AnimationTimelinesController::updateNamedTimelineMapForTimelineScope):
(WebCore::AnimationTimelinesController::unregisterNamedTimelinesAssociatedWithElement):
(WebCore::originatingElementIncludingTimelineScope): Deleted.
* Source/WebCore/animation/AnimationTimelinesController.h:
* Source/WebCore/animation/CSSAnimation.cpp:
(WebCore::CSSAnimation::syncStyleOriginatedTimeline):
* Source/WebCore/animation/ScrollTimeline.cpp:
(WebCore::ScrollTimeline::setTimelineScopeStyleable):
(WebCore::ScrollTimeline::setTimelineScopeElement): Deleted.
* Source/WebCore/animation/ScrollTimeline.h:
(WebCore::ScrollTimeline::sourceStyleable const):
(WebCore::ScrollTimeline::timelineScopeDeclaredStyleable const):
(WebCore::ScrollTimeline::clearTimelineScopeDeclaredStyleable):
(WebCore::ScrollTimeline::timelineScopeDeclaredElement const): Deleted.
(WebCore::ScrollTimeline::clearTimelineScopeDeclaredElement): Deleted.
* Source/WebCore/animation/ViewTimeline.h:
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::createAnimatedElementUpdate):
* Source/WebCore/style/Styleable.cpp:
(WebCore::Styleable::cancelStyleOriginatedAnimations const):
(WebCore::Styleable::updateCSSScrollTimelines const):
(WebCore::Styleable::updateCSSViewTimelines const):

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



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


More information about the webkit-changes mailing list