<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[176423] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/176423">176423</a></dd>
<dt>Author</dt> <dd>dino@apple.com</dd>
<dt>Date</dt> <dd>2014-11-20 15:26:29 -0800 (Thu, 20 Nov 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Support unprefixed animation event types
https://bugs.webkit.org/show_bug.cgi?id=138931
&lt;rdar://problem/18943167&gt;

Reviewed by Simon Fraser.

Source/WebCore:

Tests: animations/unprefixed-events-mixed-with-prefixed.html
       animations/unprefixed-events.html

Support the unprefixed animation event names:
- animationstart (was webkitAnimationStart)
- animationiteration (was webkitAnimationIteration)
- animationend (was webkitAnimationEnd)

(Yes, event types are case sensitive and yes, this will
likely cause some head-scratching as people change content)

The approach here is to follow what transitions does:
- listener only for old event name -&gt; fire old event name
- listener for both old and new event name -&gt; fire new event name
- listener only for new event name -&gt; fire new event name

That way pages that were trying to anticipate the new event name
won't get duplicate events.

* CMakeLists.txt: Add new AnimationEvent* stuff.
* DerivedSources.make: Ditto.
* WebCore.vcxproj/WebCore.vcxproj: Ditto.
* WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
* WebCore.xcodeproj/project.pbxproj: Ditto.

* bindings/js/JSBindingsAllInOne.cpp: New files for all in one builds.
* dom/DOMAllInOne.cpp:

* dom/AnimationEvent.cpp: Added. Copied from WebKitAnimationEvent.cpp.
(WebCore::AnimationEventInit::AnimationEventInit):
(WebCore::AnimationEvent::AnimationEvent):
(WebCore::AnimationEvent::~AnimationEvent):
(WebCore::AnimationEvent::animationName):
(WebCore::AnimationEvent::elapsedTime):
(WebCore::AnimationEvent::eventInterface):
* dom/AnimationEvent.h: Added. Copied from WebKitAnimationEvent.h.
* dom/AnimationEvent.idl: Added. Copied from WebKitAnimationEvent.idl.

* dom/Document.cpp:
(WebCore::Document::addListenerTypeIfNeeded): Handle new event types.

* dom/EventNames.h: New names.
* dom/EventNames.in:

* dom/EventTarget.cpp:
(WebCore::legacyType): Provide a mapping from the new names to the older
prefixed forms.

* html/HTMLAttributeNames.in: Support the on* attributes, even though I
hate them and wish this approach would die.
* html/HTMLElement.cpp:
(WebCore::HTMLElement::populateEventNameForAttributeLocalNameMap):

* page/DOMWindow.h: New names, and constructors.
* page/DOMWindow.idl:

* page/animation/AnimationController.cpp:
(WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle): Fire new type.

* page/animation/KeyframeAnimation.cpp: Fire the new types of events.
(WebCore::KeyframeAnimation::onAnimationStart):
(WebCore::KeyframeAnimation::onAnimationIteration):
(WebCore::KeyframeAnimation::onAnimationEnd):
(WebCore::KeyframeAnimation::sendAnimationEvent):

LayoutTests:

Add a test for unprefixed animation event names, as well
as a test that ensures we don't get multiple dispatches if
we're still listening for the old events.

And for the older tests, just add the new things from the
window namespace.

* animations/unprefixed-events-expected.txt: Added.
* animations/unprefixed-events-mixed-with-prefixed-expected.txt: Added.
* animations/unprefixed-events-mixed-with-prefixed.html: Added.
* animations/unprefixed-events.html: Added.

* fast/events/event-creation-expected.txt:
* fast/events/event-creation.html:
* js/dom/constructor-length.html:
* js/dom/global-constructors-attributes-expected.txt:
* platform/efl/js/dom/constructor-length-expected.txt:
* platform/efl/js/dom/global-constructors-attributes-expected.txt:
* platform/gtk/js/dom/constructor-length-expected.txt:
* platform/gtk/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt:
* platform/mac/js/dom/constructor-length-expected.txt:
* platform/mac/js/dom/global-constructors-attributes-expected.txt:
* platform/win/js/dom/global-constructors-attributes-expected.txt:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfasteventseventcreationexpectedtxt">trunk/LayoutTests/fast/events/event-creation-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasteventseventcreationhtml">trunk/LayoutTests/fast/events/event-creation.html</a></li>
<li><a href="#trunkLayoutTestsjsdomconstructorlengthhtml">trunk/LayoutTests/js/dom/constructor-length.html</a></li>
<li><a href="#trunkLayoutTestsjsdomglobalconstructorsattributesexpectedtxt">trunk/LayoutTests/js/dom/global-constructors-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformefljsdomconstructorlengthexpectedtxt">trunk/LayoutTests/platform/efl/js/dom/constructor-length-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformefljsdomglobalconstructorsattributesexpectedtxt">trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformgtkjsdomconstructorlengthexpectedtxt">trunk/LayoutTests/platform/gtk/js/dom/constructor-length-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformgtkjsdomglobalconstructorsattributesexpectedtxt">trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacjsdomconstructorlengthexpectedtxt">trunk/LayoutTests/platform/mac/js/dom/constructor-length-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacjsdomglobalconstructorsattributesexpectedtxt">trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmavericksjsdomglobalconstructorsattributesexpectedtxt">trunk/LayoutTests/platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmountainlionjsdomglobalconstructorsattributesexpectedtxt">trunk/LayoutTests/platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformwinjsdomglobalconstructorsattributesexpectedtxt">trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcescpp">trunk/Source/WebCore/DerivedSources.cpp</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcesmake">trunk/Source/WebCore/DerivedSources.make</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxproj">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCoredomDOMAllInOnecpp">trunk/Source/WebCore/dom/DOMAllInOne.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDocumentcpp">trunk/Source/WebCore/dom/Document.cpp</a></li>
<li><a href="#trunkSourceWebCoredomEventNamesh">trunk/Source/WebCore/dom/EventNames.h</a></li>
<li><a href="#trunkSourceWebCoredomEventNamesin">trunk/Source/WebCore/dom/EventNames.in</a></li>
<li><a href="#trunkSourceWebCoredomEventTargetcpp">trunk/Source/WebCore/dom/EventTarget.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLAttributeNamesin">trunk/Source/WebCore/html/HTMLAttributeNames.in</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLElementcpp">trunk/Source/WebCore/html/HTMLElement.cpp</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowh">trunk/Source/WebCore/page/DOMWindow.h</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowidl">trunk/Source/WebCore/page/DOMWindow.idl</a></li>
<li><a href="#trunkSourceWebCorepageanimationAnimationControllercpp">trunk/Source/WebCore/page/animation/AnimationController.cpp</a></li>
<li><a href="#trunkSourceWebCorepageanimationKeyframeAnimationcpp">trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsanimationsunprefixedeventsexpectedtxt">trunk/LayoutTests/animations/unprefixed-events-expected.txt</a></li>
<li><a href="#trunkLayoutTestsanimationsunprefixedeventsmixedwithprefixedexpectedtxt">trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed-expected.txt</a></li>
<li><a href="#trunkLayoutTestsanimationsunprefixedeventsmixedwithprefixedhtml">trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed.html</a></li>
<li><a href="#trunkLayoutTestsanimationsunprefixedeventshtml">trunk/LayoutTests/animations/unprefixed-events.html</a></li>
<li><a href="#trunkSourceWebCoredomAnimationEventcpp">trunk/Source/WebCore/dom/AnimationEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomAnimationEventh">trunk/Source/WebCore/dom/AnimationEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomAnimationEventidl">trunk/Source/WebCore/dom/AnimationEvent.idl</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/ChangeLog        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -1,3 +1,38 @@
</span><ins>+2014-11-20  Dean Jackson  &lt;dino@apple.com&gt;
+
+        Support unprefixed animation event types
+        https://bugs.webkit.org/show_bug.cgi?id=138931
+        &lt;rdar://problem/18943167&gt;
+
+        Reviewed by Simon Fraser.
+
+        Add a test for unprefixed animation event names, as well
+        as a test that ensures we don't get multiple dispatches if
+        we're still listening for the old events.
+
+        And for the older tests, just add the new things from the
+        window namespace.
+
+        * animations/unprefixed-events-expected.txt: Added.
+        * animations/unprefixed-events-mixed-with-prefixed-expected.txt: Added.
+        * animations/unprefixed-events-mixed-with-prefixed.html: Added.
+        * animations/unprefixed-events.html: Added.
+
+        * fast/events/event-creation-expected.txt:
+        * fast/events/event-creation.html:
+        * js/dom/constructor-length.html:
+        * js/dom/global-constructors-attributes-expected.txt:
+        * platform/efl/js/dom/constructor-length-expected.txt:
+        * platform/efl/js/dom/global-constructors-attributes-expected.txt:
+        * platform/gtk/js/dom/constructor-length-expected.txt:
+        * platform/gtk/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac/js/dom/constructor-length-expected.txt:
+        * platform/mac/js/dom/global-constructors-attributes-expected.txt:
+        * platform/win/js/dom/global-constructors-attributes-expected.txt:
+
+
</ins><span class="cx"> 2014-11-20  Daniel Bates  &lt;dabates@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [iOS] Update TestExpectation file for LayoutTests/canvas tests
</span></span></pre></div>
<a id="trunkLayoutTestsanimationsunprefixedeventsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/animations/unprefixed-events-expected.txt (0 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/animations/unprefixed-events-expected.txt                                (rev 0)
+++ trunk/LayoutTests/animations/unprefixed-events-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This test performs two iterations of an animation. The animation should fire all three events (start, iteration, end).
+animationstart: move
+animationiteration: move
+animationend: move
+
</ins><span class="cx">Property changes on: trunk/LayoutTests/animations/unprefixed-events-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsanimationsunprefixedeventsmixedwithprefixedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed-expected.txt (0 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed-expected.txt                                (rev 0)
+++ trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This test performs two iterations of an animation. The animation should fire all three events (start, iteration, end).
+animationstart: move
+animationiteration: move
+animationend: move
+
</ins><span class="cx">Property changes on: trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsanimationsunprefixedeventsmixedwithprefixedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed.html (0 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed.html                                (rev 0)
+++ trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed.html        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -0,0 +1,67 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+  &lt;title&gt;Test mixing prefixed and unprefixed events&lt;/title&gt;
+  &lt;style&gt;
+    #box {
+        position: absolute;
+        left: 0;
+        top: 200px;
+        height: 100px;
+        width: 100px;
+        background-color: blue;
+        animation-duration: 100ms;
+        animation-iteration-count: 2;
+    }
+    @keyframes move {
+        from { left: 0px; }
+        to   { left: 100px; }
+    }
+    &lt;/style&gt;
+    &lt;script&gt;
+
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+}
+
+var results;
+
+function dump(msg) {
+    results.innerHTML += msg + &quot;&lt;br/&gt;&quot;;
+}
+
+function handleEvent(event) {
+    dump(event.type + &quot;: &quot; + event.animationName);
+    if (event.type == &quot;animationend&quot; &amp;&amp; window.testRunner)
+        testRunner.notifyDone();
+}
+
+function handlePrefixedEvent(event) {
+    dump(&quot;FAIL -- &quot; + event.type + &quot;: &quot; + event.animationName);
+}
+
+function init() {
+    results = document.getElementById(&quot;results&quot;);
+    var box = document.getElementById(&quot;box&quot;);
+    box.addEventListener(&quot;animationstart&quot;, handleEvent, false);
+    box.addEventListener(&quot;animationiteration&quot;, handleEvent, false);
+    box.addEventListener(&quot;animationend&quot;, handleEvent, false);
+    box.addEventListener(&quot;webkitAnimationStart&quot;, handlePrefixedEvent, false);
+    box.addEventListener(&quot;webkitAnimationIteration&quot;, handlePrefixedEvent, false);
+    box.addEventListener(&quot;webkitAnimationEnd&quot;, handlePrefixedEvent, false);
+    box.style.animationName = &quot;move&quot;;
+}
+
+window.addEventListener(&quot;load&quot;, init, false);
+
+  &lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+This test performs two iterations of an animation. The animation should fire all three events (start, iteration, end).
+&lt;div id=&quot;box&quot;&gt;
+&lt;/div&gt;
+&lt;div id=&quot;results&quot;&gt;
+&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">Property changes on: trunk/LayoutTests/animations/unprefixed-events-mixed-with-prefixed.html
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsanimationsunprefixedeventshtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/animations/unprefixed-events.html (0 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/animations/unprefixed-events.html                                (rev 0)
+++ trunk/LayoutTests/animations/unprefixed-events.html        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -0,0 +1,60 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+  &lt;title&gt;Unprefixed animation events test&lt;/title&gt;
+  &lt;style&gt;
+    #box {
+        position: absolute;
+        left: 0;
+        top: 200px;
+        height: 100px;
+        width: 100px;
+        background-color: blue;
+        animation-duration: 100ms;
+        animation-iteration-count: 2;
+    }
+    @keyframes move {
+        from { left: 0px; }
+        to   { left: 100px; }
+    }
+    &lt;/style&gt;
+    &lt;script&gt;
+
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+}
+
+var results;
+
+function dump(msg) {
+    results.innerHTML += msg + &quot;&lt;br/&gt;&quot;;
+}
+
+function handleEvent(event) {
+    dump(event.type + &quot;: &quot; + event.animationName);
+    if (event.type == &quot;animationend&quot; &amp;&amp; window.testRunner)
+        testRunner.notifyDone();
+}
+
+function init() {
+    results = document.getElementById(&quot;results&quot;);
+    var box = document.getElementById(&quot;box&quot;);
+    box.addEventListener(&quot;animationstart&quot;, handleEvent, false);
+    box.addEventListener(&quot;animationiteration&quot;, handleEvent, false);
+    box.addEventListener(&quot;animationend&quot;, handleEvent, false);
+    box.style.animationName = &quot;move&quot;;
+}
+
+window.addEventListener(&quot;load&quot;, init, false);
+
+  &lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+This test performs two iterations of an animation. The animation should fire all three events (start, iteration, end).
+&lt;div id=&quot;box&quot;&gt;
+&lt;/div&gt;
+&lt;div id=&quot;results&quot;&gt;
+&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">Property changes on: trunk/LayoutTests/animations/unprefixed-events.html
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfasteventseventcreationexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/events/event-creation-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/event-creation-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/fast/events/event-creation-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -9,6 +9,9 @@
</span><span class="cx"> PASS document.createEvent('Events').constructor === window.Event is true
</span><span class="cx"> PASS document.createEvent('HTMLEvents') instanceof window.Event is true
</span><span class="cx"> PASS document.createEvent('HTMLEvents').constructor === window.Event is true
</span><ins>+PASS document.createEvent('AnimationEvent') instanceof window.AnimationEvent is true
+PASS document.createEvent('AnimationEvent') instanceof window.Event is true
+PASS document.createEvent('AnimationEvent').constructor === window.AnimationEvent is true
</ins><span class="cx"> PASS document.createEvent('BeforeLoadEvent') instanceof window.BeforeLoadEvent is true
</span><span class="cx"> PASS document.createEvent('BeforeLoadEvent') instanceof window.Event is true
</span><span class="cx"> PASS document.createEvent('BeforeLoadEvent').constructor === window.BeforeLoadEvent is true
</span></span></pre></div>
<a id="trunkLayoutTestsfasteventseventcreationhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/events/event-creation.html (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/event-creation.html        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/fast/events/event-creation.html        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -17,6 +17,11 @@
</span><span class="cx">     shouldBeTrue(&quot;document.createEvent('HTMLEvents') instanceof window.Event&quot;);
</span><span class="cx">     shouldBeTrue(&quot;document.createEvent('HTMLEvents').constructor === window.Event&quot;);
</span><span class="cx"> 
</span><ins>+    // AnimationEvent
+    shouldBeTrue(&quot;document.createEvent('AnimationEvent') instanceof window.AnimationEvent&quot;);
+    shouldBeTrue(&quot;document.createEvent('AnimationEvent') instanceof window.Event&quot;);
+    shouldBeTrue(&quot;document.createEvent('AnimationEvent').constructor === window.AnimationEvent&quot;);
+
</ins><span class="cx">     // BeforeLoadEvent
</span><span class="cx">     shouldBeTrue(&quot;document.createEvent('BeforeLoadEvent') instanceof window.BeforeLoadEvent&quot;);
</span><span class="cx">     shouldBeTrue(&quot;document.createEvent('BeforeLoadEvent') instanceof window.Event&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsjsdomconstructorlengthhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/dom/constructor-length.html (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/dom/constructor-length.html        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/js/dom/constructor-length.html        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -10,6 +10,7 @@
</span><span class="cx"> shouldBe('ArrayBuffer.length', '1');
</span><span class="cx"> shouldBe('AudioContext.length', '0');
</span><span class="cx"> shouldBe('AutocompleteErrorEvent.length', '1');
</span><ins>+shouldBe('AnimationEvent.length', '1');
</ins><span class="cx"> shouldBe('BeforeLoadEvent.length', '1');
</span><span class="cx"> shouldBe('Blob.length', '0');
</span><span class="cx"> shouldBe('CloseEvent.length', '1');
</span></span></pre></div>
<a id="trunkLayoutTestsjsdomglobalconstructorsattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/dom/global-constructors-attributes-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -8,6 +8,11 @@
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').hasOwnProperty('set') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').enumerable is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').configurable is true
</span><ins>+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').value is AnimationEvent
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').configurable is true
</ins><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').value is Attr
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('get') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('set') is false
</span></span></pre></div>
<a id="trunkLayoutTestsplatformefljsdomconstructorlengthexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/efl/js/dom/constructor-length-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/efl/js/dom/constructor-length-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/platform/efl/js/dom/constructor-length-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -6,6 +6,7 @@
</span><span class="cx"> PASS ArrayBuffer.length is 1
</span><span class="cx"> FAIL AudioContext.length should be 0. Threw exception ReferenceError: Can't find variable: AudioContext
</span><span class="cx"> FAIL AutocompleteErrorEvent.length should be 1. Threw exception ReferenceError: Can't find variable: AutocompleteErrorEvent
</span><ins>+PASS AnimationEvent.length is 1
</ins><span class="cx"> PASS BeforeLoadEvent.length is 1
</span><span class="cx"> PASS Blob.length is 0
</span><span class="cx"> PASS CloseEvent.length is 1
</span></span></pre></div>
<a id="trunkLayoutTestsplatformefljsdomglobalconstructorsattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -8,6 +8,11 @@
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').hasOwnProperty('set') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').enumerable is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').configurable is true
</span><ins>+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').value is AnimationEvent
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').configurable is true
</ins><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').value is Attr
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('get') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('set') is false
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkjsdomconstructorlengthexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/gtk/js/dom/constructor-length-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/js/dom/constructor-length-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/platform/gtk/js/dom/constructor-length-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -6,6 +6,7 @@
</span><span class="cx"> PASS ArrayBuffer.length is 1
</span><span class="cx"> FAIL AudioContext.length should be 0. Threw exception ReferenceError: Can't find variable: AudioContext
</span><span class="cx"> FAIL AutocompleteErrorEvent.length should be 1. Threw exception ReferenceError: Can't find variable: AutocompleteErrorEvent
</span><ins>+PASS AnimationEvent.length is 1
</ins><span class="cx"> PASS BeforeLoadEvent.length is 1
</span><span class="cx"> PASS Blob.length is 0
</span><span class="cx"> PASS CloseEvent.length is 1
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkjsdomglobalconstructorsattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -8,6 +8,11 @@
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').hasOwnProperty('set') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').enumerable is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').configurable is true
</span><ins>+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').value is AnimationEvent
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').configurable is true
</ins><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').value is Attr
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('get') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('set') is false
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacjsdomconstructorlengthexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/js/dom/constructor-length-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/js/dom/constructor-length-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/platform/mac/js/dom/constructor-length-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -6,6 +6,7 @@
</span><span class="cx"> PASS ArrayBuffer.length is 1
</span><span class="cx"> FAIL AudioContext.length should be 0. Threw exception ReferenceError: Can't find variable: AudioContext
</span><span class="cx"> FAIL AutocompleteErrorEvent.length should be 1. Threw exception ReferenceError: Can't find variable: AutocompleteErrorEvent
</span><ins>+PASS AnimationEvent.length is 1
</ins><span class="cx"> PASS BeforeLoadEvent.length is 1
</span><span class="cx"> PASS Blob.length is 0
</span><span class="cx"> PASS CloseEvent.length is 1
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacjsdomglobalconstructorsattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -8,6 +8,11 @@
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').hasOwnProperty('set') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').enumerable is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').configurable is true
</span><ins>+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').value is AnimationEvent
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').configurable is true
</ins><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').value is Attr
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('get') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('set') is false
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmavericksjsdomglobalconstructorsattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -8,6 +8,11 @@
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').hasOwnProperty('set') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').enumerable is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').configurable is true
</span><ins>+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').value is AnimationEvent
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').configurable is true
</ins><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').value is Attr
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('get') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('set') is false
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmountainlionjsdomglobalconstructorsattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/platform/mac-mountainlion/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -8,6 +8,11 @@
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').hasOwnProperty('set') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').enumerable is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'AnalyserNode').configurable is true
</span><ins>+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').value is AnimationEvent
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').configurable is true
</ins><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').value is Attr
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('get') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('set') is false
</span></span></pre></div>
<a id="trunkLayoutTestsplatformwinjsdomglobalconstructorsattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -3,6 +3,11 @@
</span><span class="cx"> On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').value is AnimationEvent
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'AnimationEvent').configurable is true
</ins><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').value is Attr
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('get') is false
</span><span class="cx"> PASS Object.getOwnPropertyDescriptor(global, 'Attr').hasOwnProperty('set') is false
</span></span></pre></div>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/CMakeLists.txt        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -357,6 +357,7 @@
</span><span class="cx">     css/WebKitCSSTransformValue.idl
</span><span class="cx">     css/WebKitCSSViewportRule.idl
</span><span class="cx"> 
</span><ins>+    dom/AnimationEvent.idl
</ins><span class="cx">     dom/Attr.idl
</span><span class="cx">     dom/BeforeLoadEvent.idl
</span><span class="cx">     dom/BeforeUnloadEvent.idl
</span><span class="lines">@@ -1298,6 +1299,7 @@
</span><span class="cx">     cssjit/SelectorCompiler.cpp
</span><span class="cx"> 
</span><span class="cx">     dom/ActiveDOMObject.cpp
</span><ins>+    dom/AnimationEvent.cpp
</ins><span class="cx">     dom/Attr.cpp
</span><span class="cx">     dom/BeforeTextInsertedEvent.cpp
</span><span class="cx">     dom/BeforeUnloadEvent.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/ChangeLog        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -1,3 +1,76 @@
</span><ins>+2014-11-20  Dean Jackson  &lt;dino@apple.com&gt;
+
+        Support unprefixed animation event types
+        https://bugs.webkit.org/show_bug.cgi?id=138931
+        &lt;rdar://problem/18943167&gt;
+
+        Reviewed by Simon Fraser.
+
+        Tests: animations/unprefixed-events-mixed-with-prefixed.html
+               animations/unprefixed-events.html
+
+        Support the unprefixed animation event names:
+        - animationstart (was webkitAnimationStart)
+        - animationiteration (was webkitAnimationIteration)
+        - animationend (was webkitAnimationEnd)
+
+        (Yes, event types are case sensitive and yes, this will
+        likely cause some head-scratching as people change content)
+
+        The approach here is to follow what transitions does:
+        - listener only for old event name -&gt; fire old event name
+        - listener for both old and new event name -&gt; fire new event name
+        - listener only for new event name -&gt; fire new event name
+
+        That way pages that were trying to anticipate the new event name
+        won't get duplicate events.
+
+        * CMakeLists.txt: Add new AnimationEvent* stuff.
+        * DerivedSources.make: Ditto.
+        * WebCore.vcxproj/WebCore.vcxproj: Ditto.
+        * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
+        * WebCore.xcodeproj/project.pbxproj: Ditto.
+
+        * bindings/js/JSBindingsAllInOne.cpp: New files for all in one builds.
+        * dom/DOMAllInOne.cpp:
+
+        * dom/AnimationEvent.cpp: Added. Copied from WebKitAnimationEvent.cpp.
+        (WebCore::AnimationEventInit::AnimationEventInit):
+        (WebCore::AnimationEvent::AnimationEvent):
+        (WebCore::AnimationEvent::~AnimationEvent):
+        (WebCore::AnimationEvent::animationName):
+        (WebCore::AnimationEvent::elapsedTime):
+        (WebCore::AnimationEvent::eventInterface):
+        * dom/AnimationEvent.h: Added. Copied from WebKitAnimationEvent.h.
+        * dom/AnimationEvent.idl: Added. Copied from WebKitAnimationEvent.idl.
+
+        * dom/Document.cpp:
+        (WebCore::Document::addListenerTypeIfNeeded): Handle new event types.
+
+        * dom/EventNames.h: New names.
+        * dom/EventNames.in:
+
+        * dom/EventTarget.cpp:
+        (WebCore::legacyType): Provide a mapping from the new names to the older
+        prefixed forms.
+
+        * html/HTMLAttributeNames.in: Support the on* attributes, even though I
+        hate them and wish this approach would die.
+        * html/HTMLElement.cpp:
+        (WebCore::HTMLElement::populateEventNameForAttributeLocalNameMap):
+
+        * page/DOMWindow.h: New names, and constructors.
+        * page/DOMWindow.idl:
+
+        * page/animation/AnimationController.cpp:
+        (WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle): Fire new type.
+
+        * page/animation/KeyframeAnimation.cpp: Fire the new types of events.
+        (WebCore::KeyframeAnimation::onAnimationStart):
+        (WebCore::KeyframeAnimation::onAnimationIteration):
+        (WebCore::KeyframeAnimation::onAnimationEnd):
+        (WebCore::KeyframeAnimation::sendAnimationEvent):
+
</ins><span class="cx"> 2014-11-20  Tim Horton  &lt;timothy_horton@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove a piece of DataDetectors SPI that we aren't using anymore
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.cpp (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.cpp        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/DerivedSources.cpp        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -31,6 +31,7 @@
</span><span class="cx"> #include &quot;JSANGLEInstancedArrays.cpp&quot;
</span><span class="cx"> #endif
</span><span class="cx"> #include &quot;JSAbstractWorker.cpp&quot;
</span><ins>+#include &quot;JSAnimationEvent.cpp&quot;
</ins><span class="cx"> #include &quot;JSAttr.cpp&quot;
</span><span class="cx"> #include &quot;JSBarProp.cpp&quot;
</span><span class="cx"> #include &quot;JSBeforeLoadEvent.cpp&quot;
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcesmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.make (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.make        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/DerivedSources.make        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -249,6 +249,7 @@
</span><span class="cx">     $(WebCore)/css/WebKitCSSRegionRule.idl \
</span><span class="cx">     $(WebCore)/css/WebKitCSSTransformValue.idl \
</span><span class="cx">     $(WebCore)/css/WebKitCSSViewportRule.idl \
</span><ins>+    $(WebCore)/dom/AnimationEvent.idl \
</ins><span class="cx">     $(WebCore)/dom/Attr.idl \
</span><span class="cx">     $(WebCore)/dom/AutocompleteErrorEvent.idl \
</span><span class="cx">     $(WebCore)/dom/BeforeLoadEvent.idl \
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -818,6 +818,20 @@
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><ins>+    &lt;ClCompile Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSAnimationEvent.cpp&quot;&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='DebugSuffix|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+    &lt;/ClCompile&gt;
</ins><span class="cx">     &lt;ClCompile Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSAttr.cpp&quot;&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="lines">@@ -12467,6 +12481,20 @@
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><ins>+    &lt;ClCompile Include=&quot;..\dom\AnimationEvent.cpp&quot;&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='DebugSuffix|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+    &lt;/ClCompile&gt;
</ins><span class="cx">     &lt;ClCompile Include=&quot;..\dom\Attr.cpp&quot;&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="lines">@@ -18289,6 +18317,7 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\HTMLNames.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorOverlayPage.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSAbstractWorker.h&quot; /&gt;
</span><ins>+    &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSAnimationEvent.h&quot; /&gt;
</ins><span class="cx">     &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSAttr.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSBarProp.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSBeforeLoadEvent.h&quot; /&gt;
</span><span class="lines">@@ -20450,6 +20479,7 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\xml\parser\XMLDocumentParser.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\xml\parser\XMLDocumentParserScope.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ActiveDOMObject.h&quot; /&gt;
</span><ins>+    &lt;ClInclude Include=&quot;..\dom\AnimationEvent.h&quot; /&gt;
</ins><span class="cx">     &lt;ClInclude Include=&quot;..\dom\Attr.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\Attribute.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\BeforeLoadEvent.h&quot; /&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -3057,6 +3057,9 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;..\dom\ActiveDOMObject.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;dom&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><ins>+    &lt;ClCompile Include=&quot;..\dom\AnimationEvent.cpp&quot;&gt;
+      &lt;Filter&gt;dom&lt;/Filter&gt;
+    &lt;/ClCompile&gt;
</ins><span class="cx">     &lt;ClCompile Include=&quot;..\dom\Attr.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;dom&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><span class="lines">@@ -5212,6 +5215,9 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSAbstractWorker.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;DerivedSources&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><ins>+    &lt;ClCompile Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSAnimationEvent.cpp&quot;&gt;
+      &lt;Filter&gt;DerivedSources&lt;/Filter&gt;
+    &lt;/ClCompile&gt;
</ins><span class="cx">     &lt;ClCompile Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSAttr.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;DerivedSources&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><span class="lines">@@ -10113,6 +10119,9 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ActiveDOMObject.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;dom&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><ins>+    &lt;ClInclude Include=&quot;..\dom\AnimationEvent.h&quot;&gt;
+      &lt;Filter&gt;dom&lt;/Filter&gt;
+    &lt;/ClInclude&gt;
</ins><span class="cx">     &lt;ClInclude Include=&quot;..\dom\Attr.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;dom&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><span class="lines">@@ -13133,6 +13142,9 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSAbstractWorker.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;DerivedSources&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><ins>+    &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSAnimationEvent.h&quot;&gt;
+      &lt;Filter&gt;DerivedSources&lt;/Filter&gt;
+    &lt;/ClInclude&gt;
</ins><span class="cx">     &lt;ClInclude Include=&quot;$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSAttr.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;DerivedSources&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -1266,6 +1266,13 @@
</span><span class="cx">                 31741AAD16636609008A5B7E /* SimulatedClickOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 31741AAB16635E45008A5B7E /* SimulatedClickOptions.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 31955A86160D199000858025 /* RenderSnapshottedPlugIn.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 31E8D8BA160BC94B004CE8F5 /* RenderSnapshottedPlugIn.cpp */; };
</span><span class="cx">                 31955A88160D199200858025 /* RenderSnapshottedPlugIn.h in Headers */ = {isa = PBXBuildFile; fileRef = 31E8D8BB160BC94C004CE8F5 /* RenderSnapshottedPlugIn.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><ins>+                319848011A1D817B00A13318 /* AnimationEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 319847FF1A1D816700A13318 /* AnimationEvent.h */; };
+                319848021A1D818100A13318 /* AnimationEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 319847FE1A1D816700A13318 /* AnimationEvent.cpp */; };
+                319848081A1E6CB500A13318 /* DOMAnimationEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 319848051A1E6C5F00A13318 /* DOMAnimationEvent.h */; };
+                319848091A1E6CBF00A13318 /* DOMAnimationEvent.mm in Sources */ = {isa = PBXBuildFile; fileRef = 319848061A1E6C5F00A13318 /* DOMAnimationEvent.mm */; };
+                3198480A1A1E6CC700A13318 /* DOMAnimationEventInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 319848071A1E6C5F00A13318 /* DOMAnimationEventInternal.h */; };
+                3198480B1A1E6CE400A13318 /* JSAnimationEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 319848031A1E6B5D00A13318 /* JSAnimationEvent.cpp */; };
+                3198480C1A1E6CE800A13318 /* JSAnimationEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 319848041A1E6B5D00A13318 /* JSAnimationEvent.h */; };
</ins><span class="cx">                 319AE063142D6B24006563A1 /* StyleFilterData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 319AE061142D6B24006563A1 /* StyleFilterData.cpp */; };
</span><span class="cx">                 319AE064142D6B24006563A1 /* StyleFilterData.h in Headers */ = {isa = PBXBuildFile; fileRef = 319AE062142D6B24006563A1 /* StyleFilterData.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 319FBD5F15D2F464009640A6 /* CachedImageClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 319FBD5D15D2F444009640A6 /* CachedImageClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -8293,6 +8300,14 @@
</span><span class="cx">                 316FE1100E6E1DA700BF6088 /* KeyframeAnimation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KeyframeAnimation.h; path = animation/KeyframeAnimation.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 31741AAB16635E45008A5B7E /* SimulatedClickOptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SimulatedClickOptions.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 3189E6DB16B2103500386EA3 /* plugIns.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = plugIns.css; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><ins>+                319847FE1A1D816700A13318 /* AnimationEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AnimationEvent.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
+                319847FF1A1D816700A13318 /* AnimationEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AnimationEvent.h; sourceTree = &quot;&lt;group&gt;&quot;; };
+                319848001A1D816700A13318 /* AnimationEvent.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = AnimationEvent.idl; sourceTree = &quot;&lt;group&gt;&quot;; };
+                319848031A1E6B5D00A13318 /* JSAnimationEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSAnimationEvent.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
+                319848041A1E6B5D00A13318 /* JSAnimationEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSAnimationEvent.h; sourceTree = &quot;&lt;group&gt;&quot;; };
+                319848051A1E6C5F00A13318 /* DOMAnimationEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMAnimationEvent.h; sourceTree = &quot;&lt;group&gt;&quot;; };
+                319848061A1E6C5F00A13318 /* DOMAnimationEvent.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMAnimationEvent.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
+                319848071A1E6C5F00A13318 /* DOMAnimationEventInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMAnimationEventInternal.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 319AE061142D6B24006563A1 /* StyleFilterData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = StyleFilterData.cpp; path = style/StyleFilterData.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 319AE062142D6B24006563A1 /* StyleFilterData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = StyleFilterData.h; path = style/StyleFilterData.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 319FBD5D15D2F444009640A6 /* CachedImageClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CachedImageClient.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -16995,6 +17010,9 @@
</span><span class="cx">                 85AFA7AB0AAF3BB000E84305 /* Events */ = {
</span><span class="cx">                         isa = PBXGroup;
</span><span class="cx">                         children = (
</span><ins>+                                319848051A1E6C5F00A13318 /* DOMAnimationEvent.h */,
+                                319848061A1E6C5F00A13318 /* DOMAnimationEvent.mm */,
+                                319848071A1E6C5F00A13318 /* DOMAnimationEventInternal.h */,
</ins><span class="cx">                                 76FB9FE819A7284B00420562 /* DOMAutocompleteErrorEvent.h */,
</span><span class="cx">                                 76FB9FE919A7284B00420562 /* DOMAutocompleteErrorEvent.mm */,
</span><span class="cx">                                 76FB9FEA19A7284B00420562 /* DOMAutocompleteErrorEventInternal.h */,
</span><span class="lines">@@ -19419,6 +19437,8 @@
</span><span class="cx">                 A83B79120CCB003F000B0825 /* Events */ = {
</span><span class="cx">                         isa = PBXGroup;
</span><span class="cx">                         children = (
</span><ins>+                                319848031A1E6B5D00A13318 /* JSAnimationEvent.cpp */,
+                                319848041A1E6B5D00A13318 /* JSAnimationEvent.h */,
</ins><span class="cx">                                 76FB9FF619A73E3A00420562 /* JSAutocompleteErrorEvent.cpp */,
</span><span class="cx">                                 76FB9FF719A73E3A00420562 /* JSAutocompleteErrorEvent.h */,
</span><span class="cx">                                 BC946345107A934B00857193 /* JSBeforeLoadEvent.cpp */,
</span><span class="lines">@@ -22561,6 +22581,9 @@
</span><span class="cx">                 F523D32402DE4478018635CA /* dom */ = {
</span><span class="cx">                         isa = PBXGroup;
</span><span class="cx">                         children = (
</span><ins>+                                319847FE1A1D816700A13318 /* AnimationEvent.cpp */,
+                                319847FF1A1D816700A13318 /* AnimationEvent.h */,
+                                319848001A1D816700A13318 /* AnimationEvent.idl */,
</ins><span class="cx">                                 CE2616A4187E65C1007955F3 /* ios */,
</span><span class="cx">                                 E1C4DE6D0EA75C650023CCD6 /* ActiveDOMObject.cpp */,
</span><span class="cx">                                 E1C4DE680EA75C1E0023CCD6 /* ActiveDOMObject.h */,
</span><span class="lines">@@ -23933,6 +23956,7 @@
</span><span class="cx">                                 44311CD712E4E22D000A8D19 /* DOMDocumentPrivate.h in Headers */,
</span><span class="cx">                                 85CA975C0A962E5400690CCF /* DOMDocumentType.h in Headers */,
</span><span class="cx">                                 85E711960AC5D5350053270F /* DOMDocumentTypeInternal.h in Headers */,
</span><ins>+                                319848011A1D817B00A13318 /* AnimationEvent.h in Headers */,
</ins><span class="cx">                                 8518DCE90A9CC80D0091B7A6 /* DOMDOMImplementation.h in Headers */,
</span><span class="cx">                                 85E711970AC5D5350053270F /* DOMDOMImplementationInternal.h in Headers */,
</span><span class="cx">                                 52CCA9E815E3F64C0053C77F /* DOMDOMNamedFlowCollection.h in Headers */,
</span><span class="lines">@@ -23967,6 +23991,7 @@
</span><span class="cx">                                 0F54DCE01880F901003EEDBB /* DOMGestureEvent.h in Headers */,
</span><span class="cx">                                 0F54DCE21880F901003EEDBB /* DOMGestureEventInternal.h in Headers */,
</span><span class="cx">                                 BC1A37B6097C715F0019F3D8 /* DOMHTML.h in Headers */,
</span><ins>+                                319848081A1E6CB500A13318 /* DOMAnimationEvent.h in Headers */,
</ins><span class="cx">                                 85DF81270AA7787200486AD7 /* DOMHTMLAnchorElement.h in Headers */,
</span><span class="cx">                                 85E7119B0AC5D5350053270F /* DOMHTMLAnchorElementInternal.h in Headers */,
</span><span class="cx">                                 854075690AD6CBF900620C57 /* DOMHTMLAppletElement.h in Headers */,
</span><span class="lines">@@ -25360,6 +25385,7 @@
</span><span class="cx">                                 9728C3141268E4390041E89B /* MarkupAccumulator.h in Headers */,
</span><span class="cx">                                 00C60E3F13D76D7E0092A275 /* MarkupTokenizerInlines.h in Headers */,
</span><span class="cx">                                 FABE72F51059C1EB00D999DD /* MathMLElement.h in Headers */,
</span><ins>+                                3198480C1A1E6CE800A13318 /* JSAnimationEvent.h in Headers */,
</ins><span class="cx">                                 44A28AAC12DFB8AC00AE923B /* MathMLElementFactory.h in Headers */,
</span><span class="cx">                                 FABE72F71059C1EB00D999DD /* MathMLInlineContainerElement.h in Headers */,
</span><span class="cx">                                 FABE72F91059C1EB00D999DD /* MathMLMathElement.h in Headers */,
</span><span class="lines">@@ -26174,6 +26200,7 @@
</span><span class="cx">                                 1FC40FBA1655CCB90040F29E /* SubimageCacheWithTimer.h in Headers */,
</span><span class="cx">                                 F55B3DD41251F12D003EF269 /* SubmitInputType.h in Headers */,
</span><span class="cx">                                 656D37480ADBA5DE00A4554D /* SubresourceLoader.h in Headers */,
</span><ins>+                                3198480A1A1E6CC700A13318 /* DOMAnimationEventInternal.h in Headers */,
</ins><span class="cx">                                 659A7D130B6DB4D9001155B3 /* SubstituteData.h in Headers */,
</span><span class="cx">                                 1A8F6B020DB53006001DB794 /* SubstituteResource.h in Headers */,
</span><span class="cx">                                 E1FF8F601807442100132674 /* SubtleCrypto.h in Headers */,
</span><span class="lines">@@ -27865,6 +27892,7 @@
</span><span class="cx">                                 514C764F0CE9234E007EF3CD /* FormDataStreamMac.mm in Sources */,
</span><span class="cx">                                 656D373B0ADBA5DE00A4554D /* FormState.cpp in Sources */,
</span><span class="cx">                                 41885B9411B6FDA6003383BB /* FormSubmission.cpp in Sources */,
</span><ins>+                                319848091A1E6CBF00A13318 /* DOMAnimationEvent.mm in Sources */,
</ins><span class="cx">                                 65BF022E0974816300C43196 /* Frame.cpp in Sources */,
</span><span class="cx">                                 974A862214B7ADBB003FDC76 /* FrameDestructionObserver.cpp in Sources */,
</span><span class="cx">                                 FED13D3D0CEA936A00D89466 /* FrameIOS.mm in Sources */,
</span><span class="lines">@@ -28469,6 +28497,7 @@
</span><span class="cx">                                 BC3C39B60C0D3D8D005F4D7A /* JSMediaList.cpp in Sources */,
</span><span class="cx">                                 D3A94A46122DC40F00A37BBC /* JSMediaQueryList.cpp in Sources */,
</span><span class="cx">                                 7C5343FC17B74B63004232F0 /* JSMediaQueryListListener.cpp in Sources */,
</span><ins>+                                319848021A1D818100A13318 /* AnimationEvent.cpp in Sources */,
</ins><span class="cx">                                 CD9DE17417AAC74C00EA386D /* JSMediaSource.cpp in Sources */,
</span><span class="cx">                                 07C59B7117F79C7C000FBCBB /* JSMediaSourceStates.cpp in Sources */,
</span><span class="cx">                                 07C59B6E17F794F6000FBCBB /* JSMediaSourceStatesCustom.cpp in Sources */,
</span><span class="lines">@@ -28486,6 +28515,7 @@
</span><span class="cx">                                 0705853517FDE6D9005F2BCB /* JSMediaTrackConstraintSet.cpp in Sources */,
</span><span class="cx">                                 E107400D0E77BDC00033AF24 /* JSMessageChannel.cpp in Sources */,
</span><span class="cx">                                 E1A5F99B0E7EAA2500AF85EA /* JSMessageChannelCustom.cpp in Sources */,
</span><ins>+                                3198480B1A1E6CE400A13318 /* JSAnimationEvent.cpp in Sources */,
</ins><span class="cx">                                 75793EC80D0CE72D007FC0AC /* JSMessageEvent.cpp in Sources */,
</span><span class="cx">                                 410B7E721045FAB000D8224F /* JSMessageEventCustom.cpp in Sources */,
</span><span class="cx">                                 E1ADEDDB0E76BD93004A1A5E /* JSMessagePort.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCoredomAnimationEventcpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/dom/AnimationEvent.cpp (0 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/AnimationEvent.cpp                                (rev 0)
+++ trunk/Source/WebCore/dom/AnimationEvent.cpp        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -0,0 +1,77 @@
</span><ins>+/*
+ * Copyright (C) 2014 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#include &quot;config.h&quot;
+#include &quot;AnimationEvent.h&quot;
+
+#include &quot;EventNames.h&quot;
+
+namespace WebCore {
+
+AnimationEventInit::AnimationEventInit()
+    : animationName()
+    , elapsedTime(0)
+{
+}
+
+AnimationEvent::AnimationEvent()
+    : m_elapsedTime(0)
+{
+}
+
+AnimationEvent::AnimationEvent(const AtomicString&amp; type, const AnimationEventInit&amp; initializer)
+    : Event(type, initializer)
+    , m_animationName(initializer.animationName)
+    , m_elapsedTime(initializer.elapsedTime)
+{
+}
+
+AnimationEvent::AnimationEvent(const AtomicString&amp; type, const String&amp; animationName, double elapsedTime)
+    : Event(type, true, true)
+    , m_animationName(animationName)
+    , m_elapsedTime(elapsedTime)
+{
+}
+
+AnimationEvent::~AnimationEvent()
+{
+}
+
+const String&amp; AnimationEvent::animationName() const
+{
+    return m_animationName;
+}
+
+double AnimationEvent::elapsedTime() const
+{
+    return m_elapsedTime;
+}
+
+EventInterface AnimationEvent::eventInterface() const
+{
+    return AnimationEventInterfaceType;
+}
+
+} // namespace WebCore
</ins><span class="cx">Property changes on: trunk/Source/WebCore/dom/AnimationEvent.cpp
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkSourceWebCoredomAnimationEventh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/dom/AnimationEvent.h (0 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/AnimationEvent.h                                (rev 0)
+++ trunk/Source/WebCore/dom/AnimationEvent.h        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -0,0 +1,73 @@
</span><ins>+/*
+ * Copyright (C) 2014 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#ifndef AnimationEvent_h
+#define AnimationEvent_h
+
+#include &quot;Event.h&quot;
+
+namespace WebCore {
+
+struct AnimationEventInit : public EventInit {
+    AnimationEventInit();
+
+    String animationName;
+    double elapsedTime;
+};
+
+class AnimationEvent final : public Event {
+public:
+    static PassRefPtr&lt;AnimationEvent&gt; create()
+    {
+        return adoptRef(new AnimationEvent);
+    }
+    static PassRefPtr&lt;AnimationEvent&gt; create(const AtomicString&amp; type, const String&amp; animationName, double elapsedTime)
+    {
+        return adoptRef(new AnimationEvent(type, animationName, elapsedTime));
+    }
+    static PassRefPtr&lt;AnimationEvent&gt; create(const AtomicString&amp; type, const AnimationEventInit&amp; initializer)
+    {
+        return adoptRef(new AnimationEvent(type, initializer));
+    }
+
+    virtual ~AnimationEvent();
+
+    const String&amp; animationName() const;
+    double elapsedTime() const;
+
+    virtual EventInterface eventInterface() const override;
+
+private:
+    AnimationEvent();
+    AnimationEvent(const AtomicString&amp; type, const String&amp; animationName, double elapsedTime);
+    AnimationEvent(const AtomicString&amp;, const AnimationEventInit&amp;);
+
+    String m_animationName;
+    double m_elapsedTime;
+};
+
+} // namespace WebCore
+
+#endif // AnimationEvent_h
</ins><span class="cx">Property changes on: trunk/Source/WebCore/dom/AnimationEvent.h
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkSourceWebCoredomAnimationEventidl"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/dom/AnimationEvent.idl (0 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/AnimationEvent.idl                                (rev 0)
+++ trunk/Source/WebCore/dom/AnimationEvent.idl        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+/*
+ * Copyright (C) 2014 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+[
+    ConstructorTemplate=Event
+] interface AnimationEvent : Event {
+    [InitializedByEventConstructor] readonly attribute DOMString animationName;
+    [InitializedByEventConstructor] readonly attribute unrestricted double elapsedTime;
+};
+
</ins></span></pre></div>
<a id="trunkSourceWebCoredomDOMAllInOnecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DOMAllInOne.cpp (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DOMAllInOne.cpp        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/dom/DOMAllInOne.cpp        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -26,6 +26,7 @@
</span><span class="cx"> // This all-in-one cpp file cuts down on template bloat to allow us to build our Windows release build.
</span><span class="cx"> 
</span><span class="cx"> #include &quot;ActiveDOMObject.cpp&quot;
</span><ins>+#include &quot;AnimationEvent.cpp&quot;
</ins><span class="cx"> #include &quot;Attr.cpp&quot;
</span><span class="cx"> #include &quot;BeforeTextInsertedEvent.cpp&quot;
</span><span class="cx"> #include &quot;BeforeUnloadEvent.cpp&quot;
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.cpp (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.cpp        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/dom/Document.cpp        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -3845,11 +3845,11 @@
</span><span class="cx">         addListenerType(DOMCHARACTERDATAMODIFIED_LISTENER);
</span><span class="cx">     else if (eventType == eventNames().overflowchangedEvent)
</span><span class="cx">         addListenerType(OVERFLOWCHANGED_LISTENER);
</span><del>-    else if (eventType == eventNames().webkitAnimationStartEvent)
</del><ins>+    else if (eventType == eventNames().webkitAnimationStartEvent || eventType == eventNames().animationstartEvent)
</ins><span class="cx">         addListenerType(ANIMATIONSTART_LISTENER);
</span><del>-    else if (eventType == eventNames().webkitAnimationEndEvent)
</del><ins>+    else if (eventType == eventNames().webkitAnimationEndEvent || eventType == eventNames().animationendEvent)
</ins><span class="cx">         addListenerType(ANIMATIONEND_LISTENER);
</span><del>-    else if (eventType == eventNames().webkitAnimationIterationEvent)
</del><ins>+    else if (eventType == eventNames().webkitAnimationIterationEvent || eventType == eventNames().animationiterationEvent)
</ins><span class="cx">         addListenerType(ANIMATIONITERATION_LISTENER);
</span><span class="cx">     else if (eventType == eventNames().webkitTransitionEndEvent || eventType == eventNames().transitionendEvent)
</span><span class="cx">         addListenerType(TRANSITIONEND_LISTENER);
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventNamesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/EventNames.h (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/EventNames.h        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/dom/EventNames.h        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -199,6 +199,9 @@
</span><span class="cx">     macro(webkitAnimationEnd) \
</span><span class="cx">     macro(webkitAnimationStart) \
</span><span class="cx">     macro(webkitAnimationIteration) \
</span><ins>+    macro(animationend) \
+    macro(animationstart) \
+    macro(animationiteration) \
</ins><span class="cx">     \
</span><span class="cx">     macro(webkitTransitionEnd) \
</span><span class="cx">     macro(transitionend) \
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventNamesin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/EventNames.in (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/EventNames.in        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/dom/EventNames.in        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -3,6 +3,7 @@
</span><span class="cx"> Event
</span><span class="cx"> Events interfaceName=Event
</span><span class="cx"> HTMLEvents interfaceName=Event
</span><ins>+AnimationEvent
</ins><span class="cx"> BeforeLoadEvent
</span><span class="cx"> BeforeUnloadEvent
</span><span class="cx"> CloseEvent
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventTargetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/EventTarget.cpp (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/EventTarget.cpp        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/dom/EventTarget.cpp        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -35,6 +35,7 @@
</span><span class="cx"> #include &quot;EventException.h&quot;
</span><span class="cx"> #include &quot;InspectorInstrumentation.h&quot;
</span><span class="cx"> #include &quot;ScriptController.h&quot;
</span><ins>+#include &quot;WebKitAnimationEvent.h&quot;
</ins><span class="cx"> #include &quot;WebKitTransitionEvent.h&quot;
</span><span class="cx"> #include &lt;wtf/MainThread.h&gt;
</span><span class="cx"> #include &lt;wtf/Ref.h&gt;
</span><span class="lines">@@ -168,6 +169,15 @@
</span><span class="cx"> 
</span><span class="cx"> static const AtomicString&amp; legacyType(const Event* event)
</span><span class="cx"> {
</span><ins>+    if (event-&gt;type() == eventNames().animationendEvent)
+        return eventNames().webkitAnimationEndEvent;
+
+    if (event-&gt;type() == eventNames().animationstartEvent)
+        return eventNames().webkitAnimationStartEvent;
+
+    if (event-&gt;type() == eventNames().animationiterationEvent)
+        return eventNames().webkitAnimationIterationEvent;
+
</ins><span class="cx">     if (event-&gt;type() == eventNames().transitionendEvent)
</span><span class="cx">         return eventNames().webkitTransitionEndEvent;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLAttributeNamesin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLAttributeNames.in (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLAttributeNames.in        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/html/HTMLAttributeNames.in        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -169,6 +169,9 @@
</span><span class="cx"> nowrap
</span><span class="cx"> object
</span><span class="cx"> onabort
</span><ins>+onanimationstart
+onanimationiteration
+onanimationend
</ins><span class="cx"> onautocomplete
</span><span class="cx"> onautocompleteerror
</span><span class="cx"> onbeforecopy
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLElement.cpp (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLElement.cpp        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/html/HTMLElement.cpp        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -326,6 +326,9 @@
</span><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     const CustomMapping customTable[] = {
</span><ins>+        { onanimationendAttr, eventNames().animationendEvent },
+        { onanimationiterationAttr, eventNames().animationiterationEvent },
+        { onanimationstartAttr, eventNames().animationstartEvent },
</ins><span class="cx">         { ontransitionendAttr, eventNames().webkitTransitionEndEvent },
</span><span class="cx">         { onwebkitanimationendAttr, eventNames().webkitAnimationEndEvent },
</span><span class="cx">         { onwebkitanimationiterationAttr, eventNames().webkitAnimationIterationEvent },
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.h (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.h        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/page/DOMWindow.h        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -360,6 +360,9 @@
</span><span class="cx">         DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationstart, webkitAnimationStart);
</span><span class="cx">         DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationiteration, webkitAnimationIteration);
</span><span class="cx">         DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationend, webkitAnimationEnd);
</span><ins>+        DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(animationstart, animationstart);
+        DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(animationiteration, animationiteration);
+        DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(animationend, animationend);
</ins><span class="cx">         DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkittransitionend, webkitTransitionEnd);
</span><span class="cx">         DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(transitionend, transitionend);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.idl (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.idl        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/page/DOMWindow.idl        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -272,6 +272,9 @@
</span><span class="cx">     attribute EventListener onwebkitanimationend;
</span><span class="cx">     attribute EventListener onwebkitanimationiteration;
</span><span class="cx">     attribute EventListener onwebkitanimationstart;
</span><ins>+    attribute EventListener onanimationend;
+    attribute EventListener onanimationiteration;
+    attribute EventListener onanimationstart;
</ins><span class="cx">     attribute EventListener onwebkittransitionend;
</span><span class="cx">     attribute EventListener ontransitionend;
</span><span class="cx"> #if defined(ENABLE_ORIENTATION_EVENTS) &amp;&amp; ENABLE_ORIENTATION_EVENTS
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationAnimationControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/AnimationController.cpp (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/AnimationController.cpp        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/page/animation/AnimationController.cpp        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -31,6 +31,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;AnimationBase.h&quot;
</span><span class="cx"> #include &quot;AnimationControllerPrivate.h&quot;
</span><ins>+#include &quot;AnimationEvent.h&quot;
</ins><span class="cx"> #include &quot;CSSParser.h&quot;
</span><span class="cx"> #include &quot;CSSPropertyAnimation.h&quot;
</span><span class="cx"> #include &quot;CompositeAnimation.h&quot;
</span><span class="lines">@@ -178,7 +179,7 @@
</span><span class="cx">         if (it-&gt;eventType == eventNames().transitionendEvent)
</span><span class="cx">             element-&gt;dispatchEvent(TransitionEvent::create(it-&gt;eventType, it-&gt;name, it-&gt;elapsedTime, PseudoElement::pseudoElementNameForEvents(element-&gt;pseudoId())));
</span><span class="cx">         else
</span><del>-            element-&gt;dispatchEvent(WebKitAnimationEvent::create(it-&gt;eventType, it-&gt;name, it-&gt;elapsedTime));
</del><ins>+            element-&gt;dispatchEvent(AnimationEvent::create(it-&gt;eventType, it-&gt;name, it-&gt;elapsedTime));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     for (unsigned i = 0, size = m_elementChangesToDispatch.size(); i &lt; size; ++i)
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationKeyframeAnimationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp (176422 => 176423)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp        2014-11-20 23:25:07 UTC (rev 176422)
+++ trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp        2014-11-20 23:26:29 UTC (rev 176423)
</span><span class="lines">@@ -243,17 +243,17 @@
</span><span class="cx"> 
</span><span class="cx"> void KeyframeAnimation::onAnimationStart(double elapsedTime)
</span><span class="cx"> {
</span><del>-    sendAnimationEvent(eventNames().webkitAnimationStartEvent, elapsedTime);
</del><ins>+    sendAnimationEvent(eventNames().animationstartEvent, elapsedTime);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void KeyframeAnimation::onAnimationIteration(double elapsedTime)
</span><span class="cx"> {
</span><del>-    sendAnimationEvent(eventNames().webkitAnimationIterationEvent, elapsedTime);
</del><ins>+    sendAnimationEvent(eventNames().animationiterationEvent, elapsedTime);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void KeyframeAnimation::onAnimationEnd(double elapsedTime)
</span><span class="cx"> {
</span><del>-    sendAnimationEvent(eventNames().webkitAnimationEndEvent, elapsedTime);
</del><ins>+    sendAnimationEvent(eventNames().animationendEvent, elapsedTime);
</ins><span class="cx">     // End the animation if we don't fill forwards. Forward filling
</span><span class="cx">     // animations are ended properly in the class destructor.
</span><span class="cx">     if (!m_animation-&gt;fillsForwards())
</span><span class="lines">@@ -263,12 +263,12 @@
</span><span class="cx"> bool KeyframeAnimation::sendAnimationEvent(const AtomicString&amp; eventType, double elapsedTime)
</span><span class="cx"> {
</span><span class="cx">     Document::ListenerType listenerType;
</span><del>-    if (eventType == eventNames().webkitAnimationIterationEvent)
</del><ins>+    if (eventType == eventNames().webkitAnimationIterationEvent || eventType == eventNames().animationiterationEvent)
</ins><span class="cx">         listenerType = Document::ANIMATIONITERATION_LISTENER;
</span><del>-    else if (eventType == eventNames().webkitAnimationEndEvent)
</del><ins>+    else if (eventType == eventNames().webkitAnimationEndEvent || eventType == eventNames().animationendEvent)
</ins><span class="cx">         listenerType = Document::ANIMATIONEND_LISTENER;
</span><span class="cx">     else {
</span><del>-        ASSERT(eventType == eventNames().webkitAnimationStartEvent);
</del><ins>+        ASSERT(eventType == eventNames().webkitAnimationStartEvent || eventType == eventNames().animationstartEvent);
</ins><span class="cx">         if (m_startEventDispatched)
</span><span class="cx">             return false;
</span><span class="cx">         m_startEventDispatched = true;
</span><span class="lines">@@ -287,7 +287,7 @@
</span><span class="cx">         m_compositeAnimation-&gt;animationController()-&gt;addEventToDispatch(element, eventType, m_keyframes.animationName(), elapsedTime);
</span><span class="cx"> 
</span><span class="cx">         // Restore the original (unanimated) style
</span><del>-        if (eventType == eventNames().webkitAnimationEndEvent &amp;&amp; element-&gt;renderer())
</del><ins>+        if ((eventType == eventNames().webkitAnimationEndEvent || eventType == eventNames().animationendEvent) &amp;&amp; element-&gt;renderer())
</ins><span class="cx">             setNeedsStyleRecalc(element.get());
</span><span class="cx"> 
</span><span class="cx">         return true; // Did dispatch an event
</span></span></pre>
</div>
</div>

</body>
</html>