Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e3d89dcbb53baaa501b9adbcf1ce470b2e176412
      
https://github.com/WebKit/WebKit/commit/e3d89dcbb53baaa501b9adbcf1ce470b2e176412
  Author: Antoine Quint <[email protected]>
  Date:   2023-03-03 (Fri, 03 Mar 2023)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    A Source/WebCore/animation/AcceleratedTimeline.cpp
    A Source/WebCore/animation/AcceleratedTimeline.h
    M Source/WebCore/animation/DocumentTimeline.cpp
    M Source/WebCore/animation/KeyframeEffect.cpp
    M Source/WebCore/animation/KeyframeEffect.h
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h

  Log Message:
  -----------
  [web-animations] add a dedicated timeline object for accelerated effects
https://bugs.webkit.org/show_bug.cgi?id=253312

Reviewed by Dean Jackson.

Add a new AcceleratedTimeline class on which elements targeted by effects 
animating
accelerated properties are registered. Then as the document's timeline is 
updated,
we go through these registered elements and update the accelerated effect stack 
for
them through their RenderLayerBacking.

* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/animation/AcceleratedTimeline.cpp: Added.
(WebCore::AcceleratedTimeline::AcceleratedTimeline):
(WebCore::AcceleratedTimeline::updateEffectStacks):
(WebCore::AcceleratedTimeline::updateEffectStackForTarget):
* Source/WebCore/animation/AcceleratedTimeline.h: Added.
(WebCore::AcceleratedTimeline::timeOrigin const):
* Source/WebCore/animation/DocumentTimeline.cpp:
(WebCore::DocumentTimeline::applyPendingAcceleratedAnimations):
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::updateAssociatedThreadedEffectStack):
* Source/WebCore/animation/KeyframeEffect.h:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::acceleratedTimeline):
* Source/WebCore/dom/Document.h:
(WebCore::Document::existingAcceleratedTimeline const):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to