<!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>[167266] trunk/Source</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/167266">167266</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2014-04-14 13:46:26 -0700 (Mon, 14 Apr 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Run filter animations in the UI process with UI-side compositing
https://bugs.webkit.org/show_bug.cgi?id=131199
&lt;rdar://problem/16479487&gt;

Source/WebCore:

Reviewed by Sam Weinig.

Add FilterOperation::clone() which is used during decoding.
Export some things.

* WebCore.exp.in:
* platform/graphics/filters/FilterOperation.h:

Source/WebKit2:

Reviewed by Sam Weinig.

* Shared/WebCoreArgumentCoders.cpp: Removed lots of WebCore::
(IPC::ArgumentCoder&lt;SelectionRect&gt;::decode):
(IPC::ArgumentCoder&lt;PasteboardWebContent&gt;::encode):
(IPC::ArgumentCoder&lt;PasteboardWebContent&gt;::decode):
(IPC::ArgumentCoder&lt;PasteboardImage&gt;::encode):
(IPC::ArgumentCoder&lt;PasteboardImage&gt;::decode):
(IPC::ArgumentCoder&lt;URL&gt;::decode):
(IPC::ArgumentCoder&lt;UserStyleSheet&gt;::encode):
(IPC::ArgumentCoder&lt;UserStyleSheet&gt;::decode):
(IPC::ArgumentCoder&lt;UserScript&gt;::encode):
(IPC::ArgumentCoder&lt;UserScript&gt;::decode):
(IPC::ArgumentCoder&lt;ScrollableAreaParameters&gt;::encode):
(IPC::ArgumentCoder&lt;ScrollableAreaParameters&gt;::decode):
(IPC::ArgumentCoder&lt;FixedPositionViewportConstraints&gt;::encode):
(IPC::ArgumentCoder&lt;FixedPositionViewportConstraints&gt;::decode):
(IPC::ArgumentCoder&lt;StickyPositionViewportConstraints&gt;::encode):
(IPC::ArgumentCoder&lt;StickyPositionViewportConstraints&gt;::decode):
(IPC::ArgumentCoder&lt;FilterOperation&gt;::encode):
(IPC::decodeFilterOperation):
(IPC::ArgumentCoder&lt;FilterOperations&gt;::encode):
(IPC::ArgumentCoder&lt;WebCore::UserStyleSheet&gt;::encode): Deleted.
(IPC::ArgumentCoder&lt;WebCore::UserStyleSheet&gt;::decode): Deleted.
(IPC::ArgumentCoder&lt;WebCore::UserScript&gt;::encode): Deleted.
(IPC::ArgumentCoder&lt;WebCore::UserScript&gt;::decode): Deleted.
(IPC::ArgumentCoder&lt;WebCore::ScrollableAreaParameters&gt;::encode): Deleted.
(IPC::ArgumentCoder&lt;WebCore::ScrollableAreaParameters&gt;::decode): Deleted.
(IPC::ArgumentCoder&lt;WebCore::FixedPositionViewportConstraints&gt;::encode): Deleted.
(IPC::ArgumentCoder&lt;WebCore::FixedPositionViewportConstraints&gt;::decode): Deleted.
(IPC::ArgumentCoder&lt;WebCore::StickyPositionViewportConstraints&gt;::encode): Deleted.
(IPC::ArgumentCoder&lt;WebCore::StickyPositionViewportConstraints&gt;::decode): Deleted.
(IPC::encodeFilterOperation): Deleted.
Add encoding/decoding support for FilterOperation.
decodeFilterOperation() has to be a bare function because of the RefPtr
out parameter.
REFERENCE filters should never be encoded, since they have CachedSVGDocumentReferences.

* Shared/WebCoreArgumentCoders.h:

* Shared/mac/RemoteLayerTreeTransaction.mm:
(WebKit::RemoteLayerTreeTextStream::operator&lt;&lt;):
Add logging for filter animations to the RemoteLayerTree log output.

* WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
* WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp:
(WebKit::GraphicsLayerCARemote::addAnimation): Deleted. We can run
filter animations now.

* WebProcess/WebPage/mac/PlatformCAAnimationRemote.h:
KeyValues have a RefPtr&lt;WebCore::FilterOperation&gt; now (which can't be part of
the union because we need its constructor to get called).
* WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm:
(WebKit::PlatformCAAnimationRemote::KeyframeValue::encode): Encode the filter.
(WebKit::PlatformCAAnimationRemote::KeyframeValue::decode): Decode the filter.
(WebKit::PlatformCAAnimationRemote::setFromValue): Implement.
(WebKit::PlatformCAAnimationRemote::setToValue): Implement.
(WebKit::PlatformCAAnimationRemote::setValues): Implement.
(WebKit::animationValueFromKeyframeValue): Handle filters.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCoreexpin">trunk/Source/WebCore/WebCore.exp.in</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersFilterOperationh">trunk/Source/WebCore/platform/graphics/filters/FilterOperation.h</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedWebCoreArgumentCoderscpp">trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedWebCoreArgumentCodersh">trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.h</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>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacGraphicsLayerCARemoteh">trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacPlatformCAAnimationRemoteh">trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacPlatformCAAnimationRemotemm">trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebCore/ChangeLog        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-04-14  Simon Fraser  &lt;simon.fraser@apple.com&gt;
+
+        Run filter animations in the UI process with UI-side compositing
+        https://bugs.webkit.org/show_bug.cgi?id=131199
+        &lt;rdar://problem/16479487&gt;
+
+        Reviewed by Sam Weinig.
+
+        Add FilterOperation::clone() which is used during decoding.
+        Export some things.
+
+        * WebCore.exp.in:
+        * platform/graphics/filters/FilterOperation.h:
+
</ins><span class="cx"> 2014-04-14  Jer Noble  &lt;jer.noble@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Use after free in WebCore::CachedResourceHandleBase::~CachedResourceHandleBase / WebCore::removeDetachedChildrenInContainer
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCoreexpin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.exp.in (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.exp.in        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebCore/WebCore.exp.in        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -105,6 +105,7 @@
</span><span class="cx"> __ZN7WebCore10TextStreamlsEPKc
</span><span class="cx"> __ZN7WebCore10TextStreamlsEPKv
</span><span class="cx"> __ZN7WebCore10TextStreamlsERKN3WTF6StringE
</span><ins>+__ZN7WebCore10TextStreamlsERKNS_8IntPointE
</ins><span class="cx"> __ZN7WebCore10TextStreamlsERKNS_9FloatSizeE
</span><span class="cx"> __ZN7WebCore10TextStreamlsEb
</span><span class="cx"> __ZN7WebCore10TextStreamlsEd
</span><span class="lines">@@ -735,6 +736,7 @@
</span><span class="cx"> __ZN7WebCore17MouseRelatedEvent7offsetXEv
</span><span class="cx"> __ZN7WebCore17MouseRelatedEvent7offsetYEv
</span><span class="cx"> __ZN7WebCore17PlatformCAFilters17setFiltersOnLayerEP7CALayerRKNS_16FilterOperationsE
</span><ins>+__ZN7WebCore17PlatformCAFilters23filterValueForOperationEPKNS_15FilterOperationEi
</ins><span class="cx"> __ZN7WebCore17SQLiteTransaction5beginEv
</span><span class="cx"> __ZN7WebCore17SQLiteTransaction6commitEv
</span><span class="cx"> __ZN7WebCore17SQLiteTransaction8rollbackEv
</span><span class="lines">@@ -814,6 +816,7 @@
</span><span class="cx"> __ZN7WebCore19TextResourceDecoderC1ERKN3WTF6StringERKNS_12TextEncodingEb
</span><span class="cx"> __ZN7WebCore19TextResourceDecoderD1Ev
</span><span class="cx"> __ZN7WebCore19enclosingLayoutRectERKNS_9FloatRectE
</span><ins>+__ZN7WebCore19floatValueForLengthERKNS_6LengthEfPNS_10RenderViewE
</ins><span class="cx"> __ZN7WebCore19getFileCreationTimeERKN3WTF6StringERl
</span><span class="cx"> __ZN7WebCore19toInt32EnforceRangeEPN3JSC9ExecStateENS0_7JSValueE
</span><span class="cx"> __ZN7WebCore20ApplicationCacheHost17maybeLoadResourceEPNS_14ResourceLoaderERKNS_15ResourceRequestERKNS_3URLE
</span><span class="lines">@@ -962,7 +965,6 @@
</span><span class="cx"> __ZN7WebCore24FrameDestructionObserverC2EPNS_5FrameE
</span><span class="cx"> __ZN7WebCore24FrameDestructionObserverD2Ev
</span><span class="cx"> __ZN7WebCore24ImmutableStylePropertiesD1Ev
</span><del>-__ZN7WebCore24ReferenceFilterOperationC1ERKN3WTF6StringES4_
</del><span class="cx"> __ZN7WebCore24createFragmentFromMarkupERNS_8DocumentERKN3WTF6StringES5_NS_19ParserContentPolicyE
</span><span class="cx"> __ZN7WebCore24decodeURLEscapeSequencesERKN3WTF6StringE
</span><span class="cx"> __ZN7WebCore24deleteCookiesForHostnameERKNS_21NetworkStorageSessionERKN3WTF6StringE
</span><span class="lines">@@ -1968,6 +1970,7 @@
</span><span class="cx"> __ZTVN7WebCore16IconDatabaseBaseE
</span><span class="cx"> __ZTVN7WebCore17FrameLoaderClientE
</span><span class="cx"> __ZTVN7WebCore19BlurFilterOperationE
</span><ins>+__ZTVN7WebCore22DefaultFilterOperationE
</ins><span class="cx"> __ZTVN7WebCore25DropShadowFilterOperationE
</span><span class="cx"> __ZTVN7WebCore28InspectorFrontendClientLocal8SettingsE
</span><span class="cx"> __ZTVN7WebCore31BasicColorMatrixFilterOperationE
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersFilterOperationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/FilterOperation.h (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/FilterOperation.h        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebCore/platform/graphics/filters/FilterOperation.h        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -69,6 +69,8 @@
</span><span class="cx"> 
</span><span class="cx">     virtual ~FilterOperation() { }
</span><span class="cx"> 
</span><ins>+    virtual PassRefPtr&lt;FilterOperation&gt; clone() const = 0;
+
</ins><span class="cx">     virtual bool operator==(const FilterOperation&amp;) const = 0;
</span><span class="cx">     bool operator!=(const FilterOperation&amp; o) const { return !(*this == o); }
</span><span class="cx"> 
</span><span class="lines">@@ -124,6 +126,11 @@
</span><span class="cx">         return adoptRef(new DefaultFilterOperation(representedType));
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    virtual PassRefPtr&lt;FilterOperation&gt; clone() const override
+    {
+        return adoptRef(new DefaultFilterOperation(representedType()));
+    }
+
</ins><span class="cx">     OperationType representedType() const { return m_representedType; }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="lines">@@ -148,6 +155,11 @@
</span><span class="cx">         return adoptRef(new PassthroughFilterOperation());
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    virtual PassRefPtr&lt;FilterOperation&gt; clone() const override
+    {
+        return adoptRef(new PassthroughFilterOperation());
+    }
+
</ins><span class="cx"> private:
</span><span class="cx">     virtual bool operator==(const FilterOperation&amp; o) const override
</span><span class="cx">     {
</span><span class="lines">@@ -170,6 +182,13 @@
</span><span class="cx">     }
</span><span class="cx">     virtual ~ReferenceFilterOperation();
</span><span class="cx"> 
</span><ins>+    virtual PassRefPtr&lt;FilterOperation&gt; clone() const override
+    {
+        // Reference filters cannot be cloned.
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+
</ins><span class="cx">     virtual bool affectsOpacity() const override { return true; }
</span><span class="cx">     virtual bool movesPixels() const override { return true; }
</span><span class="cx"> 
</span><span class="lines">@@ -204,6 +223,11 @@
</span><span class="cx">         return adoptRef(new BasicColorMatrixFilterOperation(amount, type));
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    virtual PassRefPtr&lt;FilterOperation&gt; clone() const override
+    {
+        return adoptRef(new BasicColorMatrixFilterOperation(amount(), type()));
+    }
+
</ins><span class="cx">     double amount() const { return m_amount; }
</span><span class="cx"> 
</span><span class="cx">     virtual PassRefPtr&lt;FilterOperation&gt; blend(const FilterOperation* from, double progress, bool blendToPassthrough = false) override;
</span><span class="lines">@@ -232,6 +256,11 @@
</span><span class="cx">         return adoptRef(new BasicComponentTransferFilterOperation(amount, type));
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    virtual PassRefPtr&lt;FilterOperation&gt; clone() const override
+    {
+        return adoptRef(new BasicComponentTransferFilterOperation(amount(), type()));
+    }
+
</ins><span class="cx">     double amount() const { return m_amount; }
</span><span class="cx"> 
</span><span class="cx">     virtual bool affectsOpacity() const override { return m_type == OPACITY; }
</span><span class="lines">@@ -261,6 +290,11 @@
</span><span class="cx">         return adoptRef(new BlurFilterOperation(std::move(stdDeviation)));
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    virtual PassRefPtr&lt;FilterOperation&gt; clone() const override
+    {
+        return adoptRef(new BlurFilterOperation(stdDeviation()));
+    }
+
</ins><span class="cx">     const Length&amp; stdDeviation() const { return m_stdDeviation; }
</span><span class="cx"> 
</span><span class="cx">     virtual bool affectsOpacity() const override { return true; }
</span><span class="lines">@@ -289,6 +323,11 @@
</span><span class="cx">         return adoptRef(new DropShadowFilterOperation(location, stdDeviation, color));
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    virtual PassRefPtr&lt;FilterOperation&gt; clone() const override
+    {
+        return adoptRef(new DropShadowFilterOperation(location(), stdDeviation(), color()));
+    }
+
</ins><span class="cx">     int x() const { return m_location.x(); }
</span><span class="cx">     int y() const { return m_location.y(); }
</span><span class="cx">     IntPoint location() const { return m_location; }
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebKit2/ChangeLog        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -1,5 +1,71 @@
</span><span class="cx"> 2014-04-14  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Run filter animations in the UI process with UI-side compositing
+        https://bugs.webkit.org/show_bug.cgi?id=131199
+        &lt;rdar://problem/16479487&gt;
+
+        Reviewed by Sam Weinig.
+        
+        * Shared/WebCoreArgumentCoders.cpp: Removed lots of WebCore::
+        (IPC::ArgumentCoder&lt;SelectionRect&gt;::decode):
+        (IPC::ArgumentCoder&lt;PasteboardWebContent&gt;::encode):
+        (IPC::ArgumentCoder&lt;PasteboardWebContent&gt;::decode):
+        (IPC::ArgumentCoder&lt;PasteboardImage&gt;::encode):
+        (IPC::ArgumentCoder&lt;PasteboardImage&gt;::decode):
+        (IPC::ArgumentCoder&lt;URL&gt;::decode):
+        (IPC::ArgumentCoder&lt;UserStyleSheet&gt;::encode):
+        (IPC::ArgumentCoder&lt;UserStyleSheet&gt;::decode):
+        (IPC::ArgumentCoder&lt;UserScript&gt;::encode):
+        (IPC::ArgumentCoder&lt;UserScript&gt;::decode):
+        (IPC::ArgumentCoder&lt;ScrollableAreaParameters&gt;::encode):
+        (IPC::ArgumentCoder&lt;ScrollableAreaParameters&gt;::decode):
+        (IPC::ArgumentCoder&lt;FixedPositionViewportConstraints&gt;::encode):
+        (IPC::ArgumentCoder&lt;FixedPositionViewportConstraints&gt;::decode):
+        (IPC::ArgumentCoder&lt;StickyPositionViewportConstraints&gt;::encode):
+        (IPC::ArgumentCoder&lt;StickyPositionViewportConstraints&gt;::decode):
+        (IPC::ArgumentCoder&lt;FilterOperation&gt;::encode):
+        (IPC::decodeFilterOperation):
+        (IPC::ArgumentCoder&lt;FilterOperations&gt;::encode):
+        (IPC::ArgumentCoder&lt;WebCore::UserStyleSheet&gt;::encode): Deleted.
+        (IPC::ArgumentCoder&lt;WebCore::UserStyleSheet&gt;::decode): Deleted.
+        (IPC::ArgumentCoder&lt;WebCore::UserScript&gt;::encode): Deleted.
+        (IPC::ArgumentCoder&lt;WebCore::UserScript&gt;::decode): Deleted.
+        (IPC::ArgumentCoder&lt;WebCore::ScrollableAreaParameters&gt;::encode): Deleted.
+        (IPC::ArgumentCoder&lt;WebCore::ScrollableAreaParameters&gt;::decode): Deleted.
+        (IPC::ArgumentCoder&lt;WebCore::FixedPositionViewportConstraints&gt;::encode): Deleted.
+        (IPC::ArgumentCoder&lt;WebCore::FixedPositionViewportConstraints&gt;::decode): Deleted.
+        (IPC::ArgumentCoder&lt;WebCore::StickyPositionViewportConstraints&gt;::encode): Deleted.
+        (IPC::ArgumentCoder&lt;WebCore::StickyPositionViewportConstraints&gt;::decode): Deleted.
+        (IPC::encodeFilterOperation): Deleted.
+        Add encoding/decoding support for FilterOperation.
+        decodeFilterOperation() has to be a bare function because of the RefPtr
+        out parameter.
+        REFERENCE filters should never be encoded, since they have CachedSVGDocumentReferences.
+
+        * Shared/WebCoreArgumentCoders.h:
+
+        * Shared/mac/RemoteLayerTreeTransaction.mm:
+        (WebKit::RemoteLayerTreeTextStream::operator&lt;&lt;):
+        Add logging for filter animations to the RemoteLayerTree log output.
+
+        * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
+        * WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp:
+        (WebKit::GraphicsLayerCARemote::addAnimation): Deleted. We can run
+        filter animations now.
+
+        * WebProcess/WebPage/mac/PlatformCAAnimationRemote.h:
+        KeyValues have a RefPtr&lt;WebCore::FilterOperation&gt; now (which can't be part of
+        the union because we need its constructor to get called).
+        * WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm:
+        (WebKit::PlatformCAAnimationRemote::KeyframeValue::encode): Encode the filter.
+        (WebKit::PlatformCAAnimationRemote::KeyframeValue::decode): Decode the filter.
+        (WebKit::PlatformCAAnimationRemote::setFromValue): Implement.
+        (WebKit::PlatformCAAnimationRemote::setToValue): Implement.
+        (WebKit::PlatformCAAnimationRemote::setValues): Implement.
+        (WebKit::animationValueFromKeyframeValue): Handle filters.
+
+2014-04-14  Simon Fraser  &lt;simon.fraser@apple.com&gt;
+
</ins><span class="cx">         Fix the build.
</span><span class="cx"> 
</span><span class="cx">         * UIProcess/mac/PageClientImpl.h:
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebCoreArgumentCoderscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.cpp (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.cpp        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.cpp        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -276,9 +276,9 @@
</span><span class="cx">     return SimpleArgumentCoder&lt;IntSize&gt;::decode(decoder, intSize);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-template&lt;&gt; struct ArgumentCoder&lt;WebCore::Region::Span&gt; {
-    static void encode(ArgumentEncoder&amp;, const WebCore::Region::Span&amp;);
-    static bool decode(ArgumentDecoder&amp;, WebCore::Region::Span&amp;);
</del><ins>+template&lt;&gt; struct ArgumentCoder&lt;Region::Span&gt; {
+    static void encode(ArgumentEncoder&amp;, const Region::Span&amp;);
+    static bool decode(ArgumentDecoder&amp;, Region::Span&amp;);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> void ArgumentCoder&lt;Region::Span&gt;::encode(ArgumentEncoder&amp; encoder, const Region::Span&amp; span)
</span><span class="lines">@@ -842,7 +842,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool ArgumentCoder&lt;SelectionRect&gt;::decode(ArgumentDecoder&amp; decoder, SelectionRect&amp; selectionRect)
</span><span class="cx"> {
</span><del>-    WebCore::IntRect rect;
</del><ins>+    IntRect rect;
</ins><span class="cx">     if (!decoder.decode(rect))
</span><span class="cx">         return false;
</span><span class="cx">     selectionRect.setRect(rect);
</span><span class="lines">@@ -850,7 +850,7 @@
</span><span class="cx">     uint32_t direction;
</span><span class="cx">     if (!decoder.decode(direction))
</span><span class="cx">         return false;
</span><del>-    selectionRect.setDirection((WebCore::TextDirection)direction);
</del><ins>+    selectionRect.setDirection((TextDirection)direction);
</ins><span class="cx"> 
</span><span class="cx">     int intValue;
</span><span class="cx">     if (!decoder.decode(intValue))
</span><span class="lines">@@ -1121,7 +1121,7 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ArgumentCoder&lt;PasteboardWebContent&gt;::encode(ArgumentEncoder&amp; encoder, const WebCore::PasteboardWebContent&amp; content)
</del><ins>+void ArgumentCoder&lt;PasteboardWebContent&gt;::encode(ArgumentEncoder&amp; encoder, const PasteboardWebContent&amp; content)
</ins><span class="cx"> {
</span><span class="cx">     encoder &lt;&lt; content.canSmartCopyOrDelete;
</span><span class="cx">     encoder &lt;&lt; content.dataInStringFormat;
</span><span class="lines">@@ -1136,7 +1136,7 @@
</span><span class="cx">         encodeSharedBuffer(encoder, content.clientData[i].get());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool ArgumentCoder&lt;PasteboardWebContent&gt;::decode(ArgumentDecoder&amp; decoder, WebCore::PasteboardWebContent&amp; content)
</del><ins>+bool ArgumentCoder&lt;PasteboardWebContent&gt;::decode(ArgumentDecoder&amp; decoder, PasteboardWebContent&amp; content)
</ins><span class="cx"> {
</span><span class="cx">     if (!decoder.decode(content.canSmartCopyOrDelete))
</span><span class="cx">         return false;
</span><span class="lines">@@ -1160,7 +1160,7 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ArgumentCoder&lt;PasteboardImage&gt;::encode(ArgumentEncoder&amp; encoder, const WebCore::PasteboardImage&amp; pasteboardImage)
</del><ins>+void ArgumentCoder&lt;PasteboardImage&gt;::encode(ArgumentEncoder&amp; encoder, const PasteboardImage&amp; pasteboardImage)
</ins><span class="cx"> {
</span><span class="cx">     encodeImage(encoder, pasteboardImage.image.get());
</span><span class="cx">     encoder &lt;&lt; pasteboardImage.url.url;
</span><span class="lines">@@ -1170,7 +1170,7 @@
</span><span class="cx">         encodeSharedBuffer(encoder, pasteboardImage.resourceData.get());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool ArgumentCoder&lt;PasteboardImage&gt;::decode(ArgumentDecoder&amp; decoder, WebCore::PasteboardImage&amp; pasteboardImage)
</del><ins>+bool ArgumentCoder&lt;PasteboardImage&gt;::decode(ArgumentDecoder&amp; decoder, PasteboardImage&amp; pasteboardImage)
</ins><span class="cx"> {
</span><span class="cx">     if (!decodeImage(decoder, pasteboardImage.image))
</span><span class="cx">         return false;
</span><span class="lines">@@ -1319,11 +1319,11 @@
</span><span class="cx">     String urlAsString;
</span><span class="cx">     if (!decoder.decode(urlAsString))
</span><span class="cx">         return false;
</span><del>-    result = URL(WebCore::ParsedURLString, urlAsString);
</del><ins>+    result = URL(ParsedURLString, urlAsString);
</ins><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ArgumentCoder&lt;WebCore::UserStyleSheet&gt;::encode(ArgumentEncoder&amp; encoder, const WebCore::UserStyleSheet&amp; userStyleSheet)
</del><ins>+void ArgumentCoder&lt;UserStyleSheet&gt;::encode(ArgumentEncoder&amp; encoder, const UserStyleSheet&amp; userStyleSheet)
</ins><span class="cx"> {
</span><span class="cx">     encoder &lt;&lt; userStyleSheet.source();
</span><span class="cx">     encoder &lt;&lt; userStyleSheet.url();
</span><span class="lines">@@ -1333,7 +1333,7 @@
</span><span class="cx">     encoder.encodeEnum(userStyleSheet.level());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool ArgumentCoder&lt;WebCore::UserStyleSheet&gt;::decode(ArgumentDecoder&amp; decoder, WebCore::UserStyleSheet&amp; userStyleSheet)
</del><ins>+bool ArgumentCoder&lt;UserStyleSheet&gt;::decode(ArgumentDecoder&amp; decoder, UserStyleSheet&amp; userStyleSheet)
</ins><span class="cx"> {
</span><span class="cx">     String source;
</span><span class="cx">     if (!decoder.decode(source))
</span><span class="lines">@@ -1351,19 +1351,19 @@
</span><span class="cx">     if (!decoder.decode(blacklist))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    WebCore::UserContentInjectedFrames injectedFrames;
</del><ins>+    UserContentInjectedFrames injectedFrames;
</ins><span class="cx">     if (!decoder.decodeEnum(injectedFrames))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    WebCore::UserStyleLevel level;
</del><ins>+    UserStyleLevel level;
</ins><span class="cx">     if (!decoder.decodeEnum(level))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    userStyleSheet = WebCore::UserStyleSheet(source, url, whitelist, blacklist, injectedFrames, level);
</del><ins>+    userStyleSheet = UserStyleSheet(source, url, whitelist, blacklist, injectedFrames, level);
</ins><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ArgumentCoder&lt;WebCore::UserScript&gt;::encode(ArgumentEncoder&amp; encoder, const WebCore::UserScript&amp; userScript)
</del><ins>+void ArgumentCoder&lt;UserScript&gt;::encode(ArgumentEncoder&amp; encoder, const UserScript&amp; userScript)
</ins><span class="cx"> {
</span><span class="cx">     encoder &lt;&lt; userScript.source();
</span><span class="cx">     encoder &lt;&lt; userScript.url();
</span><span class="lines">@@ -1373,7 +1373,7 @@
</span><span class="cx">     encoder.encodeEnum(userScript.injectedFrames());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool ArgumentCoder&lt;WebCore::UserScript&gt;::decode(ArgumentDecoder&amp; decoder, WebCore::UserScript&amp; userScript)
</del><ins>+bool ArgumentCoder&lt;UserScript&gt;::decode(ArgumentDecoder&amp; decoder, UserScript&amp; userScript)
</ins><span class="cx"> {
</span><span class="cx">     String source;
</span><span class="cx">     if (!decoder.decode(source))
</span><span class="lines">@@ -1391,19 +1391,19 @@
</span><span class="cx">     if (!decoder.decode(blacklist))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    WebCore::UserScriptInjectionTime injectionTime;
</del><ins>+    UserScriptInjectionTime injectionTime;
</ins><span class="cx">     if (!decoder.decodeEnum(injectionTime))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    WebCore::UserContentInjectedFrames injectedFrames;
</del><ins>+    UserContentInjectedFrames injectedFrames;
</ins><span class="cx">     if (!decoder.decodeEnum(injectedFrames))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    userScript = WebCore::UserScript(source, url, whitelist, blacklist, injectionTime, injectedFrames);
</del><ins>+    userScript = UserScript(source, url, whitelist, blacklist, injectionTime, injectedFrames);
</ins><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ArgumentCoder&lt;WebCore::ScrollableAreaParameters&gt;::encode(ArgumentEncoder&amp; encoder, const WebCore::ScrollableAreaParameters&amp; parameters)
</del><ins>+void ArgumentCoder&lt;ScrollableAreaParameters&gt;::encode(ArgumentEncoder&amp; encoder, const ScrollableAreaParameters&amp; parameters)
</ins><span class="cx"> {
</span><span class="cx">     encoder.encodeEnum(parameters.horizontalScrollElasticity);
</span><span class="cx">     encoder.encodeEnum(parameters.verticalScrollElasticity);
</span><span class="lines">@@ -1415,7 +1415,7 @@
</span><span class="cx">     encoder &lt;&lt; parameters.hasEnabledVerticalScrollbar;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool ArgumentCoder&lt;WebCore::ScrollableAreaParameters&gt;::decode(ArgumentDecoder&amp; decoder, WebCore::ScrollableAreaParameters&amp; params)
</del><ins>+bool ArgumentCoder&lt;ScrollableAreaParameters&gt;::decode(ArgumentDecoder&amp; decoder, ScrollableAreaParameters&amp; params)
</ins><span class="cx"> {
</span><span class="cx">     if (!decoder.decodeEnum(params.horizontalScrollElasticity))
</span><span class="cx">         return false;
</span><span class="lines">@@ -1435,7 +1435,7 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ArgumentCoder&lt;WebCore::FixedPositionViewportConstraints&gt;::encode(ArgumentEncoder&amp; encoder, const WebCore::FixedPositionViewportConstraints&amp; viewportConstraints)
</del><ins>+void ArgumentCoder&lt;FixedPositionViewportConstraints&gt;::encode(ArgumentEncoder&amp; encoder, const FixedPositionViewportConstraints&amp; viewportConstraints)
</ins><span class="cx"> {
</span><span class="cx">     encoder &lt;&lt; viewportConstraints.alignmentOffset();
</span><span class="cx">     encoder &lt;&lt; viewportConstraints.anchorEdges();
</span><span class="lines">@@ -1444,7 +1444,7 @@
</span><span class="cx">     encoder &lt;&lt; viewportConstraints.layerPositionAtLastLayout();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool ArgumentCoder&lt;WebCore::FixedPositionViewportConstraints&gt;::decode(ArgumentDecoder&amp; decoder, WebCore::FixedPositionViewportConstraints&amp; viewportConstraints)
</del><ins>+bool ArgumentCoder&lt;FixedPositionViewportConstraints&gt;::decode(ArgumentDecoder&amp; decoder, FixedPositionViewportConstraints&amp; viewportConstraints)
</ins><span class="cx"> {
</span><span class="cx">     FloatSize alignmentOffset;
</span><span class="cx">     if (!decoder.decode(alignmentOffset))
</span><span class="lines">@@ -1462,7 +1462,7 @@
</span><span class="cx">     if (!decoder.decode(layerPositionAtLastLayout))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    viewportConstraints = WebCore::FixedPositionViewportConstraints();
</del><ins>+    viewportConstraints = FixedPositionViewportConstraints();
</ins><span class="cx">     viewportConstraints.setAlignmentOffset(alignmentOffset);
</span><span class="cx">     viewportConstraints.setAnchorEdges(anchorEdges);
</span><span class="cx"> 
</span><span class="lines">@@ -1472,7 +1472,7 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ArgumentCoder&lt;WebCore::StickyPositionViewportConstraints&gt;::encode(ArgumentEncoder&amp; encoder, const WebCore::StickyPositionViewportConstraints&amp; viewportConstraints)
</del><ins>+void ArgumentCoder&lt;StickyPositionViewportConstraints&gt;::encode(ArgumentEncoder&amp; encoder, const StickyPositionViewportConstraints&amp; viewportConstraints)
</ins><span class="cx"> {
</span><span class="cx">     encoder &lt;&lt; viewportConstraints.alignmentOffset();
</span><span class="cx">     encoder &lt;&lt; viewportConstraints.anchorEdges();
</span><span class="lines">@@ -1490,7 +1490,7 @@
</span><span class="cx">     encoder &lt;&lt; viewportConstraints.layerPositionAtLastLayout();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool ArgumentCoder&lt;WebCore::StickyPositionViewportConstraints&gt;::decode(ArgumentDecoder&amp; decoder, WebCore::StickyPositionViewportConstraints&amp; viewportConstraints)
</del><ins>+bool ArgumentCoder&lt;StickyPositionViewportConstraints&gt;::decode(ArgumentDecoder&amp; decoder, StickyPositionViewportConstraints&amp; viewportConstraints)
</ins><span class="cx"> {
</span><span class="cx">     FloatSize alignmentOffset;
</span><span class="cx">     if (!decoder.decode(alignmentOffset))
</span><span class="lines">@@ -1536,7 +1536,7 @@
</span><span class="cx">     if (!decoder.decode(layerPositionAtLastLayout))
</span><span class="cx">         return false;
</span><span class="cx">     
</span><del>-    viewportConstraints = WebCore::StickyPositionViewportConstraints();
</del><ins>+    viewportConstraints = StickyPositionViewportConstraints();
</ins><span class="cx">     viewportConstraints.setAlignmentOffset(alignmentOffset);
</span><span class="cx">     viewportConstraints.setAnchorEdges(anchorEdges);
</span><span class="cx"> 
</span><span class="lines">@@ -1556,63 +1556,58 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_FILTERS) &amp;&amp; !USE(COORDINATED_GRAPHICS)
</span><del>-static void encodeFilterOperation(ArgumentEncoder&amp; encoder, const FilterOperation&amp; filter)
</del><ins>+void ArgumentCoder&lt;FilterOperation&gt;::encode(ArgumentEncoder&amp; encoder, const FilterOperation&amp; filter)
</ins><span class="cx"> {
</span><span class="cx">     encoder.encodeEnum(filter.type());
</span><span class="cx"> 
</span><span class="cx">     switch (filter.type()) {
</span><span class="cx">     case FilterOperation::REFERENCE: {
</span><del>-        const auto&amp; referenceFilter = static_cast&lt;const ReferenceFilterOperation&amp;&gt;(filter);
-        encoder &lt;&lt; referenceFilter.url();
-        encoder &lt;&lt; referenceFilter.fragment();
</del><ins>+        ASSERT_NOT_REACHED();
</ins><span class="cx">         break;
</span><span class="cx">     }
</span><span class="cx">     case FilterOperation::GRAYSCALE:
</span><span class="cx">     case FilterOperation::SEPIA:
</span><span class="cx">     case FilterOperation::SATURATE:
</span><span class="cx">     case FilterOperation::HUE_ROTATE:
</span><del>-        encoder &lt;&lt; static_cast&lt;const BasicColorMatrixFilterOperation&amp;&gt;(filter).amount();
</del><ins>+        encoder &lt;&lt; toBasicColorMatrixFilterOperation(filter).amount();
</ins><span class="cx">         break;
</span><span class="cx">     case FilterOperation::INVERT:
</span><span class="cx">     case FilterOperation::OPACITY:
</span><span class="cx">     case FilterOperation::BRIGHTNESS:
</span><span class="cx">     case FilterOperation::CONTRAST:
</span><del>-        encoder &lt;&lt; static_cast&lt;const BasicComponentTransferFilterOperation&amp;&gt;(filter).amount();
</del><ins>+        encoder &lt;&lt; toBasicComponentTransferFilterOperation(filter).amount();
</ins><span class="cx">         break;
</span><span class="cx">     case FilterOperation::BLUR:
</span><del>-        encoder &lt;&lt; static_cast&lt;const BlurFilterOperation&amp;&gt;(filter).stdDeviation();
</del><ins>+        encoder &lt;&lt; toBlurFilterOperation(filter).stdDeviation();
</ins><span class="cx">         break;
</span><span class="cx">     case FilterOperation::DROP_SHADOW: {
</span><del>-        const auto&amp; dropShadowFilter = static_cast&lt;const DropShadowFilterOperation&amp;&gt;(filter);
</del><ins>+        const auto&amp; dropShadowFilter = toDropShadowFilterOperation(filter);
</ins><span class="cx">         encoder &lt;&lt; dropShadowFilter.location();
</span><span class="cx">         encoder &lt;&lt; dropShadowFilter.stdDeviation();
</span><span class="cx">         encoder &lt;&lt; dropShadowFilter.color();
</span><span class="cx">         break;
</span><span class="cx">     }
</span><span class="cx">     case FilterOperation::DEFAULT:
</span><ins>+        encoder.encodeEnum(toDefaultFilterOperation(filter).representedType());
+        break;
</ins><span class="cx">     case FilterOperation::PASSTHROUGH:
</span><span class="cx">     case FilterOperation::NONE:
</span><span class="cx">         break;
</span><del>-    };
</del><ins>+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-static bool decodeFilterOperation(ArgumentDecoder&amp; decoder, RefPtr&lt;FilterOperation&gt;&amp; filter)
</del><ins>+bool decodeFilterOperation(ArgumentDecoder&amp; decoder, RefPtr&lt;FilterOperation&gt;&amp; filter)
</ins><span class="cx"> {
</span><span class="cx">     FilterOperation::OperationType type;
</span><span class="cx">     if (!decoder.decodeEnum(type))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     switch (type) {
</span><del>-    case FilterOperation::REFERENCE: {
-        String url;
-        String fragment;
-        if (!decoder.decode(url))
-            return false;
-        if (!decoder.decode(fragment))
-            return false;
-        filter = ReferenceFilterOperation::create(url, fragment);
</del><ins>+    case FilterOperation::PASSTHROUGH:
+    case FilterOperation::NONE:
+    case FilterOperation::REFERENCE:
+        ASSERT_NOT_REACHED();
</ins><span class="cx">         break;
</span><del>-    }
</del><span class="cx">     case FilterOperation::GRAYSCALE:
</span><span class="cx">     case FilterOperation::SEPIA:
</span><span class="cx">     case FilterOperation::SATURATE:
</span><span class="lines">@@ -1653,12 +1648,15 @@
</span><span class="cx">         filter = DropShadowFilterOperation::create(location, stdDeviation, color);
</span><span class="cx">         break;
</span><span class="cx">     }
</span><del>-    case FilterOperation::DEFAULT:
-    case FilterOperation::PASSTHROUGH:
-    case FilterOperation::NONE:
</del><ins>+    case FilterOperation::DEFAULT: {
+        FilterOperation::OperationType representedType;
+        if (!decoder.decodeEnum(representedType))
+            return false;
+        filter = DefaultFilterOperation::create(representedType);
</ins><span class="cx">         break;
</span><del>-    };
-
</del><ins>+    }
+    }
+            
</ins><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1668,7 +1666,7 @@
</span><span class="cx">     encoder &lt;&lt; static_cast&lt;uint64_t&gt;(filters.size());
</span><span class="cx"> 
</span><span class="cx">     for (const auto&amp; filter : filters.operations())
</span><del>-        encodeFilterOperation(encoder, *filter);
</del><ins>+        encoder &lt;&lt; *filter;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool ArgumentCoder&lt;FilterOperations&gt;::decode(ArgumentDecoder&amp; decoder, FilterOperations&amp; filters)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebCoreArgumentCodersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.h (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.h        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.h        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -37,6 +37,7 @@
</span><span class="cx"> class CubicBezierTimingFunction;
</span><span class="cx"> class Cursor;
</span><span class="cx"> class DatabaseDetails;
</span><ins>+class FilterOperation;
</ins><span class="cx"> class FilterOperations;
</span><span class="cx"> class FloatPoint;
</span><span class="cx"> class FloatPoint3D;
</span><span class="lines">@@ -373,6 +374,11 @@
</span><span class="cx">     static void encode(ArgumentEncoder&amp;, const WebCore::FilterOperations&amp;);
</span><span class="cx">     static bool decode(ArgumentDecoder&amp;, WebCore::FilterOperations&amp;);
</span><span class="cx"> };
</span><ins>+    
+template&lt;&gt; struct ArgumentCoder&lt;WebCore::FilterOperation&gt; {
+    static void encode(ArgumentEncoder&amp;, const WebCore::FilterOperation&amp;);
+};
+bool decodeFilterOperation(ArgumentDecoder&amp;, RefPtr&lt;WebCore::FilterOperation&gt;&amp;);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(INDEXED_DATABASE)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedmacRemoteLayerTreeTransactionmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -33,6 +33,7 @@
</span><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><ins>+#import &lt;WebCore/LengthFunctions.h&gt;
</ins><span class="cx"> #import &lt;WebCore/TextStream.h&gt;
</span><span class="cx"> #import &lt;WebCore/TimingFunction.h&gt;
</span><span class="cx"> #import &lt;wtf/text/CString.h&gt;
</span><span class="lines">@@ -562,6 +563,7 @@
</span><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(Color);
</span><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(FloatRect);
</span><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const Vector&lt;WebCore::GraphicsLayer::PlatformLayerID&gt;&amp;);
</span><ins>+    RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const FilterOperation&amp;);
</ins><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const FilterOperations&amp;);
</span><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const PlatformCAAnimationRemote::Properties&amp;);
</span><span class="cx">     RemoteLayerTreeTextStream&amp; operator&lt;&lt;(const RemoteLayerBackingStore&amp;);
</span><span class="lines">@@ -633,57 +635,86 @@
</span><span class="cx">     RemoteLayerTreeTextStream&amp; ts = *this;
</span><span class="cx">     for (size_t i = 0; i &lt; filters.size(); ++i) {
</span><span class="cx">         const auto filter = filters.at(i);
</span><del>-        switch (filter-&gt;type()) {
-        case FilterOperation::DEFAULT:
-            ts &lt;&lt; &quot;default&quot;;
-            break;
-        case FilterOperation::REFERENCE:
-            ts &lt;&lt; &quot;reference&quot;;
-            break;
-        case FilterOperation::GRAYSCALE:
-            ts &lt;&lt; &quot;grayscale&quot;;
-            break;
-        case FilterOperation::SEPIA:
-            ts &lt;&lt; &quot;sepia&quot;;
-            break;
-        case FilterOperation::SATURATE:
-            ts &lt;&lt; &quot;saturate&quot;;
-            break;
-        case FilterOperation::HUE_ROTATE:
-            ts &lt;&lt; &quot;hue rotate&quot;;
-            break;
-        case FilterOperation::INVERT:
-            ts &lt;&lt; &quot;invert&quot;;
-            break;
-        case FilterOperation::OPACITY:
-            ts &lt;&lt; &quot;opacity&quot;;
-            break;
-        case FilterOperation::BRIGHTNESS:
-            ts &lt;&lt; &quot;brightness&quot;;
-            break;
-        case FilterOperation::CONTRAST:
-            ts &lt;&lt; &quot;contrast&quot;;
-            break;
-        case FilterOperation::BLUR:
-            ts &lt;&lt; &quot;blur&quot;;
-            break;
-        case FilterOperation::DROP_SHADOW:
-            ts &lt;&lt; &quot;drop shadow&quot;;
-            break;
-        case FilterOperation::PASSTHROUGH:
-            ts &lt;&lt; &quot;passthrough&quot;;
-            break;
-        case FilterOperation::NONE:
-            ts &lt;&lt; &quot;none&quot;;
-            break;
-        }
-
</del><ins>+        ts &lt;&lt; *filter;
</ins><span class="cx">         if (i &lt; filters.size() - 1)
</span><span class="cx">             ts &lt;&lt; &quot; &quot;;
</span><span class="cx">     }
</span><span class="cx">     return ts;
</span><span class="cx"> }
</span><del>-
</del><ins>+    
+RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(const FilterOperation&amp; filter)
+{
+    RemoteLayerTreeTextStream&amp; ts = *this;
+    switch (filter.type()) {
+    case FilterOperation::REFERENCE:
+        ts &lt;&lt; &quot;reference&quot;;
+        break;
+    case FilterOperation::GRAYSCALE: {
+        const BasicColorMatrixFilterOperation&amp; colorMatrixFilter = toBasicColorMatrixFilterOperation(filter);
+        ts &lt;&lt; &quot;grayscale(&quot; &lt;&lt; colorMatrixFilter.amount() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::SEPIA: {
+        const BasicColorMatrixFilterOperation&amp; colorMatrixFilter = toBasicColorMatrixFilterOperation(filter);
+        ts &lt;&lt; &quot;sepia(&quot; &lt;&lt; colorMatrixFilter.amount() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::SATURATE: {
+        const BasicColorMatrixFilterOperation&amp; colorMatrixFilter = toBasicColorMatrixFilterOperation(filter);
+        ts &lt;&lt; &quot;saturate(&quot; &lt;&lt; colorMatrixFilter.amount() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::HUE_ROTATE: {
+        const BasicColorMatrixFilterOperation&amp; colorMatrixFilter = toBasicColorMatrixFilterOperation(filter);
+        ts &lt;&lt; &quot;hue-rotate(&quot; &lt;&lt; colorMatrixFilter.amount() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::INVERT: {
+        const BasicComponentTransferFilterOperation&amp; componentTransferFilter = toBasicComponentTransferFilterOperation(filter);
+        ts &lt;&lt; &quot;invert(&quot; &lt;&lt; componentTransferFilter.amount() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::OPACITY: {
+        const BasicComponentTransferFilterOperation&amp; componentTransferFilter = toBasicComponentTransferFilterOperation(filter);
+        ts &lt;&lt; &quot;opacity(&quot; &lt;&lt; componentTransferFilter.amount() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::BRIGHTNESS: {
+        const BasicComponentTransferFilterOperation&amp; componentTransferFilter = toBasicComponentTransferFilterOperation(filter);
+        ts &lt;&lt; &quot;brightness(&quot; &lt;&lt; componentTransferFilter.amount() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::CONTRAST: {
+        const BasicComponentTransferFilterOperation&amp; componentTransferFilter = toBasicComponentTransferFilterOperation(filter);
+        ts &lt;&lt; &quot;contrast(&quot; &lt;&lt; componentTransferFilter.amount() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::BLUR: {
+        const BlurFilterOperation&amp; blurFilter = toBlurFilterOperation(filter);
+        ts &lt;&lt; &quot;blur(&quot; &lt;&lt; floatValueForLength(blurFilter.stdDeviation(), 0) &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::DROP_SHADOW: {
+        const DropShadowFilterOperation&amp; dropShadowFilter = toDropShadowFilterOperation(filter);
+        ts &lt;&lt; &quot;drop-shadow(&quot; &lt;&lt; dropShadowFilter.x() &lt;&lt; &quot; &quot; &lt;&lt; dropShadowFilter.y() &lt;&lt; &quot; &quot; &lt;&lt; dropShadowFilter.location() &lt;&lt; &quot; &quot;;
+        ts &lt;&lt; dropShadowFilter.color() &lt;&lt; &quot;)&quot;;
+        break;
+    }
+    case FilterOperation::PASSTHROUGH:
+        ts &lt;&lt; &quot;passthrough&quot;;
+        break;
+    case FilterOperation::DEFAULT: {
+        const DefaultFilterOperation&amp; defaultFilter = toDefaultFilterOperation(filter);
+        ts &lt;&lt; &quot;default type=&quot; &lt;&lt; (int)defaultFilter.representedType();
+        break;
+    }
+    case FilterOperation::NONE:
+        ts &lt;&lt; &quot;none&quot;;
+        break;
+    }
+    return ts;
+}
+    
</ins><span class="cx"> RemoteLayerTreeTextStream&amp; RemoteLayerTreeTextStream::operator&lt;&lt;(PlatformCAAnimation::AnimationType type)
</span><span class="cx"> {
</span><span class="cx">     RemoteLayerTreeTextStream&amp; ts = *this;
</span><span class="lines">@@ -746,6 +777,13 @@
</span><span class="cx">         ts &lt;&lt; &quot;transform=&quot;;
</span><span class="cx">         ts &lt;&lt; value.transformValue();
</span><span class="cx">         break;
</span><ins>+    case PlatformCAAnimationRemote::KeyframeValue::FilterKeyType:
+        ts &lt;&lt; &quot;filter=&quot;;
+        if (value.filterValue())
+            ts &lt;&lt; *value.filterValue();
+        else
+            ts &lt;&lt; &quot;null&quot;;
+        break;
</ins><span class="cx">     }
</span><span class="cx">     return ts;
</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 (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -58,14 +58,4 @@
</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; boxSize, const Animation* anim, const String&amp; animationName, double timeOffset)
-{
-#if ENABLE(CSS_FILTERS)
-    if (valueList.property() == AnimatedPropertyWebkitFilter)
-        return false;
-#endif
-    
-    return GraphicsLayerCA::addAnimation(valueList, boxSize, anim, animationName, timeOffset);
-}
-
</del><span class="cx"> } // namespace WebKit
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacGraphicsLayerCARemoteh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.h (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.h        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/GraphicsLayerCARemote.h        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -57,8 +57,6 @@
</span><span class="cx">     // PlatformCALayerRemote can't currently proxy directly composited image contents, so opt out of this optimization.
</span><span class="cx">     virtual bool shouldDirectlyCompositeImage(WebCore::Image*) const override { return false; }
</span><span class="cx">     
</span><del>-    virtual bool addAnimation(const WebCore::KeyframeValueList&amp;, const WebCore::FloatSize&amp;, const WebCore::Animation*, const String&amp;, double);
-    
</del><span class="cx">     RemoteLayerTreeContext* m_context;
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacPlatformCAAnimationRemoteh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.h (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.h        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.h        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -50,15 +50,15 @@
</span><span class="cx">     virtual bool isPlatformCAAnimationRemote() const override { return true; }
</span><span class="cx"> 
</span><span class="cx">     virtual PassRefPtr&lt;PlatformCAAnimation&gt; copy() const override;
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual String keyPath() const override;
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual CFTimeInterval beginTime() const override;
</span><span class="cx">     virtual void setBeginTime(CFTimeInterval) override;
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual CFTimeInterval duration() const override;
</span><span class="cx">     virtual void setDuration(CFTimeInterval) override;
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual float speed() const override;
</span><span class="cx">     virtual void setSpeed(float) override;
</span><span class="cx"> 
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx"> 
</span><span class="cx">     virtual FillModeType fillMode() const override;
</span><span class="cx">     virtual void setFillMode(FillModeType) override;
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual void setTimingFunction(const WebCore::TimingFunction*, bool reverse = false) override;
</span><span class="cx">     void copyTimingFunctionFrom(const WebCore::PlatformCAAnimation*) override;
</span><span class="cx"> 
</span><span class="lines">@@ -128,8 +128,13 @@
</span><span class="cx">             ColorKeyType,
</span><span class="cx">             PointKeyType,
</span><span class="cx">             TransformKeyType,
</span><ins>+            FilterKeyType,
</ins><span class="cx">         };
</span><span class="cx"> 
</span><ins>+        ~KeyframeValue()
+        {
+        }
+
</ins><span class="cx">         KeyframeValue(float value = 0)
</span><span class="cx">             : keyType(NumberKeyType)
</span><span class="cx">             , number(value)
</span><span class="lines">@@ -153,7 +158,13 @@
</span><span class="cx">             , transform(value)
</span><span class="cx">         {
</span><span class="cx">         }
</span><del>-        
</del><ins>+
+        KeyframeValue(PassRefPtr&lt;WebCore::FilterOperation&gt; value)
+            : keyType(FilterKeyType)
+            , filter(value)
+        {
+        }
+
</ins><span class="cx">         KeyframeValue(const KeyframeValue&amp; other)
</span><span class="cx">         {
</span><span class="cx">             *this = other;
</span><span class="lines">@@ -175,11 +186,14 @@
</span><span class="cx">             case TransformKeyType:
</span><span class="cx">                 transform = other.transform;
</span><span class="cx">                 break;
</span><ins>+            case FilterKeyType:
+                filter = other.filter;
+                break;
</ins><span class="cx">             }
</span><del>-            
</del><ins>+
</ins><span class="cx">             return *this;
</span><span class="cx">         }
</span><del>-        
</del><ins>+
</ins><span class="cx">         KeyframeType keyframeType() const { return keyType; }
</span><span class="cx"> 
</span><span class="cx">         float numberValue() const
</span><span class="lines">@@ -206,6 +220,12 @@
</span><span class="cx">             return transform;
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        const WebCore::FilterOperation* filterValue() const
+        {
+            ASSERT(keyType == FilterKeyType);
+            return filter.get();
+        }
+
</ins><span class="cx">         void encode(IPC::ArgumentEncoder&amp;) const;
</span><span class="cx">         static bool decode(IPC::ArgumentDecoder&amp;, KeyframeValue&amp;);
</span><span class="cx"> 
</span><span class="lines">@@ -217,6 +237,7 @@
</span><span class="cx">             WebCore::FloatPoint3D point;
</span><span class="cx">             WebCore::TransformationMatrix transform;
</span><span class="cx">         };
</span><ins>+        RefPtr&lt;WebCore::FilterOperation&gt; filter;
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     struct Properties {
</span><span class="lines">@@ -234,10 +255,9 @@
</span><span class="cx">             , additive(false)
</span><span class="cx">             , reverseTimingFunctions(false)
</span><span class="cx">             , hasNonZeroBeginTime(false)
</span><del>-        
</del><span class="cx">         {
</span><span class="cx">         }
</span><del>-        
</del><ins>+
</ins><span class="cx">         void encode(IPC::ArgumentEncoder&amp;) const;
</span><span class="cx">         static bool decode(IPC::ArgumentDecoder&amp;, Properties&amp;);
</span><span class="cx"> 
</span><span class="lines">@@ -249,10 +269,10 @@
</span><span class="cx">         double timeOffset;
</span><span class="cx">         float repeatCount;
</span><span class="cx">         float speed;
</span><del>-        
</del><ins>+
</ins><span class="cx">         PlatformCAAnimation::FillModeType fillMode;
</span><span class="cx">         PlatformCAAnimation::ValueFunctionType valueFunction;
</span><del>-        
</del><ins>+
</ins><span class="cx">         bool autoReverses;
</span><span class="cx">         bool removedOnCompletion;
</span><span class="cx">         bool additive;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacPlatformCAAnimationRemotemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm (167265 => 167266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm        2014-04-14 20:38:26 UTC (rev 167265)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm        2014-04-14 20:46:26 UTC (rev 167266)
</span><span class="lines">@@ -32,6 +32,7 @@
</span><span class="cx"> #import &lt;WebCore/BlockExceptions.h&gt;
</span><span class="cx"> #import &lt;WebCore/GraphicsLayer.h&gt;
</span><span class="cx"> #import &lt;WebCore/PlatformCAAnimationMac.h&gt;
</span><ins>+#import &lt;WebCore/PlatformCAFilters.h&gt;
</ins><span class="cx"> #import &lt;WebCore/TimingFunction.h&gt;
</span><span class="cx"> #import &lt;wtf/CurrentTime.h&gt;
</span><span class="cx"> #import &lt;wtf/RetainPtr.h&gt;
</span><span class="lines">@@ -101,6 +102,9 @@
</span><span class="cx">     case TransformKeyType:
</span><span class="cx">         encoder &lt;&lt; transform;
</span><span class="cx">         break;
</span><ins>+    case FilterKeyType:
+        encoder &lt;&lt; *filter.get();
+        break;
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -126,6 +130,10 @@
</span><span class="cx">         if (!decoder.decode(value.transform))
</span><span class="cx">             return false;
</span><span class="cx">         break;
</span><ins>+    case FilterKeyType:
+        if (!decodeFilterOperation(decoder, value.filter))
+            return false;
+        break;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return true;
</span><span class="lines">@@ -446,7 +454,11 @@
</span><span class="cx"> #if ENABLE(CSS_FILTERS)
</span><span class="cx"> void PlatformCAAnimationRemote::setFromValue(const FilterOperation* operation, int internalFilterPropertyIndex)
</span><span class="cx"> {
</span><del>-    ASSERT_NOT_REACHED();
</del><ins>+    if (animationType() != Basic)
+        return;
+
+    m_properties.keyValues.resize(2);
+    m_properties.keyValues[0] = KeyframeValue(operation-&gt;clone());
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -494,7 +506,13 @@
</span><span class="cx"> #if ENABLE(CSS_FILTERS)
</span><span class="cx"> void PlatformCAAnimationRemote::setToValue(const FilterOperation* operation, int internalFilterPropertyIndex)
</span><span class="cx"> {
</span><del>-    ASSERT_NOT_REACHED();
</del><ins>+    if (animationType() != Basic)
+        return;
+    
+    UNUSED_PARAM(internalFilterPropertyIndex);
+    ASSERT(operation);
+    m_properties.keyValues.resize(2);
+    m_properties.keyValues[1] = KeyframeValue(operation-&gt;clone());
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -561,10 +579,20 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_FILTERS)
</span><del>-void PlatformCAAnimationRemote::setValues(const Vector&lt;RefPtr&lt;FilterOperation&gt;&gt;&amp;, int internalFilterPropertyIndex)
</del><ins>+void PlatformCAAnimationRemote::setValues(const Vector&lt;RefPtr&lt;FilterOperation&gt;&gt;&amp; values, int internalFilterPropertyIndex)
</ins><span class="cx"> {
</span><span class="cx">     UNUSED_PARAM(internalFilterPropertyIndex);
</span><del>-    ASSERT_NOT_REACHED();
</del><ins>+    
+    if (animationType() != Keyframe)
+        return;
+        
+    Vector&lt;KeyframeValue&gt; keyframes;
+    keyframes.reserveInitialCapacity(values.size());
+    
+    for (size_t i = 0; i &lt; values.size(); ++i)
+        keyframes.uncheckedAppend(KeyframeValue(values[i]));
+    
+    m_properties.keyValues = std::move(keyframes);
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -617,6 +645,9 @@
</span><span class="cx">     }
</span><span class="cx">     case PlatformCAAnimationRemote::KeyframeValue::TransformKeyType:
</span><span class="cx">         return [NSValue valueWithCATransform3D:keyframeValue.transformValue()];
</span><ins>+            
+    case PlatformCAAnimationRemote::KeyframeValue::FilterKeyType:
+        return [PlatformCAFilters::filterValueForOperation(keyframeValue.filterValue(), 0 /* unused */).leakRef() autorelease];
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>