haikuwebkit/LayoutTests/svg/animations/begin-event-script-expected...

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">
<rect x="0" y="0" width="50" height="50" fill="green" />
</svg>