[webkit-changes] [WebKit/WebKit] 43ea87: Avoid doing event-related work for CSS transition ...

Chris Dumez noreply at github.com
Sat Mar 25 17:48:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 43ea8744bc6065aad7ae5988e32d31d253905e5f
      https://github.com/WebKit/WebKit/commit/43ea8744bc6065aad7ae5988e32d31d253905e5f
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-03-25 (Sat, 25 Mar 2023)

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/transition-events-with-document-change-expected.txt
    A LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/transition-events-with-document-change.html
    M Source/WebCore/animation/DeclarativeAnimation.cpp
    M Source/WebCore/animation/DocumentTimeline.cpp
    M Source/WebCore/animation/WebAnimation.cpp
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/dom/EventNames.h

  Log Message:
  -----------
  Avoid doing event-related work for CSS transition & animation playback events when no event listener is registered
https://bugs.webkit.org/show_bug.cgi?id=254454
rdar://107077986

Reviewed by Antoine Quint.

Avoid doing event-related work for CSS transition & animation playback events
when no event listener is registered for these.

We should probably do the same for CSS Animation events. I'll evaluate these
separately and follow-up.

* LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/transition-events-with-document-change-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/transition-events-with-document-change.html: Added.
* Source/WebCore/animation/DeclarativeAnimation.cpp:
(WebCore::DeclarativeAnimation::invalidateDOMEvents):
* Source/WebCore/animation/DocumentTimeline.cpp:
(WebCore::DocumentTimeline::removeReplacedAnimations):
* Source/WebCore/animation/WebAnimation.cpp:
(WebCore::WebAnimation::cancel):
(WebCore::WebAnimation::finishNotificationSteps):
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::addListenerTypeIfNeeded):
* Source/WebCore/dom/Document.h:
* Source/WebCore/dom/EventNames.h:
(WebCore::EventNames::isCSSTransitionEventType const):

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




More information about the webkit-changes mailing list