<!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>[210976] 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/210976">210976</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2017-01-20 13:04:24 -0800 (Fri, 20 Jan 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Animations should be off by default and enabled as an experimental feature
https://bugs.webkit.org/show_bug.cgi?id=167115
&lt;rdar://problem/30048963&gt;

Patch by Antoine Quint &lt;graouts@apple.com&gt; on 2017-01-20
Reviewed by Joseph Pecoraro.

Source/WebCore:

Conditionalize the existing parts of the Web Animations API so that they may be
toggled at runtime.

* animation/Animatable.idl:
* animation/AnimationEffect.idl:
* animation/AnimationTimeline.idl:
* animation/DocumentAnimation.idl:
* animation/DocumentTimeline.idl:
* animation/KeyframeEffect.idl:
* animation/WebAnimation.idl:
* page/RuntimeEnabledFeatures.cpp:
(WebCore::RuntimeEnabledFeatures::reset):
* page/RuntimeEnabledFeatures.h:

Source/WebKit2:

Promote, or relegate depending on how you see things, the Web Animations preference
to an experimental feature.

* Shared/WebPreferencesDefinitions.h:

Tools:

Turn Web Animations on in DRT.

* DumpRenderTree/mac/DumpRenderTree.mm:
(resetWebPreferencesToConsistentValues):
* DumpRenderTree/win/DumpRenderTree.cpp:
(resetWebPreferencesToConsistentValues):

Websites/webkit.org:

Add a test for Web Animations feature detection.

* experimental-features.html:

LayoutTests:

No need for an explicit preference anymore.

* webanimations/script-tests/Document.js:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestswebanimationsscripttestsDocumentjs">trunk/LayoutTests/webanimations/script-tests/Document.js</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreanimationAnimatableidl">trunk/Source/WebCore/animation/Animatable.idl</a></li>
<li><a href="#trunkSourceWebCoreanimationAnimationEffectidl">trunk/Source/WebCore/animation/AnimationEffect.idl</a></li>
<li><a href="#trunkSourceWebCoreanimationAnimationTimelineidl">trunk/Source/WebCore/animation/AnimationTimeline.idl</a></li>
<li><a href="#trunkSourceWebCoreanimationDocumentAnimationidl">trunk/Source/WebCore/animation/DocumentAnimation.idl</a></li>
<li><a href="#trunkSourceWebCoreanimationDocumentTimelineidl">trunk/Source/WebCore/animation/DocumentTimeline.idl</a></li>
<li><a href="#trunkSourceWebCoreanimationKeyframeEffectidl">trunk/Source/WebCore/animation/KeyframeEffect.idl</a></li>
<li><a href="#trunkSourceWebCoreanimationWebAnimationidl">trunk/Source/WebCore/animation/WebAnimation.idl</a></li>
<li><a href="#trunkSourceWebCorepageRuntimeEnabledFeaturescpp">trunk/Source/WebCore/page/RuntimeEnabledFeatures.cpp</a></li>
<li><a href="#trunkSourceWebCorepageRuntimeEnabledFeaturesh">trunk/Source/WebCore/page/RuntimeEnabledFeatures.h</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedWebPreferencesDefinitionsh">trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsDumpRenderTreemacDumpRenderTreemm">trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm</a></li>
<li><a href="#trunkToolsDumpRenderTreewinDumpRenderTreecpp">trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp</a></li>
<li><a href="#trunkWebsiteswebkitorgChangeLog">trunk/Websites/webkit.org/ChangeLog</a></li>
<li><a href="#trunkWebsiteswebkitorgexperimentalfeatureshtml">trunk/Websites/webkit.org/experimental-features.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/LayoutTests/ChangeLog        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2017-01-20  Antoine Quint  &lt;graouts@apple.com&gt;
+
+        Web Animations should be off by default and enabled as an experimental feature
+        https://bugs.webkit.org/show_bug.cgi?id=167115
+        &lt;rdar://problem/30048963&gt;
+
+        Reviewed by Joseph Pecoraro.
+
+        No need for an explicit preference anymore.
+
+        * webanimations/script-tests/Document.js:
+
</ins><span class="cx"> 2017-01-20  Ryan Haddad  &lt;ryanhaddad@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Skipping pointer-lock tests on macOS WK2.
</span></span></pre></div>
<a id="trunkLayoutTestswebanimationsscripttestsDocumentjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/webanimations/script-tests/Document.js (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/webanimations/script-tests/Document.js        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/LayoutTests/webanimations/script-tests/Document.js        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -1,9 +1,5 @@
</span><span class="cx"> description(&quot;Web Animation API: Document interface extension test.&quot;);
</span><span class="cx"> 
</span><del>-// Enable Web Animations API.
-if (window.testRunner)
-    window.testRunner.overridePreference(&quot;WebKitWebAnimationsEnabled&quot;, &quot;1&quot;);
-
</del><span class="cx"> var iframe = document.getElementById(&quot;iframe&quot;);
</span><span class="cx"> var target = document.getElementById(&quot;target&quot;);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/ChangeLog        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -1,5 +1,27 @@
</span><span class="cx"> 2017-01-20  Antoine Quint  &lt;graouts@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Web Animations should be off by default and enabled as an experimental feature
+        https://bugs.webkit.org/show_bug.cgi?id=167115
+        &lt;rdar://problem/30048963&gt;
+
+        Reviewed by Joseph Pecoraro.
+
+        Conditionalize the existing parts of the Web Animations API so that they may be
+        toggled at runtime.
+
+        * animation/Animatable.idl:
+        * animation/AnimationEffect.idl:
+        * animation/AnimationTimeline.idl:
+        * animation/DocumentAnimation.idl:
+        * animation/DocumentTimeline.idl:
+        * animation/KeyframeEffect.idl:
+        * animation/WebAnimation.idl:
+        * page/RuntimeEnabledFeatures.cpp:
+        (WebCore::RuntimeEnabledFeatures::reset):
+        * page/RuntimeEnabledFeatures.h:
+
+2017-01-20  Antoine Quint  &lt;graouts@apple.com&gt;
+
</ins><span class="cx">         [Modern Media Controls] Turn modern media controls on by default
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=165668
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreanimationAnimatableidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/animation/Animatable.idl (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/animation/Animatable.idl        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/animation/Animatable.idl        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> [
</span><span class="cx">     Conditional=WEB_ANIMATIONS,
</span><ins>+    EnabledAtRuntime=WebAnimations,
</ins><span class="cx">     NoInterfaceObject
</span><span class="cx"> ] interface Animatable {
</span><span class="cx"> #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
</span></span></pre></div>
<a id="trunkSourceWebCoreanimationAnimationEffectidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/animation/AnimationEffect.idl (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/animation/AnimationEffect.idl        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/animation/AnimationEffect.idl        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> [
</span><span class="cx">     Conditional=WEB_ANIMATIONS,
</span><ins>+    EnabledAtRuntime=WebAnimations,
</ins><span class="cx">     InterfaceName=AnimationEffectReadOnly,
</span><span class="cx">     SkipVTableValidation
</span><span class="cx"> ] interface AnimationEffect {
</span></span></pre></div>
<a id="trunkSourceWebCoreanimationAnimationTimelineidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/animation/AnimationTimeline.idl (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/animation/AnimationTimeline.idl        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/animation/AnimationTimeline.idl        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> [
</span><span class="cx">     Conditional=WEB_ANIMATIONS,
</span><ins>+    EnabledAtRuntime=WebAnimations,
</ins><span class="cx">     CustomToJSObject,
</span><span class="cx">     ImplementationLacksVTable
</span><span class="cx"> ] interface AnimationTimeline {
</span></span></pre></div>
<a id="trunkSourceWebCoreanimationDocumentAnimationidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/animation/DocumentAnimation.idl (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/animation/DocumentAnimation.idl        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/animation/DocumentAnimation.idl        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -27,7 +27,8 @@
</span><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> [
</span><del>-    Conditional=WEB_ANIMATIONS
</del><ins>+    Conditional=WEB_ANIMATIONS,
+    EnabledAtRuntime=WebAnimations,
</ins><span class="cx"> ] partial interface Document {
</span><span class="cx">     readonly attribute DocumentTimeline timeline;
</span><span class="cx">     sequence&lt;WebAnimation&gt; getAnimations();
</span></span></pre></div>
<a id="trunkSourceWebCoreanimationDocumentTimelineidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/animation/DocumentTimeline.idl (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/animation/DocumentTimeline.idl        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/animation/DocumentTimeline.idl        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> [
</span><span class="cx">     Conditional=WEB_ANIMATIONS,
</span><ins>+    EnabledAtRuntime=WebAnimations,
</ins><span class="cx">     ImplementationLacksVTable,
</span><span class="cx">     // FIXME: Should be DOMHighResTimeStamp rather than double (e.g. see Performance.now()).
</span><span class="cx">     Constructor(double originTime),
</span></span></pre></div>
<a id="trunkSourceWebCoreanimationKeyframeEffectidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/animation/KeyframeEffect.idl (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/animation/KeyframeEffect.idl        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/animation/KeyframeEffect.idl        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> [
</span><span class="cx">     Conditional=WEB_ANIMATIONS,
</span><ins>+    EnabledAtRuntime=WebAnimations,
</ins><span class="cx">     // FIXME: Constructor stub only at the moment (should accept PseudoElement target, frames and options).
</span><span class="cx">     Constructor([Default=Undefined] Element? target)
</span><span class="cx">     // FIXME: Add interface for and inherit from KeyframeEffectReadOnly.
</span></span></pre></div>
<a id="trunkSourceWebCoreanimationWebAnimationidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/animation/WebAnimation.idl (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/animation/WebAnimation.idl        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/animation/WebAnimation.idl        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> [
</span><span class="cx">     Conditional=WEB_ANIMATIONS,
</span><ins>+    EnabledAtRuntime=WebAnimations,
</ins><span class="cx">     InterfaceName=Animation,
</span><span class="cx">     ImplementationLacksVTable,
</span><span class="cx">     Constructor([Default=Undefined] AnimationEffect? effect, [Default=Undefined] AnimationTimeline? timeline)
</span></span></pre></div>
<a id="trunkSourceWebCorepageRuntimeEnabledFeaturescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/RuntimeEnabledFeatures.cpp (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/RuntimeEnabledFeatures.cpp        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/page/RuntimeEnabledFeatures.cpp        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -103,9 +103,6 @@
</span><span class="cx"> #if ENABLE(CSS_ANIMATIONS_LEVEL_2)
</span><span class="cx">     m_areAnimationTriggersEnabled = false;
</span><span class="cx"> #endif
</span><del>-#if ENABLE(WEB_ANIMATIONS)
-    m_areWebAnimationsEnabled = false;
-#endif
</del><span class="cx"> #if ENABLE(CSS_GRID_LAYOUT)
</span><span class="cx">     m_cssGridLayoutEnabled = true;
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorepageRuntimeEnabledFeaturesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/RuntimeEnabledFeatures.h (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/RuntimeEnabledFeatures.h        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebCore/page/RuntimeEnabledFeatures.h        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -332,7 +332,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(WEB_ANIMATIONS)
</span><del>-    bool m_areWebAnimationsEnabled;
</del><ins>+    bool m_areWebAnimationsEnabled { false };
</ins><span class="cx"> #endif
</span><span class="cx">     
</span><span class="cx">     bool m_isShadowDOMEnabled;
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebKit2/ChangeLog        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -1,5 +1,18 @@
</span><span class="cx"> 2017-01-20  Antoine Quint  &lt;graouts@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Web Animations should be off by default and enabled as an experimental feature
+        https://bugs.webkit.org/show_bug.cgi?id=167115
+        &lt;rdar://problem/30048963&gt;
+
+        Reviewed by Joseph Pecoraro.
+
+        Promote, or relegate depending on how you see things, the Web Animations preference
+        to an experimental feature.
+
+        * Shared/WebPreferencesDefinitions.h:
+
+2017-01-20  Antoine Quint  &lt;graouts@apple.com&gt;
+
</ins><span class="cx">         [Modern Media Controls] Turn modern media controls on by default
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=165668
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebPreferencesDefinitionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -130,7 +130,6 @@
</span><span class="cx">     macro(ForceSoftwareWebGLRendering, forceSoftwareWebGLRendering, Bool, bool, false, &quot;&quot;, &quot;&quot;) \
</span><span class="cx">     macro(Accelerated2dCanvasEnabled, accelerated2dCanvasEnabled, Bool, bool, false, &quot;&quot;, &quot;&quot;) \
</span><span class="cx">     macro(CSSAnimationTriggersEnabled, cssAnimationTriggersEnabled, Bool, bool, true, &quot;&quot;, &quot;&quot;) \
</span><del>-    macro(WebAnimationsEnabled, webAnimationsEnabled, Bool, bool, false, &quot;&quot;, &quot;&quot;) \
</del><span class="cx">     macro(ForceFTPDirectoryListings, forceFTPDirectoryListings, Bool, bool, false, &quot;&quot;, &quot;&quot;) \
</span><span class="cx">     macro(TabsToLinks, tabsToLinks, Bool, bool, DEFAULT_WEBKIT_TABSTOLINKS_ENABLED, &quot;&quot;, &quot;&quot;) \
</span><span class="cx">     macro(DNSPrefetchingEnabled, dnsPrefetchingEnabled, Bool, bool, false, &quot;&quot;, &quot;&quot;) \
</span><span class="lines">@@ -318,6 +317,7 @@
</span><span class="cx">     macro(ModernMediaControlsEnabled, modernMediaControlsEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, &quot;Modern Media Controls&quot;, &quot;Use modern media controls look&quot;) \
</span><span class="cx">     macro(InputEventsEnabled, inputEventsEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, &quot;Input Events&quot;, &quot;Enable InputEvents support&quot;) \
</span><span class="cx">     macro(SubtleCryptoEnabled, subtleCryptoEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, &quot;SubtleCrypto&quot;, &quot;Enable SubtleCrypto support&quot;) \
</span><ins>+    macro(WebAnimationsEnabled, webAnimationsEnabled, Bool, bool, false, &quot;Web Animations&quot;, &quot;Web Animations prototype&quot;) \
</ins><span class="cx">     macro(WebGL2Enabled, webGL2Enabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, &quot;WebGL 2.0&quot;, &quot;WebGL 2 prototype&quot;) \
</span><span class="cx">     \
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Tools/ChangeLog        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2017-01-20  Antoine Quint  &lt;graouts@apple.com&gt;
+
+        Web Animations should be off by default and enabled as an experimental feature
+        https://bugs.webkit.org/show_bug.cgi?id=167115
+        &lt;rdar://problem/30048963&gt;
+
+        Reviewed by Joseph Pecoraro.
+
+        Turn Web Animations on in DRT.
+
+        * DumpRenderTree/mac/DumpRenderTree.mm:
+        (resetWebPreferencesToConsistentValues):
+        * DumpRenderTree/win/DumpRenderTree.cpp:
+        (resetWebPreferencesToConsistentValues):
+
</ins><span class="cx"> 2017-01-20  Youenn Fablet  &lt;youenn@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [WebRTC] Add libwebrtc build infrastructure
</span></span></pre></div>
<a id="trunkToolsDumpRenderTreemacDumpRenderTreemm"></a>
<div class="modfile"><h4>Modified: trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -1001,6 +1001,7 @@
</span><span class="cx"> 
</span><span class="cx">     [preferences setMediaStreamEnabled:YES];
</span><span class="cx">     [preferences setPeerConnectionEnabled:YES];
</span><ins>+    [preferences setWebAnimationsEnabled:YES];
</ins><span class="cx"> 
</span><span class="cx">     [WebPreferences _clearNetworkLoaderSession];
</span><span class="cx">     [WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain];
</span></span></pre></div>
<a id="trunkToolsDumpRenderTreewinDumpRenderTreecpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -862,6 +862,7 @@
</span><span class="cx">     prefsPrivate3-&gt;setCustomElementsEnabled(TRUE);
</span><span class="cx"> 
</span><span class="cx">     prefsPrivate3-&gt;setModernMediaControlsEnabled(FALSE);
</span><ins>+    prefsPrivate3-&gt;setWebAnimationsEnabled(TRUE);
</ins><span class="cx"> 
</span><span class="cx">     setAlwaysAcceptCookies(false);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebsiteswebkitorgChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Websites/webkit.org/ChangeLog (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/webkit.org/ChangeLog        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Websites/webkit.org/ChangeLog        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2017-01-20  Antoine Quint  &lt;graouts@apple.com&gt;
+
+        Web Animations should be off by default and enabled as an experimental feature
+        https://bugs.webkit.org/show_bug.cgi?id=167115
+        &lt;rdar://problem/30048963&gt;
+
+        Reviewed by Joseph Pecoraro.
+
+        Add a test for Web Animations feature detection.
+
+        * experimental-features.html:
+
</ins><span class="cx"> 2017-01-19  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Include SubtleCrypto test on experimental-features test page
</span></span></pre></div>
<a id="trunkWebsiteswebkitorgexperimentalfeatureshtml"></a>
<div class="modfile"><h4>Modified: trunk/Websites/webkit.org/experimental-features.html (210975 => 210976)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/webkit.org/experimental-features.html        2017-01-20 20:44:47 UTC (rev 210975)
+++ trunk/Websites/webkit.org/experimental-features.html        2017-01-20 21:04:24 UTC (rev 210976)
</span><span class="lines">@@ -106,6 +106,10 @@
</span><span class="cx">     return window.crypto.subtle;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function testWebAnimations() {
+    return !!window.Animation;
+}
+
</ins><span class="cx"> window.addEventListener(&quot;load&quot;, function () {
</span><span class="cx">     Array.from(document.querySelectorAll(&quot;.test&quot;)).forEach(element =&gt; {
</span><span class="cx">         var enabled = false;
</span><span class="lines">@@ -134,6 +138,7 @@
</span><span class="cx">         &lt;div class=&quot;test&quot; id=&quot;InputEvents&quot;&gt;&lt;p&gt;HTML Input Events&lt;/p&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;test&quot; id=&quot;SubtleCrypto&quot;&gt;&lt;p&gt;SubtleCrypto&lt;/p&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;test&quot; id=&quot;VariationFonts&quot;&gt;&lt;p&gt;Variation Fonts&lt;/p&gt;&lt;/div&gt;
</span><ins>+        &lt;div class=&quot;test&quot; id=&quot;WebAnimations&quot;&gt;&lt;p&gt;Web Animations&lt;/p&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;test&quot; id=&quot;WebGL2&quot;&gt;&lt;p&gt;WebGL 2.0&lt;/p&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre>
</div>
</div>

</body>
</html>