<!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>[177616] 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/177616">177616</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2014-12-19 19:41:47 -0800 (Fri, 19 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fix initial / inherit support for '-webkit-perspective-origin' CSS property
https://bugs.webkit.org/show_bug.cgi?id=139843

Reviewed by Simon Fraser.

Source/WebCore:

Fix initial / inherit support for '-webkit-perspective-origin' CSS
property. These previously had no effect.

This patch updates the code to be consistent with
'-webkit-transform-origin' and gets rid of the code in
DeprecatedStyleBuilder as it isn't used.

Test: fast/css/perspective-origin-initial-inherit.html

* css/DeprecatedStyleBuilder.cpp:
(WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
(WebCore::ApplyPropertyPerspectiveOrigin::applyInheritValue): Deleted.
(WebCore::ApplyPropertyPerspectiveOrigin::applyInitialValue): Deleted.
(WebCore::ApplyPropertyPerspectiveOrigin::applyValue): Deleted.
(WebCore::ApplyPropertyPerspectiveOrigin::createHandler): Deleted.
* css/StyleProperties.cpp:
(WebCore::StyleProperties::getPropertyValue):
(WebCore::StyleProperties::asText):
* css/StylePropertyShorthand.cpp:
(WebCore::webkitPerspectiveOriginShorthand):
(WebCore::shorthandForProperty):
(WebCore::matchingShorthandsForLonghand):
* css/StylePropertyShorthand.h:
* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyProperty):

LayoutTests:

Add layout test to cover 'initial' / 'inherit' support for
'-webkit-perspective-origin' CSS property.

* fast/css/perspective-origin-initial-inherit-expected.txt: Added.
* fast/css/perspective-origin-initial-inherit.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssDeprecatedStyleBuildercpp">trunk/Source/WebCore/css/DeprecatedStyleBuilder.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStylePropertiescpp">trunk/Source/WebCore/css/StyleProperties.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStylePropertyShorthandcpp">trunk/Source/WebCore/css/StylePropertyShorthand.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStylePropertyShorthandh">trunk/Source/WebCore/css/StylePropertyShorthand.h</a></li>
<li><a href="#trunkSourceWebCorecssStyleResolvercpp">trunk/Source/WebCore/css/StyleResolver.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcssperspectiveorigininitialinheritexpectedtxt">trunk/LayoutTests/fast/css/perspective-origin-initial-inherit-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssperspectiveorigininitialinherithtml">trunk/LayoutTests/fast/css/perspective-origin-initial-inherit.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (177615 => 177616)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-12-20 02:39:28 UTC (rev 177615)
+++ trunk/LayoutTests/ChangeLog        2014-12-20 03:41:47 UTC (rev 177616)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2014-12-19  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Fix initial / inherit support for '-webkit-perspective-origin' CSS property
+        https://bugs.webkit.org/show_bug.cgi?id=139843
+
+        Reviewed by Simon Fraser.
+
+        Add layout test to cover 'initial' / 'inherit' support for
+        '-webkit-perspective-origin' CSS property.
+
+        * fast/css/perspective-origin-initial-inherit-expected.txt: Added.
+        * fast/css/perspective-origin-initial-inherit.html: Added.
+
</ins><span class="cx"> 2014-12-19  Alexey Proskuryakov  &lt;ap@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION (177368): Some tests started to immediately time out
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssperspectiveorigininitialinheritexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/perspective-origin-initial-inherit-expected.txt (0 => 177616)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/perspective-origin-initial-inherit-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/css/perspective-origin-initial-inherit-expected.txt        2014-12-20 03:41:47 UTC (rev 177616)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+Tests that setting -webkit-perspective-origin property is corrected parsed / computed.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS getComputedStyle(parentDiv)['-webkit-perspective'] is &quot;150px&quot;
+PASS getComputedStyle(parentDiv)['-webkit-perspective-origin'] is &quot;10px 10px&quot;
+PASS getComputedStyle(parentDiv)['-webkit-perspective-origin-x'] is &quot;&quot;
+PASS getComputedStyle(parentDiv)['-webkit-perspective-origin-y'] is &quot;&quot;
+PASS getComputedStyle(testDiv)['-webkit-perspective'] is &quot;100px&quot;
+PASS getComputedStyle(testDiv)['-webkit-perspective-origin'] is &quot;5px 5px&quot;
+PASS getComputedStyle(testDiv)['-webkit-perspective-origin-x'] is &quot;&quot;
+PASS getComputedStyle(testDiv)['-webkit-perspective-origin-y'] is &quot;&quot;
+PASS getComputedStyle(noShortHandDiv)['-webkit-perspective'] is &quot;200px&quot;
+PASS getComputedStyle(noShortHandDiv)['-webkit-perspective-origin'] is &quot;15px 15px&quot;
+PASS getComputedStyle(noShortHandDiv)['-webkit-perspective-origin-x'] is &quot;&quot;
+PASS getComputedStyle(noShortHandDiv)['-webkit-perspective-origin-y'] is &quot;&quot;
+testDiv.style['-webkit-perspective-origin'] = 'inherit'
+PASS getComputedStyle(testDiv)['-webkit-perspective-origin'] is &quot;10px 10px&quot;
+testDiv.style['-webkit-perspective-origin'] = 'initial'
+PASS getComputedStyle(testDiv)['-webkit-perspective-origin'] is &quot;100px 100px&quot;
+testDiv.style['-webkit-perspective-origin'] = '20px 20px'
+PASS getComputedStyle(testDiv)['-webkit-perspective-origin'] is &quot;20px 20px&quot;
+noShortHandDiv.style['-webkit-perspective-origin'] = 'inherit'
+PASS getComputedStyle(noShortHandDiv)['-webkit-perspective-origin'] is &quot;10px 10px&quot;
+noShortHandDiv.style['-webkit-perspective-origin'] = 'initial'
+PASS getComputedStyle(noShortHandDiv)['-webkit-perspective-origin'] is &quot;150px 150px&quot;
+noShortHandDiv.style['-webkit-perspective-origin'] = '20px 20px'
+PASS getComputedStyle(noShortHandDiv)['-webkit-perspective-origin'] is &quot;20px 20px&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssperspectiveorigininitialinherithtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/perspective-origin-initial-inherit.html (0 => 177616)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/perspective-origin-initial-inherit.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/perspective-origin-initial-inherit.html        2014-12-20 03:41:47 UTC (rev 177616)
</span><span class="lines">@@ -0,0 +1,59 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;parentDiv&quot; style=&quot;-webkit-perspective: 150px; -webkit-perspective-origin: 10px 10px; width: 400px; height: 400px&quot;&gt;
+  &lt;div id=&quot;testDiv&quot; style=&quot;-webkit-perspective: 100px; -webkit-perspective-origin: 5px 5px; width: 200px; height: 200px&quot;&gt;&lt;/div&gt;
+  &lt;div id=&quot;noShortHandDiv&quot; style=&quot;-webkit-perspective: 200px; -webkit-perspective-origin: 15px 15px; width: 300px; height: 300px&quot;&gt;&lt;/div&gt;
+&lt;/div&gt;
+&lt;script&gt;
+description(&quot;Tests that setting -webkit-perspective-origin property is corrected parsed / computed.&quot;);
+
+var parentDiv = document.getElementById(&quot;parentDiv&quot;);
+var testDiv = document.getElementById(&quot;testDiv&quot;);
+var noShortHandDiv = document.getElementById(&quot;noShortHandDiv&quot;);
+
+shouldBeEqualToString(&quot;getComputedStyle(parentDiv)['-webkit-perspective']&quot;, &quot;150px&quot;);
+shouldBeEqualToString(&quot;getComputedStyle(parentDiv)['-webkit-perspective-origin']&quot;, &quot;10px 10px&quot;);
+// Not implemented.
+shouldBeEmptyString(&quot;getComputedStyle(parentDiv)['-webkit-perspective-origin-x']&quot;);
+shouldBeEmptyString(&quot;getComputedStyle(parentDiv)['-webkit-perspective-origin-y']&quot;);
+
+shouldBeEqualToString(&quot;getComputedStyle(testDiv)['-webkit-perspective']&quot;, &quot;100px&quot;);
+shouldBeEqualToString(&quot;getComputedStyle(testDiv)['-webkit-perspective-origin']&quot;, &quot;5px 5px&quot;);
+// Not implemented.
+shouldBeEmptyString(&quot;getComputedStyle(testDiv)['-webkit-perspective-origin-x']&quot;);
+shouldBeEmptyString(&quot;getComputedStyle(testDiv)['-webkit-perspective-origin-y']&quot;);
+
+shouldBeEqualToString(&quot;getComputedStyle(noShortHandDiv)['-webkit-perspective']&quot;, &quot;200px&quot;);
+shouldBeEqualToString(&quot;getComputedStyle(noShortHandDiv)['-webkit-perspective-origin']&quot;, &quot;15px 15px&quot;);
+// Not implemented.
+shouldBeEmptyString(&quot;getComputedStyle(noShortHandDiv)['-webkit-perspective-origin-x']&quot;);
+shouldBeEmptyString(&quot;getComputedStyle(noShortHandDiv)['-webkit-perspective-origin-y']&quot;);
+
+evalAndLog(&quot;testDiv.style['-webkit-perspective-origin'] = 'inherit'&quot;);
+shouldBeEqualToString(&quot;getComputedStyle(testDiv)['-webkit-perspective-origin']&quot;, &quot;10px 10px&quot;);
+
+evalAndLog(&quot;testDiv.style['-webkit-perspective-origin'] = 'initial'&quot;);
+// Initial is '50% 50%' -&gt; '100px 100px', because width / height are 100px.
+shouldBeEqualToString(&quot;getComputedStyle(testDiv)['-webkit-perspective-origin']&quot;, &quot;100px 100px&quot;);
+
+evalAndLog(&quot;testDiv.style['-webkit-perspective-origin'] = '20px 20px'&quot;);
+shouldBeEqualToString(&quot;getComputedStyle(testDiv)['-webkit-perspective-origin']&quot;, &quot;20px 20px&quot;);
+
+evalAndLog(&quot;noShortHandDiv.style['-webkit-perspective-origin'] = 'inherit'&quot;);
+shouldBeEqualToString(&quot;getComputedStyle(noShortHandDiv)['-webkit-perspective-origin']&quot;, &quot;10px 10px&quot;);
+
+evalAndLog(&quot;noShortHandDiv.style['-webkit-perspective-origin'] = 'initial'&quot;);
+// Initial is '50% 50%' -&gt; '150px 150px', because width / height are 300px.
+shouldBeEqualToString(&quot;getComputedStyle(noShortHandDiv)['-webkit-perspective-origin']&quot;, &quot;150px 150px&quot;);
+
+evalAndLog(&quot;noShortHandDiv.style['-webkit-perspective-origin'] = '20px 20px'&quot;);
+shouldBeEqualToString(&quot;getComputedStyle(noShortHandDiv)['-webkit-perspective-origin']&quot;, &quot;20px 20px&quot;);
+
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (177615 => 177616)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-12-20 02:39:28 UTC (rev 177615)
+++ trunk/Source/WebCore/ChangeLog        2014-12-20 03:41:47 UTC (rev 177616)
</span><span class="lines">@@ -1,3 +1,36 @@
</span><ins>+2014-12-19  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Fix initial / inherit support for '-webkit-perspective-origin' CSS property
+        https://bugs.webkit.org/show_bug.cgi?id=139843
+
+        Reviewed by Simon Fraser.
+
+        Fix initial / inherit support for '-webkit-perspective-origin' CSS
+        property. These previously had no effect.
+
+        This patch updates the code to be consistent with
+        '-webkit-transform-origin' and gets rid of the code in
+        DeprecatedStyleBuilder as it isn't used.
+
+        Test: fast/css/perspective-origin-initial-inherit.html
+
+        * css/DeprecatedStyleBuilder.cpp:
+        (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
+        (WebCore::ApplyPropertyPerspectiveOrigin::applyInheritValue): Deleted.
+        (WebCore::ApplyPropertyPerspectiveOrigin::applyInitialValue): Deleted.
+        (WebCore::ApplyPropertyPerspectiveOrigin::applyValue): Deleted.
+        (WebCore::ApplyPropertyPerspectiveOrigin::createHandler): Deleted.
+        * css/StyleProperties.cpp:
+        (WebCore::StyleProperties::getPropertyValue):
+        (WebCore::StyleProperties::asText):
+        * css/StylePropertyShorthand.cpp:
+        (WebCore::webkitPerspectiveOriginShorthand):
+        (WebCore::shorthandForProperty):
+        (WebCore::matchingShorthandsForLonghand):
+        * css/StylePropertyShorthand.h:
+        * css/StyleResolver.cpp:
+        (WebCore::StyleResolver::applyProperty):
+
</ins><span class="cx"> 2014-12-19  Commit Queue  &lt;commit-queue@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r177599.
</span></span></pre></div>
<a id="trunkSourceWebCorecssDeprecatedStyleBuildercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/DeprecatedStyleBuilder.cpp (177615 => 177616)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/DeprecatedStyleBuilder.cpp        2014-12-20 02:39:28 UTC (rev 177615)
+++ trunk/Source/WebCore/css/DeprecatedStyleBuilder.cpp        2014-12-20 03:41:47 UTC (rev 177616)
</span><span class="lines">@@ -41,48 +41,6 @@
</span><span class="cx"> 
</span><span class="cx"> using namespace HTMLNames;
</span><span class="cx"> 
</span><del>-class ApplyPropertyPerspectiveOrigin {
-public:
-    template &lt;CSSPropertyID id&gt;
-    static inline void applyInheritValue(CSSPropertyID propertyID, StyleResolver* styleResolver)
-    {
-        // FIXME: This doesn't seem to do anything as CSSPropertyWebkitPerspectiveOriginX
-        // and CSSPropertyWebkitPerspectiveOriginY don't have a property handler.
-        const DeprecatedStyleBuilder&amp; table = DeprecatedStyleBuilder::sharedStyleBuilder();
-        const PropertyHandler&amp; handler = table.propertyHandler(id);
-        if (handler.isValid())
-            handler.applyInheritValue(propertyID, styleResolver);
-    }
-
-    static void applyInheritValue(CSSPropertyID propertyID, StyleResolver* styleResolver)
-    {
-        applyInheritValue&lt;CSSPropertyWebkitPerspectiveOriginX&gt;(propertyID, styleResolver);
-        applyInheritValue&lt;CSSPropertyWebkitPerspectiveOriginY&gt;(propertyID, styleResolver);
-    }
-
-    template &lt;CSSPropertyID id&gt;
-    static inline void applyInitialValue(CSSPropertyID propertyID, StyleResolver* styleResolver)
-    {
-        // FIXME: This doesn't seem to do anything as CSSPropertyWebkitPerspectiveOriginX
-        // and CSSPropertyWebkitPerspectiveOriginY don't have a property handler.
-        const DeprecatedStyleBuilder&amp; table = DeprecatedStyleBuilder::sharedStyleBuilder();
-        const PropertyHandler&amp; handler = table.propertyHandler(id);
-        if (handler.isValid())
-            handler.applyInitialValue(propertyID, styleResolver);
-    }
-
-    static void applyInitialValue(CSSPropertyID propertyID, StyleResolver* styleResolver)
-    {
-        applyInitialValue&lt;CSSPropertyWebkitPerspectiveOriginX&gt;(propertyID, styleResolver);
-        applyInitialValue&lt;CSSPropertyWebkitPerspectiveOriginY&gt;(propertyID, styleResolver);
-    }
-
-    static void applyValue(CSSPropertyID, StyleResolver*, CSSValue*)
-    { }
-
-    static PropertyHandler createHandler() { return PropertyHandler(&amp;applyInheritValue, &amp;applyInitialValue, &amp;applyValue); }
-};
-
</del><span class="cx"> enum AutoValueType {Number = 0, ComputeLength};
</span><span class="cx"> template &lt;typename T, T (RenderStyle::*getterFunction)() const, void (RenderStyle::*setterFunction)(T), bool (RenderStyle::*hasAutoFunction)() const, void (RenderStyle::*setAutoFunction)(), AutoValueType valueType = Number, int autoIdentity = CSSValueAuto&gt;
</span><span class="cx"> class ApplyPropertyAuto {
</span><span class="lines">@@ -670,7 +628,6 @@
</span><span class="cx">     setPropertyHandler(CSSPropertyWebkitMaskRepeatY, ApplyPropertyFillLayer&lt;EFillRepeat, CSSPropertyWebkitMaskRepeatY, MaskFillLayer, &amp;RenderStyle::accessMaskLayers, &amp;RenderStyle::maskLayers, &amp;FillLayer::isRepeatYSet, &amp;FillLayer::repeatY, &amp;FillLayer::setRepeatY, &amp;FillLayer::clearRepeatY, &amp;FillLayer::initialFillRepeatY, &amp;CSSToStyleMap::mapFillRepeatY&gt;::createHandler());
</span><span class="cx">     setPropertyHandler(CSSPropertyWebkitMaskSize, ApplyPropertyFillLayer&lt;FillSize, CSSPropertyWebkitMaskSize, MaskFillLayer, &amp;RenderStyle::accessMaskLayers, &amp;RenderStyle::maskLayers, &amp;FillLayer::isSizeSet, &amp;FillLayer::size, &amp;FillLayer::setSize, &amp;FillLayer::clearSize, &amp;FillLayer::initialFillSize, &amp;CSSToStyleMap::mapFillSize&gt;::createHandler());
</span><span class="cx">     setPropertyHandler(CSSPropertyWebkitMaskSourceType, ApplyPropertyFillLayer&lt;EMaskSourceType, CSSPropertyWebkitMaskSourceType, MaskFillLayer, &amp;RenderStyle::accessMaskLayers, &amp;RenderStyle::maskLayers, &amp;FillLayer::isMaskSourceTypeSet, &amp;FillLayer::maskSourceType, &amp;FillLayer::setMaskSourceType, &amp;FillLayer::clearMaskSourceType, &amp;FillLayer::initialMaskSourceType, &amp;CSSToStyleMap::mapFillMaskSourceType&gt;::createHandler());
</span><del>-    setPropertyHandler(CSSPropertyWebkitPerspectiveOrigin, ApplyPropertyPerspectiveOrigin::createHandler());
</del><span class="cx">     setPropertyHandler(CSSPropertyWebkitTextEmphasisColor, ApplyPropertyColor&lt;NoInheritFromParent, &amp;RenderStyle::textEmphasisColor, &amp;RenderStyle::setTextEmphasisColor, &amp;RenderStyle::setVisitedLinkTextEmphasisColor, &amp;RenderStyle::color&gt;::createHandler());
</span><span class="cx">     setPropertyHandler(CSSPropertyWebkitTextFillColor, ApplyPropertyColor&lt;NoInheritFromParent, &amp;RenderStyle::textFillColor, &amp;RenderStyle::setTextFillColor, &amp;RenderStyle::setVisitedLinkTextFillColor, &amp;RenderStyle::color&gt;::createHandler());
</span><span class="cx">     setPropertyHandler(CSSPropertyWebkitTextStrokeColor, ApplyPropertyColor&lt;NoInheritFromParent, &amp;RenderStyle::textStrokeColor, &amp;RenderStyle::setTextStrokeColor, &amp;RenderStyle::setVisitedLinkTextStrokeColor, &amp;RenderStyle::color&gt;::createHandler());
</span></span></pre></div>
<a id="trunkSourceWebCorecssStylePropertiescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleProperties.cpp (177615 => 177616)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleProperties.cpp        2014-12-20 02:39:28 UTC (rev 177615)
+++ trunk/Source/WebCore/css/StyleProperties.cpp        2014-12-20 03:41:47 UTC (rev 177616)
</span><span class="lines">@@ -199,6 +199,8 @@
</span><span class="cx">         return getShorthandValue(webkitTextEmphasisShorthand());
</span><span class="cx">     case CSSPropertyWebkitTextStroke:
</span><span class="cx">         return getShorthandValue(webkitTextStrokeShorthand());
</span><ins>+    case CSSPropertyWebkitPerspectiveOrigin:
+        return getShorthandValue(webkitPerspectiveOriginShorthand());
</ins><span class="cx">     case CSSPropertyWebkitTransformOrigin:
</span><span class="cx">         return getShorthandValue(webkitTransformOriginShorthand());
</span><span class="cx">     case CSSPropertyWebkitTransition:
</span><span class="lines">@@ -926,6 +928,10 @@
</span><span class="cx">         case CSSPropertyWebkitMaskOrigin:
</span><span class="cx">             shorthandPropertyID = CSSPropertyWebkitMask;
</span><span class="cx">             break;
</span><ins>+        case CSSPropertyWebkitPerspectiveOriginX:
+        case CSSPropertyWebkitPerspectiveOriginY:
+            shorthandPropertyID = CSSPropertyWebkitPerspectiveOrigin;
+            break;
</ins><span class="cx">         case CSSPropertyWebkitTransformOriginX:
</span><span class="cx">         case CSSPropertyWebkitTransformOriginY:
</span><span class="cx">         case CSSPropertyWebkitTransformOriginZ:
</span></span></pre></div>
<a id="trunkSourceWebCorecssStylePropertyShorthandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StylePropertyShorthand.cpp (177615 => 177616)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StylePropertyShorthand.cpp        2014-12-20 02:39:28 UTC (rev 177615)
+++ trunk/Source/WebCore/css/StylePropertyShorthand.cpp        2014-12-20 03:41:47 UTC (rev 177616)
</span><span class="lines">@@ -509,6 +509,15 @@
</span><span class="cx">     return StylePropertyShorthand(CSSPropertyWebkitTransition, transitionProperties, WTF_ARRAY_LENGTH(transitionProperties));
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+StylePropertyShorthand webkitPerspectiveOriginShorthand()
+{
+    static const CSSPropertyID perspectiveOriginProperties[] = {
+        CSSPropertyWebkitPerspectiveOriginX,
+        CSSPropertyWebkitPerspectiveOriginY
+    };
+    return StylePropertyShorthand(CSSPropertyWebkitPerspectiveOrigin, perspectiveOriginProperties, WTF_ARRAY_LENGTH(perspectiveOriginProperties));
+}
+
</ins><span class="cx"> StylePropertyShorthand webkitTransformOriginShorthand()
</span><span class="cx"> {
</span><span class="cx">     static const CSSPropertyID transformOriginProperties[] = {
</span><span class="lines">@@ -627,6 +636,8 @@
</span><span class="cx">         return webkitMaskPositionShorthand();
</span><span class="cx">     case CSSPropertyWebkitMaskRepeat:
</span><span class="cx">         return webkitMaskRepeatShorthand();
</span><ins>+    case CSSPropertyWebkitPerspectiveOrigin:
+        return webkitPerspectiveOriginShorthand();
</ins><span class="cx">     case CSSPropertyWebkitTextEmphasis:
</span><span class="cx">         return webkitTextEmphasisShorthand();
</span><span class="cx">     case CSSPropertyWebkitTextStroke:
</span><span class="lines">@@ -850,6 +861,9 @@
</span><span class="cx">     case CSSPropertyWebkitMaskRepeatX:
</span><span class="cx">     case CSSPropertyWebkitMaskRepeatY:
</span><span class="cx">         return makeVector(webkitMaskRepeatShorthand());
</span><ins>+    case CSSPropertyWebkitPerspectiveOriginX:
+    case CSSPropertyWebkitPerspectiveOriginY:
+        return makeVector(webkitPerspectiveOriginShorthand());
</ins><span class="cx">     case CSSPropertyWebkitTextEmphasisStyle:
</span><span class="cx">     case CSSPropertyWebkitTextEmphasisColor:
</span><span class="cx">         return makeVector(webkitTextEmphasisShorthand());
</span></span></pre></div>
<a id="trunkSourceWebCorecssStylePropertyShorthandh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StylePropertyShorthand.h (177615 => 177616)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StylePropertyShorthand.h        2014-12-20 02:39:28 UTC (rev 177615)
+++ trunk/Source/WebCore/css/StylePropertyShorthand.h        2014-12-20 03:41:47 UTC (rev 177616)
</span><span class="lines">@@ -110,6 +110,7 @@
</span><span class="cx"> StylePropertyShorthand webkitMaskShorthand();
</span><span class="cx"> StylePropertyShorthand webkitMaskPositionShorthand();
</span><span class="cx"> StylePropertyShorthand webkitMaskRepeatShorthand();
</span><ins>+StylePropertyShorthand webkitPerspectiveOriginShorthand();
</ins><span class="cx"> StylePropertyShorthand webkitTextEmphasisShorthand();
</span><span class="cx"> StylePropertyShorthand webkitTextStrokeShorthand();
</span><span class="cx"> StylePropertyShorthand webkitTransitionShorthand();
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleResolvercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleResolver.cpp (177615 => 177616)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleResolver.cpp        2014-12-20 02:39:28 UTC (rev 177615)
+++ trunk/Source/WebCore/css/StyleResolver.cpp        2014-12-20 03:41:47 UTC (rev 177616)
</span><span class="lines">@@ -2426,6 +2426,7 @@
</span><span class="cx">     case CSSPropertyWebkitMask:
</span><span class="cx">     case CSSPropertyWebkitMaskPosition:
</span><span class="cx">     case CSSPropertyWebkitMaskRepeat:
</span><ins>+    case CSSPropertyWebkitPerspectiveOrigin:
</ins><span class="cx">     case CSSPropertyWebkitTextEmphasis:
</span><span class="cx">     case CSSPropertyWebkitTextStroke:
</span><span class="cx">     case CSSPropertyWebkitTransition:
</span><span class="lines">@@ -3040,7 +3041,6 @@
</span><span class="cx">     case CSSPropertyWebkitMaskSourceType:
</span><span class="cx">     case CSSPropertyWebkitNbspMode:
</span><span class="cx">     case CSSPropertyWebkitPerspective:
</span><del>-    case CSSPropertyWebkitPerspectiveOrigin:
</del><span class="cx">     case CSSPropertyWebkitPerspectiveOriginX:
</span><span class="cx">     case CSSPropertyWebkitPerspectiveOriginY:
</span><span class="cx">     case CSSPropertyWebkitPrintColorAdjust:
</span></span></pre>
</div>
</div>

</body>
</html>