<!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>[166588] trunk/Source/WebKit2</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/166588">166588</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2014-04-01 08:29:16 -0700 (Tue, 01 Apr 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>[UI-side compositing] Fix animations, and add logging
https://bugs.webkit.org/show_bug.cgi?id=131011

Reviewed by Tim Horton.

UI-side animations were broken because GraphicsLayerCARemote::addAnimation()
never called the superclass, so fix.

Add logging for animations to the layer tree commit output.

* Shared/mac/RemoteLayerTreeTransaction.mm:
(WebKit::dumpProperty):
(WebKit::RemoteLayerTreeTextStream::operator&lt;&lt;):
(WebKit::dumpChangedLayers):
* WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp:
(WebKit::GraphicsLayerCARemote::addAnimation):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedmacRemoteLayerTreeTransactionmm">trunk/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacGraphicsLayerCARemotecpp">trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (166587 => 166588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-04-01 15:28:36 UTC (rev 166587)
+++ trunk/Source/WebKit2/ChangeLog        2014-04-01 15:29:16 UTC (rev 166588)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2014-03-31  Simon Fraser  &lt;simon.fraser@apple.com&gt;
+
+        [UI-side compositing] Fix animations, and add logging
+        https://bugs.webkit.org/show_bug.cgi?id=131011
+
+        Reviewed by Tim Horton.
+        
+        UI-side animations were broken because GraphicsLayerCARemote::addAnimation()
+        never called the superclass, so fix.
+        
+        Add logging for animations to the layer tree commit output.
+
+        * Shared/mac/RemoteLayerTreeTransaction.mm:
+        (WebKit::dumpProperty):
+        (WebKit::RemoteLayerTreeTextStream::operator&lt;&lt;):
+        (WebKit::dumpChangedLayers):
+        * WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp:
+        (WebKit::GraphicsLayerCARemote::addAnimation):
+
</ins><span class="cx"> 2014-04-01  Zalan Bujtas  &lt;zalan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Build fix after r166582.
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedmacRemoteLayerTreeTransactionmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm (166587 => 166588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm        2014-04-01 15:28:36 UTC (rev 166587)
+++ trunk/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm        2014-04-01 15:29:16 UTC (rev 166588)
</span><span class="lines">@@ -29,10 +29,12 @@
</span><span class="cx"> #import &quot;ArgumentCoders.h&quot;
</span><span class="cx"> #import &quot;MessageDecoder.h&quot;
</span><span class="cx"> #import &quot;MessageEncoder.h&quot;
</span><ins>+#import &quot;PlatformCAAnimationRemote.h&quot;
</ins><span class="cx"> #import &quot;PlatformCALayerRemote.h&quot;
</span><span class="cx"> #import &quot;WebCoreArgumentCoders.h&quot;
</span><span class="cx"> #import &lt;QuartzCore/QuartzCore.h&gt;
</span><span class="cx"> #import &lt;WebCore/TextStream.h&gt;
</span><ins>+#import &lt;WebCore/TimingFunction.h&gt;
</ins><span class="cx"> #import &lt;wtf/text/CString.h&gt;
</span><span class="cx"> #import &lt;wtf/text/StringBuilder.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -557,9 +559,15 @@
</span><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(FloatPoint3D);
</span><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(Color);
</span><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(FloatRect);
</span><del>-    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const Vector&lt;WebCore::GraphicsLayer::PlatformLayerID&gt;&amp; layers);
</del><ins>+    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const Vector&lt;WebCore::GraphicsLayer::PlatformLayerID&gt;&amp;);
</ins><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const FilterOperations&amp;);
</span><del>-    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const RemoteLayerBackingStore&amp; backingStore);
</del><ins>+    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const PlatformCAAnimationRemote::Properties&amp;);
+    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const RemoteLayerBackingStore&amp;);
+    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(PlatformCAAnimation::AnimationType);
+    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(PlatformCAAnimation::FillModeType);
+    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(PlatformCAAnimation::ValueFunctionType);
+    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const TimingFunction&amp;);
+    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const PlatformCAAnimationRemote::KeyframeValue&amp;);
</ins><span class="cx"> 
</span><span class="cx">     void increaseIndent() { ++m_indent; }
</span><span class="cx">     void decreaseIndent() { --m_indent; ASSERT(m_indent &gt;= 0); }
</span><span class="lines">@@ -570,6 +578,17 @@
</span><span class="cx">     int m_indent;
</span><span class="cx"> };
</span><span class="cx"> 
</span><ins>+template &lt;class T&gt;
+static void dumpProperty(RemoteLayerTreeTextStream&amp; ts, String name, T value)
+{
+    ts &lt;&lt; &quot;\n&quot;;
+    ts.increaseIndent();
+    ts.writeIndent();
+    ts &lt;&lt; &quot;(&quot; &lt;&lt; name &lt;&lt; &quot; &quot;;
+    ts &lt;&lt; value &lt;&lt; &quot;)&quot;;
+    ts.decreaseIndent();
+}
+
</ins><span class="cx"> RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(const TransformationMatrix&amp; transform)
</span><span class="cx"> {
</span><span class="cx">     RemoteLayerTreeTextStream&amp; ts = *this;
</span><span class="lines">@@ -660,6 +679,165 @@
</span><span class="cx">     return ts;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(PlatformCAAnimation::AnimationType type)
+{
+    RemoteLayerTreeTextStream&amp; ts = *this;
+    switch (type) {
+    case PlatformCAAnimation::Basic: ts &lt;&lt; &quot;basic&quot;; break;
+    case PlatformCAAnimation::Keyframe: ts &lt;&lt; &quot;keyframe&quot;; break;
+    }
+    return ts;
+}
+
+RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(PlatformCAAnimation::FillModeType type)
+{
+    RemoteLayerTreeTextStream&amp; ts = *this;
+    switch (type) {
+    case PlatformCAAnimation::NoFillMode: ts &lt;&lt; &quot;none&quot;; break;
+    case PlatformCAAnimation::Forwards: ts &lt;&lt; &quot;forwards&quot;; break;
+    case PlatformCAAnimation::Backwards: ts &lt;&lt; &quot;backwards&quot;; break;
+    case PlatformCAAnimation::Both: ts &lt;&lt; &quot;both&quot;; break;
+    }
+    return ts;
+}
+
+RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(PlatformCAAnimation::ValueFunctionType type)
+{
+    RemoteLayerTreeTextStream&amp; ts = *this;
+    switch (type) {
+    case PlatformCAAnimation::NoValueFunction: ts &lt;&lt; &quot;none&quot;; break;
+    case PlatformCAAnimation::RotateX: ts &lt;&lt; &quot;rotateX&quot;; break;
+    case PlatformCAAnimation::RotateY: ts &lt;&lt; &quot;rotateY&quot;; break;
+    case PlatformCAAnimation::RotateZ: ts &lt;&lt; &quot;rotateX&quot;; break;
+    case PlatformCAAnimation::ScaleX: ts &lt;&lt; &quot;scaleX&quot;; break;
+    case PlatformCAAnimation::ScaleY: ts &lt;&lt; &quot;scaleY&quot;; break;
+    case PlatformCAAnimation::ScaleZ: ts &lt;&lt; &quot;scaleX&quot;; break;
+    case PlatformCAAnimation::Scale: ts &lt;&lt; &quot;scale&quot;; break;
+    case PlatformCAAnimation::TranslateX: ts &lt;&lt; &quot;translateX&quot;; break;
+    case PlatformCAAnimation::TranslateY: ts &lt;&lt; &quot;translateY&quot;; break;
+    case PlatformCAAnimation::TranslateZ: ts &lt;&lt; &quot;translateZ&quot;; break;
+    case PlatformCAAnimation::Translate: ts &lt;&lt; &quot;translate&quot;; break;
+    }
+    return ts;
+}
+
+RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(const PlatformCAAnimationRemote::KeyframeValue&amp; value)
+{
+    RemoteLayerTreeTextStream&amp; ts = *this;
+
+    switch (value.keyframeType()) {
+    case PlatformCAAnimationRemote::KeyframeValue::NumberKeyType:
+        ts &lt;&lt; &quot;number=&quot; &lt;&lt; value.numberValue();
+        break;
+    case PlatformCAAnimationRemote::KeyframeValue::ColorKeyType:
+        ts &lt;&lt; &quot;color=&quot;;
+        ts &lt;&lt; value.colorValue();
+        break;
+    case PlatformCAAnimationRemote::KeyframeValue::PointKeyType:
+        ts &lt;&lt; &quot;point=&quot;;
+        ts &lt;&lt; value.pointValue();
+        break;
+    case PlatformCAAnimationRemote::KeyframeValue::TransformKeyType:
+        ts &lt;&lt; &quot;transform=&quot;;
+        ts &lt;&lt; value.transformValue();
+        break;
+    }
+    return ts;
+}
+
+RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(const TimingFunction&amp; timingFunction)
+{
+    RemoteLayerTreeTextStream&amp; ts = *this;
+    switch (timingFunction.type()) {
+    case TimingFunction::LinearFunction:
+        ts &lt;&lt; &quot;linear&quot;;
+        break;
+    case TimingFunction::CubicBezierFunction: {
+        const CubicBezierTimingFunction&amp; cubicBezierFunction = static_cast&lt;const CubicBezierTimingFunction&amp;&gt;(timingFunction);
+        ts &lt;&lt; &quot;cubic-bezier(&quot; &lt;&lt; cubicBezierFunction.x1() &lt;&lt; &quot;, &quot; &lt;&lt; cubicBezierFunction.y1() &lt;&lt; &quot;, &quot; &lt;&lt;  cubicBezierFunction.x2() &lt;&lt; &quot;, &quot; &lt;&lt; cubicBezierFunction.y2() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case TimingFunction::StepsFunction: {
+        const StepsTimingFunction&amp; stepsFunction = static_cast&lt;const StepsTimingFunction&amp;&gt;(timingFunction);
+        ts &lt;&lt; &quot;steps(&quot; &lt;&lt; stepsFunction.numberOfSteps() &lt;&lt; &quot;, &quot; &lt;&lt; (stepsFunction.stepAtStart() ? &quot;start&quot; : &quot;end&quot;) &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    }
+    return ts;
+}
+
+RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(const PlatformCAAnimationRemote::Properties&amp; animation)
+{
+    RemoteLayerTreeTextStream&amp; ts = *this;
+
+    ts &lt;&lt; &quot;type=&quot;;
+    ts &lt;&lt; animation.animationType;
+    ts &lt;&lt; &quot; keyPath=&quot;;
+    ts &lt;&lt; animation.keyPath;
+
+    if (animation.beginTime)
+        dumpProperty(ts, &quot;beginTime&quot;, animation.beginTime);
+
+    if (animation.duration)
+        dumpProperty(ts, &quot;duration&quot;, animation.duration);
+
+    if (animation.timeOffset)
+        dumpProperty(ts, &quot;timeOffset&quot;, animation.timeOffset);
+
+    dumpProperty(ts, &quot;repeatCount&quot;, animation.repeatCount);
+
+    if (animation.speed != 1)
+        dumpProperty(ts, &quot;speed&quot;, animation.speed);
+
+    dumpProperty(ts, &quot;fillMode&quot;, animation.fillMode);
+    dumpProperty(ts, &quot;valueFunction&quot;, animation.valueFunction);
+
+    if (animation.autoReverses)
+        dumpProperty(ts, &quot;autoReverses&quot;, animation.autoReverses);
+
+    if (!animation.removedOnCompletion)
+        dumpProperty(ts, &quot;removedOnCompletion&quot;, animation.removedOnCompletion);
+
+    if (animation.additive)
+        dumpProperty(ts, &quot;additive&quot;, animation.additive);
+
+    if (animation.reverseTimingFunctions)
+        dumpProperty(ts, &quot;reverseTimingFunctions&quot;, animation.reverseTimingFunctions);
+
+    if (animation.hasNonZeroBeginTime)
+        dumpProperty(ts, &quot;hasNonZeroBeginTime&quot;, animation.hasNonZeroBeginTime);
+
+    ts &lt;&lt; &quot;\n&quot;;
+    ts.increaseIndent();
+    ts.writeIndent();
+    ts &lt;&lt; &quot;(&quot; &lt;&lt; &quot;keyframes&quot;;
+    ts.increaseIndent();
+
+    size_t maxFrames = std::max(animation.keyValues.size(), animation.keyTimes.size());
+    maxFrames = std::max(maxFrames, animation.timingFunctions.size());
+
+    for (size_t i = 0; i &lt; maxFrames; ++i) {
+        ts &lt;&lt; &quot;\n&quot;;
+        ts.writeIndent();
+        ts &lt;&lt; &quot;(keyframe &quot; &lt;&lt; unsigned(i);
+        if (i &lt; animation.keyTimes.size())
+            dumpProperty(ts, &quot;time&quot;, animation.keyTimes[i]);
+
+        if (i &lt; animation.timingFunctions.size() &amp;&amp; animation.timingFunctions[i])
+            dumpProperty&lt;const TimingFunction&amp;&gt;(ts, &quot;timing function&quot;, *animation.timingFunctions[i]);
+
+        if (i &lt; animation.keyValues.size())
+            dumpProperty(ts, &quot;value&quot;, animation.keyValues[i]);
+
+        ts &lt;&lt; &quot;)&quot;;
+    }
+
+    ts.decreaseIndent();
+    ts.decreaseIndent();
+
+    return ts;
+}
+
</ins><span class="cx"> RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(FloatPoint3D point)
</span><span class="cx"> {
</span><span class="cx">     RemoteLayerTreeTextStream&amp; ts = *this;
</span><span class="lines">@@ -712,17 +890,6 @@
</span><span class="cx">         *this &lt;&lt; &quot;  &quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-template &lt;class T&gt;
-static void dumpProperty(RemoteLayerTreeTextStream&amp; ts, String name, T value)
-{
-    ts &lt;&lt; &quot;\n&quot;;
-    ts.increaseIndent();
-    ts.writeIndent();
-    ts &lt;&lt; &quot;(&quot; &lt;&lt; name &lt;&lt; &quot; &quot;;
-    ts &lt;&lt; value &lt;&lt; &quot;)&quot;;
-    ts.decreaseIndent();
-}
-
</del><span class="cx"> static void dumpChangedLayers(RemoteLayerTreeTextStream&amp; ts, const RemoteLayerTreeTransaction::LayerPropertiesMap&amp; changedLayerProperties)
</span><span class="cx"> {
</span><span class="cx">     if (changedLayerProperties.isEmpty())
</span><span class="lines">@@ -751,8 +918,6 @@
</span><span class="cx">         if (layerProperties.changedProperties &amp; RemoteLayerTreeTransaction::ChildrenChanged)
</span><span class="cx">             dumpProperty&lt;Vector&lt;GraphicsLayer::PlatformLayerID&gt;&gt;(ts, &quot;children&quot;, layerProperties.children);
</span><span class="cx"> 
</span><del>-// FIXME: dump animations
-
</del><span class="cx">         if (layerProperties.changedProperties &amp; RemoteLayerTreeTransaction::PositionChanged)
</span><span class="cx">             dumpProperty&lt;FloatPoint3D&gt;(ts, &quot;position&quot;, layerProperties.position);
</span><span class="cx"> 
</span><span class="lines">@@ -826,6 +991,14 @@
</span><span class="cx">         if (layerProperties.changedProperties &amp; RemoteLayerTreeTransaction::FiltersChanged)
</span><span class="cx">             dumpProperty&lt;FilterOperations&gt;(ts, &quot;filters&quot;, layerProperties.filters ? *layerProperties.filters : FilterOperations());
</span><span class="cx"> 
</span><ins>+        if (layerProperties.changedProperties &amp; RemoteLayerTreeTransaction::AnimationsChanged) {
+            for (const auto&amp; keyValuePair : layerProperties.addedAnimations)
+                dumpProperty&lt;PlatformCAAnimationRemote::Properties&gt;(ts, &quot;animation &quot; +  keyValuePair.key, keyValuePair.value);
+
+            for (const auto&amp; name : layerProperties.keyPathsOfAnimationsToRemove)
+                dumpProperty&lt;String&gt;(ts, &quot;removed animation&quot;, name);
+        }
+
</ins><span class="cx">         if (layerProperties.changedProperties &amp; RemoteLayerTreeTransaction::EdgeAntialiasingMaskChanged)
</span><span class="cx">             dumpProperty&lt;unsigned&gt;(ts, &quot;edgeAntialiasingMask&quot;, layerProperties.edgeAntialiasingMask);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacGraphicsLayerCARemotecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp (166587 => 166588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp        2014-04-01 15:28:36 UTC (rev 166587)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp        2014-04-01 15:29:16 UTC (rev 166588)
</span><span class="lines">@@ -58,17 +58,14 @@
</span><span class="cx">     return PlatformCAAnimationRemote::create(type, keyPath);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool GraphicsLayerCARemote::addAnimation(const KeyframeValueList&amp; valueList, const FloatSize&amp;, const Animation* anim, const String&amp;, double)
</del><ins>+bool GraphicsLayerCARemote::addAnimation(const KeyframeValueList&amp; valueList, const FloatSize&amp; boxSize, const Animation* anim, const String&amp; animationName, double timeOffset)
</ins><span class="cx"> {
</span><del>-    if (!animationCanBeAccelerated(valueList, anim))
-        return false;
-    
</del><span class="cx"> #if ENABLE(CSS_FILTERS)
</span><span class="cx">     if (valueList.property() == AnimatedPropertyWebkitFilter)
</span><span class="cx">         return false;
</span><span class="cx"> #endif
</span><span class="cx">     
</span><del>-    return true;
</del><ins>+    return GraphicsLayerCA::addAnimation(valueList, boxSize, anim, animationName, timeOffset);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebKit
</span></span></pre>
</div>
</div>

</body>
</html>