haikuwebkit/LayoutTests/svg/animations/end-event-attribute-expecte...

3 lines
108 B
XML
Raw Permalink Normal View History

Support for SVG `beginEvent` event and `onbegin` attribute https://bugs.webkit.org/show_bug.cgi?id=150442 Patch by Antoine Quint <graouts@apple.com> on 2015-10-23 Reviewed by Dean Jackson. Source/WebCore: Add support for the SVG `beginEvent` event, which is fired as an SVG timing element enters its active interval. Also add support for the SVG `onbegin` attribute which allows the definition of a JS event listener declaratively for the SVG `beginEvent` event. Tests: svg/animations/begin-event-attribute.svg svg/animations/begin-event-script.svg svg/animations/begin-event-syncbase.svg * dom/EventNames.h: * svg/animation/SVGSMILElement.cpp: (WebCore::smilBeginEventSender): (WebCore::smilEndEventSender): (WebCore::SVGSMILElement::~SVGSMILElement): (WebCore::SVGSMILElement::parseAttribute): (WebCore::SVGSMILElement::progress): (WebCore::SVGSMILElement::dispatchPendingEvent): * svg/svgattrs.in: LayoutTests: * svg/animations/begin-event-attribute-expected.svg: Added. * svg/animations/begin-event-attribute.svg: Added. Test for the newly supported `onbegin` attribute. * svg/animations/begin-event-script-expected.svg: Added. * svg/animations/begin-event-script.svg: Added. Test for the newly supported `beginEvent` event handled via `addEventListener()`. * svg/animations/begin-event-syncbase-expected.svg: Added. * svg/animations/begin-event-syncbase.svg: Added. Test for the newly supported `beginEvent` event used as a syncbase value in a timing attribute. * svg/animations/end-event-attribute-expected.svg: * svg/animations/end-event-attribute.svg: * svg/animations/end-event-script-expected.svg: * svg/animations/end-event-script.svg: * svg/animations/end-event-syncbase-expected.svg: * svg/animations/end-event-syncbase.svg: Cleaned up tests previously added to remove unnecessary XLink namespace, DOCTYPE and processing instruction to match new tests. Canonical link: https://commits.webkit.org/168648@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-23 08:39:01 +00:00
<svg xmlns="http://www.w3.org/2000/svg">
[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
2015-10-12 21:48:32 +00:00
<rect x="0" y="0" width="50" height="50" fill="green" />
</svg>