Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[SVG] Handle endEvent for svg animations
https://bugs.webkit.org/show_bug.cgi?id=121587 Patch by Antoine Quint <graouts@apple.com> on 2015-10-12 Reviewed by Dean Jackson. Source/WebCore: Add support for the "endEvent" SVG event triggered when an animation completes, as specified in http://www.w3.org/TR/SMIL3/smil-timing.html#q135. This event doesn't bubble and can't be canceled. Added test coverage for the event through the DOM Events API as well as the declarative SMIL Animation syntax. Adapted from a Chromium patch by pavan.e@samsung.com https://chromium.googlesource.com/chromium/blink/+/4d415ca0268231aa80e3552fe21bf3480a6978f8 Tests: svg/animations/end-event-declarative-expected.svg svg/animations/end-event-declarative.svg svg/animations/end-event-script-expected.svg svg/animations/end-event-script.svg * svg/animation/SMILTimeContainer.cpp: (WebCore::SMILTimeContainer::updateAnimations): * svg/animation/SVGSMILElement.cpp: (WebCore::smilEndEventSender): (WebCore::SVGSMILElement::~SVGSMILElement): (WebCore::SVGSMILElement::progress): (WebCore::SVGSMILElement::dispatchPendingEvent): * svg/animation/SVGSMILElement.h: (WebCore::SVGSMILElement::hasConditionsConnected): LayoutTests: Tests for the "endEvent" event for SVG animations. * svg/animations/end-event-declarative-expected.svg: Added. * svg/animations/end-event-declarative.svg: Added. * svg/animations/end-event-script-expected.svg: Added. * svg/animations/end-event-script.svg: Added. Canonical link: https://commits.webkit.org/168177@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
53beb1b
commit 72f9fb5
Showing
9 changed files
with
135 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
LayoutTests/svg/animations/end-event-declarative-expected.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters