<!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>[181189] 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/181189">181189</a></dd>
<dt>Author</dt> <dd>bfulgham@apple.com</dd>
<dt>Date</dt> <dd>2015-03-06 15:39:57 -0800 (Fri, 06 Mar 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add 'initial' keyword support for scroll snap CSS properties
https://bugs.webkit.org/show_bug.cgi?id=136345
&lt;rdar://problem/18162325&gt;

Reviewed by Dean Jackson.

Source/WebCore:

Tested by css3/scroll-snap/scroll-snap-initial.html

The existing implementation already had 'initial' keyword support, but did not fully follow
the CSS specification. In particular, the 'initial' state for the scroll-snap-points-x and
scroll-snap-points-y properties was not handled correctly.

Revise implementation to represent ScrollSnapPoints as a pointer, so that 'none' is a valid
state.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::scrollSnapPoints): If 'points' is null, return CSSValueNone.
* css/CSSPropertyNames.in: Provide custom initial/inherit handles for snap point x/y sets.
* css/StyleBuilderConverter.h:
(WebCore::StyleBuilderConverter::convertScrollSnapPoints): Update to represent ScrollSnapPoints
as a pointer.
* css/StyleBuilderCustom.h:
(WebCore::StyleBuilderCustom::applyInitialWebkitScrollSnapPointsX): Provide custom pointer-based
implementation for ScrollSnapPoints.
(WebCore::StyleBuilderCustom::applyInheritWebkitScrollSnapPointsX): Ditto.
(WebCore::StyleBuilderCustom::applyInitialWebkitScrollSnapPointsY): Ditto.
(WebCore::StyleBuilderCustom::applyInheritWebkitScrollSnapPointsY): Ditto.&quot;
* page/scrolling/AxisScrollSnapOffsets.cpp:
(WebCore::updateFromStyle): Handle ScrollSnapPoints as pointers.
(WebCore::updateSnapOffsetsForScrollableArea): Ditto.
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::scrollSnapPointsX): Update to use pointer-based representation of ScrollSnapPoints.
(WebCore::RenderStyle::scrollSnapPointsY): Ditto.
(WebCore::RenderStyle::setScrollSnapPointsX): Ditto.
(WebCore::RenderStyle::setScrollSnapPointsY): Ditto.
(WebCore::RenderStyle::initialScrollSnapPointsX): Deleted.
(WebCore::RenderStyle::initialScrollSnapPointsY): Deleted.
* rendering/style/RenderStyle.h:
* rendering/style/StyleScrollSnapPoints.cpp:
(WebCore::StyleScrollSnapPoints::StyleScrollSnapPoints): Revise constructor to handle pointer argument.
* rendering/style/StyleScrollSnapPoints.h:

LayoutTests:

* css3/scroll-snap/scroll-snap-property-computed-style.js: Update for corrected 'initial' behavior.
* css3/scroll-snap/scroll-snap-property-computed-style-expected.txt: Rebaselined.
* css3/scroll-snap/scroll-snap-initial.html: Added.
* css3/scroll-snap/scroll-snap-initial-expected.txt: Added.
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/win/TestExpectations:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestscss3scrollsnapscrollsnappropertycomputedstyleexpectedtxt">trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestscss3scrollsnapscrollsnappropertycomputedstylejs">trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style.js</a></li>
<li><a href="#trunkLayoutTestsplatformeflTestExpectations">trunk/LayoutTests/platform/efl/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformgtkTestExpectations">trunk/LayoutTests/platform/gtk/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformwinTestExpectations">trunk/LayoutTests/platform/win/TestExpectations</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssCSSComputedStyleDeclarationcpp">trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSPropertyNamesin">trunk/Source/WebCore/css/CSSPropertyNames.in</a></li>
<li><a href="#trunkSourceWebCorecssStyleBuilderConverterh">trunk/Source/WebCore/css/StyleBuilderConverter.h</a></li>
<li><a href="#trunkSourceWebCorecssStyleBuilderCustomh">trunk/Source/WebCore/css/StyleBuilderCustom.h</a></li>
<li><a href="#trunkSourceWebCorepagescrollingAxisScrollSnapOffsetscpp">trunk/Source/WebCore/page/scrolling/AxisScrollSnapOffsets.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingstyleRenderStylecpp">trunk/Source/WebCore/rendering/style/RenderStyle.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingstyleRenderStyleh">trunk/Source/WebCore/rendering/style/RenderStyle.h</a></li>
<li><a href="#trunkSourceWebCorerenderingstyleStyleScrollSnapPointscpp">trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingstyleStyleScrollSnapPointsh">trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestscss3scrollsnapscrollsnapinitialexpectedtxt">trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial-expected.txt</a></li>
<li><a href="#trunkLayoutTestscss3scrollsnapscrollsnapinitialhtml">trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/LayoutTests/ChangeLog        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2015-03-06  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        Add 'initial' keyword support for scroll snap CSS properties
+        https://bugs.webkit.org/show_bug.cgi?id=136345
+        &lt;rdar://problem/18162325&gt;
+
+        Reviewed by Dean Jackson.
+
+        * css3/scroll-snap/scroll-snap-property-computed-style.js: Update for corrected 'initial' behavior.
+        * css3/scroll-snap/scroll-snap-property-computed-style-expected.txt: Rebaselined.
+        * css3/scroll-snap/scroll-snap-initial.html: Added.
+        * css3/scroll-snap/scroll-snap-initial-expected.txt: Added.
+        * platform/efl/TestExpectations:
+        * platform/gtk/TestExpectations:
+        * platform/win/TestExpectations:
+
</ins><span class="cx"> 2015-03-06  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         ES6: Object Literal Extensions - Methods
</span></span></pre></div>
<a id="trunkLayoutTestscss3scrollsnapscrollsnapinitialexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial-expected.txt (0 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial-expected.txt                                (rev 0)
+++ trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial-expected.txt        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -0,0 +1,89 @@
</span><ins>+Tests 'initial' on scroll snap properties.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS noInitial.style['-webkit-scroll-snap-type'] is &quot;&quot;
+PASS window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-type') is &quot;mandatory&quot;
+PASS noInitial.style['-webkit-scroll-snap-points-x'] is &quot;&quot;
+PASS window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-points-x') is &quot;repeat(100%)&quot;
+PASS noInitial.style['-webkit-scroll-snap-points-y'] is &quot;&quot;
+PASS window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-points-y') is &quot;repeat(100%)&quot;
+PASS noInitial.style['-webkit-scroll-snap-destination'] is &quot;&quot;
+PASS window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-destination') is &quot;10% 11%&quot;
+PASS noInitial.style['-webkit-scroll-snap-coordinate'] is &quot;&quot;
+PASS window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-coordinate') is &quot;none&quot;
+PASS initialType.style['-webkit-scroll-snap-type'] is &quot;initial&quot;
+PASS window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-type') is &quot;none&quot;
+PASS initialType.style['-webkit-scroll-snap-points-x'] is &quot;&quot;
+PASS window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-points-x') is &quot;repeat(100%)&quot;
+PASS initialType.style['-webkit-scroll-snap-points-y'] is &quot;&quot;
+PASS window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-points-y') is &quot;repeat(100%)&quot;
+PASS initialType.style['-webkit-scroll-snap-destination'] is &quot;&quot;
+PASS window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-destination') is &quot;0px 0px&quot;
+PASS initialType.style['-webkit-scroll-snap-coordinate'] is &quot;&quot;
+PASS window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-coordinate') is &quot;15px 122px&quot;
+PASS initialXPoints.style['-webkit-scroll-snap-type'] is &quot;&quot;
+PASS window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-type') is &quot;mandatory&quot;
+PASS initialXPoints.style['-webkit-scroll-snap-points-x'] is &quot;initial&quot;
+PASS window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-points-x') is &quot;none&quot;
+PASS initialXPoints.style['-webkit-scroll-snap-points-y'] is &quot;&quot;
+PASS window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-points-y') is &quot;repeat(100%)&quot;
+PASS initialXPoints.style['-webkit-scroll-snap-destination'] is &quot;&quot;
+PASS window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-destination') is &quot;50% 70%&quot;
+PASS initialXPoints.style['-webkit-scroll-snap-coordinate'] is &quot;&quot;
+PASS window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-coordinate') is &quot;100% 50%&quot;
+PASS initialYPoints.style['-webkit-scroll-snap-type'] is &quot;&quot;
+PASS window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-type') is &quot;mandatory&quot;
+PASS initialYPoints.style['-webkit-scroll-snap-points-x'] is &quot;&quot;
+PASS window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-points-x') is &quot;repeat(100%)&quot;
+PASS initialYPoints.style['-webkit-scroll-snap-points-y'] is &quot;initial&quot;
+PASS window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-points-y') is &quot;none&quot;
+PASS initialYPoints.style['-webkit-scroll-snap-destination'] is &quot;&quot;
+PASS window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-destination') is &quot;10px 20px&quot;
+PASS initialYPoints.style['-webkit-scroll-snap-coordinate'] is &quot;&quot;
+PASS window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-coordinate') is &quot;50% 100%&quot;
+PASS initialDestination.style['-webkit-scroll-snap-type'] is &quot;&quot;
+PASS window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-type') is &quot;proximity&quot;
+PASS initialDestination.style['-webkit-scroll-snap-points-x'] is &quot;&quot;
+PASS window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-points-x') is &quot;repeat(100%)&quot;
+PASS initialDestination.style['-webkit-scroll-snap-points-y'] is &quot;&quot;
+PASS window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-points-y') is &quot;repeat(100%)&quot;
+PASS initialDestination.style['-webkit-scroll-snap-destination'] is &quot;initial&quot;
+PASS window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-destination') is &quot;0px 0px&quot;
+PASS initialDestination.style['-webkit-scroll-snap-coordinate'] is &quot;&quot;
+PASS window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-coordinate') is &quot;10px 10px&quot;
+PASS initialSnapCoordinate.style['-webkit-scroll-snap-type'] is &quot;&quot;
+PASS window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-type') is &quot;mandatory&quot;
+PASS initialSnapCoordinate.style['-webkit-scroll-snap-points-x'] is &quot;&quot;
+PASS window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-points-x') is &quot;repeat(100%)&quot;
+PASS initialSnapCoordinate.style['-webkit-scroll-snap-points-y'] is &quot;&quot;
+PASS window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-points-y') is &quot;repeat(100%)&quot;
+PASS initialSnapCoordinate.style['-webkit-scroll-snap-destination'] is &quot;&quot;
+PASS window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-destination') is &quot;10% 10%&quot;
+PASS initialSnapCoordinate.style['-webkit-scroll-snap-coordinate'] is &quot;initial&quot;
+PASS window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-coordinate') is &quot;none&quot;
+PASS allInitial.style['-webkit-scroll-snap-type'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-type') is &quot;none&quot;
+PASS allInitial.style['-webkit-scroll-snap-points-x'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-points-x') is &quot;none&quot;
+PASS allInitial.style['-webkit-scroll-snap-points-y'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-points-y') is &quot;none&quot;
+PASS allInitial.style['-webkit-scroll-snap-destination'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-destination') is &quot;0px 0px&quot;
+PASS allInitial.style['-webkit-scroll-snap-coordinate'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-coordinate') is &quot;none&quot;
+PASS allInitialY.style['-webkit-scroll-snap-type'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-type') is &quot;none&quot;
+PASS allInitialY.style['-webkit-scroll-snap-points-x'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-points-x') is &quot;none&quot;
+PASS allInitialY.style['-webkit-scroll-snap-points-y'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-points-y') is &quot;none&quot;
+PASS allInitialY.style['-webkit-scroll-snap-destination'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-destination') is &quot;0px 0px&quot;
+PASS allInitialY.style['-webkit-scroll-snap-coordinate'] is &quot;initial&quot;
+PASS window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-coordinate') is &quot;none&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestscss3scrollsnapscrollsnapinitialhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial.html (0 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial.html                                (rev 0)
+++ trunk/LayoutTests/css3/scroll-snap/scroll-snap-initial.html        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -0,0 +1,283 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            .horizontalGallery {
+                width: 400px;
+                height: 50px;
+                overflow-y: hidden;
+                overflow-x: auto;
+            }
+            .verticalGallery {
+                width: 400px;
+                height: 50px;
+                display: inline-block;
+                overflow-x: hidden;
+                overflow-y: auto;
+            }
+            .horizontalGalleryDrawer {
+                width: 3000px;
+                height: 50px;
+            }
+            .verticalGalleryDrawer {
+                width: 400px;
+                height: 300px;
+            }
+            .colorBox {
+                height: 50px;
+                width: 400px;
+                float: left;
+            }
+
+            .noInitial {
+                -webkit-scroll-snap-type: mandatory;
+                -webkit-scroll-snap-points-x: repeat(100%);
+                -webkit-scroll-snap-points-y: repeat(100%);
+                -webkit-scroll-snap-destination: 10% 11%;
+                -webkit-scroll-snap-coordinate: none;
+            }
+
+            .initialType {
+                -webkit-scroll-snap-type: initial;
+                -webkit-scroll-snap-points-x: repeat(100%);
+                -webkit-scroll-snap-points-y: repeat(100%);
+                -webkit-scroll-snap-destination: 0px 0px;
+                -webkit-scroll-snap-coordinate: 15px 122px;
+            }
+
+            .initialXPoints {
+                -webkit-scroll-snap-type: mandatory;
+                -webkit-scroll-snap-points-x: initial;
+                -webkit-scroll-snap-points-y: repeat(100%);
+                -webkit-scroll-snap-destination: 50% 70%;
+                -webkit-scroll-snap-coordinate: 100% 50%;
+            }
+
+            .initialYPoints {
+                -webkit-scroll-snap-type: mandatory;
+                -webkit-scroll-snap-points-x: repeat(100%);
+                -webkit-scroll-snap-points-y: initial;
+                -webkit-scroll-snap-destination: 10px 20px;
+                -webkit-scroll-snap-coordinate: 50% 100%;
+            }
+
+            .initialDestination {
+                -webkit-scroll-snap-type: proximity;
+                -webkit-scroll-snap-points-x: repeat(100%);
+                -webkit-scroll-snap-points-y: repeat(100%);
+                -webkit-scroll-snap-destination: initial;
+                -webkit-scroll-snap-coordinate: 10px 10px;
+            }
+
+            .initialSnapCoordinate {
+                -webkit-scroll-snap-type: mandatory;
+                -webkit-scroll-snap-points-x: repeat(100%);
+                -webkit-scroll-snap-points-y: repeat(100%);
+                -webkit-scroll-snap-destination: 10% 10%;
+                -webkit-scroll-snap-coordinate: initial;
+            }
+
+            .allInitial {
+                -webkit-scroll-snap-type: initial;
+                -webkit-scroll-snap-points-x: initial;
+                -webkit-scroll-snap-points-y: initial;
+                -webkit-scroll-snap-destination: initial;
+                -webkit-scroll-snap-coordinate: initial
+            }
+
+            #item0 { background-color: red; }
+            #item1 { background-color: green; }
+            #item2 { background-color: blue; }
+            #item3 { background-color: aqua; }
+            #item4 { background-color: yellow; }
+            #item5 { background-color: fuchsia; }
+        &lt;/style&gt;
+        &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;div style=&quot;width: 400px&quot;&gt;
+            &lt;div id=&quot;noInitial&quot; class=&quot;horizontalGallery noInitial&quot;&gt;
+                &lt;div class=&quot;horizontalGalleryDrawer&quot;&gt;
+                    &lt;div id=&quot;item0&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item1&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item2&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item3&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item4&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item5&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                &lt;/div&gt;
+            &lt;/div&gt;
+            &lt;div id=&quot;initialType&quot; class=&quot;horizontalGallery initialType&quot; style=&quot;-webkit-scroll-snap-type: initial&quot;&gt;
+                &lt;div class=&quot;horizontalGalleryDrawer&quot;&gt;
+                    &lt;div id=&quot;item0&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item1&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item2&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item3&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item4&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item5&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                &lt;/div&gt;
+            &lt;/div&gt;
+            &lt;div id=&quot;initialXPoints&quot; class=&quot;horizontalGallery initialXPoints&quot; style=&quot;-webkit-scroll-snap-points-x: initial&quot;&gt;
+                &lt;div class=&quot;horizontalGalleryDrawer&quot;&gt;
+                    &lt;div id=&quot;item0&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item1&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item2&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item3&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item4&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item5&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                &lt;/div&gt;
+            &lt;/div&gt;
+            &lt;div id=&quot;initialYPoints&quot; class=&quot;horizontalGallery initialYPoints&quot; style=&quot;-webkit-scroll-snap-points-y: initial&quot;&gt;
+                &lt;div class=&quot;horizontalGalleryDrawer&quot;&gt;
+                    &lt;div id=&quot;item0&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item1&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item2&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item3&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item4&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item5&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                &lt;/div&gt;
+            &lt;/div&gt;
+            &lt;div id=&quot;initialDestination&quot; class=&quot;horizontalGallery initialDestination&quot; style=&quot;-webkit-scroll-snap-destination: initial&quot;&gt;
+                &lt;div class=&quot;horizontalGalleryDrawer&quot;&gt;
+                    &lt;div id=&quot;item0&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item1&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item2&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item3&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item4&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item5&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                &lt;/div&gt;
+            &lt;/div&gt;
+            &lt;div id=&quot;initialSnapCoordinate&quot; class=&quot;horizontalGallery initialSnapCoordinate&quot; style=&quot;-webkit-scroll-snap-coordinate: initial&quot;&gt;
+                &lt;div class=&quot;horizontalGalleryDrawer&quot;&gt;
+                    &lt;div id=&quot;item0&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item1&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item2&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item3&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item4&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item5&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                &lt;/div&gt;
+            &lt;/div&gt;
+            &lt;div id=&quot;allInitial&quot; class=&quot;horizontalGallery allInitial&quot; style=&quot;-webkit-scroll-snap-type: initial; -webkit-scroll-snap-points-x: initial; -webkit-scroll-snap-points-y: initial; -webkit-scroll-snap-destination: initial; -webkit-scroll-snap-coordinate: initial&quot;&gt;
+                &lt;div class=&quot;horizontalGalleryDrawer&quot;&gt;
+                    &lt;div id=&quot;item0&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item1&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item2&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item3&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item4&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item5&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                &lt;/div&gt;
+            &lt;/div&gt;
+            &lt;div id=&quot;allInitialY&quot; class=&quot;verticalGallery noInitial&quot; style=&quot;-webkit-scroll-snap-type: initial; -webkit-scroll-snap-points-x: initial; -webkit-scroll-snap-points-y: initial; -webkit-scroll-snap-destination: initial; -webkit-scroll-snap-coordinate: initial&quot;&gt;
+                &lt;div class=&quot;verticalGalleryDrawer&quot;&gt;
+                    &lt;div id=&quot;item0&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item1&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item2&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item3&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item4&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                    &lt;div id=&quot;item5&quot; class=&quot;colorBox&quot;&gt;&lt;/div&gt;
+                &lt;/div&gt;
+            &lt;/div&gt;
+        &lt;/div&gt;
+        &lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+        &lt;script&gt;
+        description(&quot;Tests 'initial' on scroll snap properties.&quot;);
+
+        var noInitial = document.getElementById('noInitial');
+        shouldBeEmptyString(&quot;noInitial.style['-webkit-scroll-snap-type']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-type')&quot;, &quot;mandatory&quot;);
+        shouldBeEmptyString(&quot;noInitial.style['-webkit-scroll-snap-points-x']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-points-x')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEmptyString(&quot;noInitial.style['-webkit-scroll-snap-points-y']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-points-y')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEmptyString(&quot;noInitial.style['-webkit-scroll-snap-destination']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-destination')&quot;, &quot;10% 11%&quot;);
+        shouldBeEmptyString(&quot;noInitial.style['-webkit-scroll-snap-coordinate']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(noInitial).getPropertyValue('-webkit-scroll-snap-coordinate')&quot;, &quot;none&quot;);
+
+        var initialType = document.getElementById('initialType');
+        shouldBeEqualToString(&quot;initialType.style['-webkit-scroll-snap-type']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-type')&quot;, &quot;none&quot;);
+        shouldBeEmptyString(&quot;initialType.style['-webkit-scroll-snap-points-x']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-points-x')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEmptyString(&quot;initialType.style['-webkit-scroll-snap-points-y']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-points-y')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEmptyString(&quot;initialType.style['-webkit-scroll-snap-destination']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-destination')&quot;, &quot;0px 0px&quot;);
+        shouldBeEmptyString(&quot;initialType.style['-webkit-scroll-snap-coordinate']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialType).getPropertyValue('-webkit-scroll-snap-coordinate')&quot;, &quot;15px 122px&quot;);
+
+        var initialXPoints = document.getElementById('initialXPoints');
+        shouldBeEmptyString(&quot;initialXPoints.style['-webkit-scroll-snap-type']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-type')&quot;, &quot;mandatory&quot;);
+        shouldBeEqualToString(&quot;initialXPoints.style['-webkit-scroll-snap-points-x']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-points-x')&quot;, &quot;none&quot;);
+        shouldBeEmptyString(&quot;initialXPoints.style['-webkit-scroll-snap-points-y']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-points-y')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEmptyString(&quot;initialXPoints.style['-webkit-scroll-snap-destination']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-destination')&quot;, &quot;50% 70%&quot;);
+        shouldBeEmptyString(&quot;initialXPoints.style['-webkit-scroll-snap-coordinate']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialXPoints).getPropertyValue('-webkit-scroll-snap-coordinate')&quot;, &quot;100% 50%&quot;);
+
+        var initialYPoints = document.getElementById('initialYPoints');
+        shouldBeEmptyString(&quot;initialYPoints.style['-webkit-scroll-snap-type']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-type')&quot;, &quot;mandatory&quot;);
+        shouldBeEmptyString(&quot;initialYPoints.style['-webkit-scroll-snap-points-x']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-points-x')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEqualToString(&quot;initialYPoints.style['-webkit-scroll-snap-points-y']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-points-y')&quot;, &quot;none&quot;);
+        shouldBeEmptyString(&quot;initialYPoints.style['-webkit-scroll-snap-destination']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-destination')&quot;, &quot;10px 20px&quot;);
+        shouldBeEmptyString(&quot;initialYPoints.style['-webkit-scroll-snap-coordinate']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialYPoints).getPropertyValue('-webkit-scroll-snap-coordinate')&quot;, &quot;50% 100%&quot;);
+
+        var initialDestination = document.getElementById('initialDestination');
+        shouldBeEmptyString(&quot;initialDestination.style['-webkit-scroll-snap-type']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-type')&quot;, &quot;proximity&quot;);
+        shouldBeEmptyString(&quot;initialDestination.style['-webkit-scroll-snap-points-x']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-points-x')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEmptyString(&quot;initialDestination.style['-webkit-scroll-snap-points-y']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-points-y')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEqualToString(&quot;initialDestination.style['-webkit-scroll-snap-destination']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-destination')&quot;, &quot;0px 0px&quot;);
+        shouldBeEmptyString(&quot;initialDestination.style['-webkit-scroll-snap-coordinate']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialDestination).getPropertyValue('-webkit-scroll-snap-coordinate')&quot;, &quot;10px 10px&quot;);
+
+        var initialSnapCoordinate = document.getElementById('initialSnapCoordinate');
+        shouldBeEmptyString(&quot;initialSnapCoordinate.style['-webkit-scroll-snap-type']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-type')&quot;, &quot;mandatory&quot;);
+        shouldBeEmptyString(&quot;initialSnapCoordinate.style['-webkit-scroll-snap-points-x']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-points-x')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEmptyString(&quot;initialSnapCoordinate.style['-webkit-scroll-snap-points-y']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-points-y')&quot;, &quot;repeat(100%)&quot;);
+        shouldBeEmptyString(&quot;initialSnapCoordinate.style['-webkit-scroll-snap-destination']&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-destination')&quot;, &quot;10% 10%&quot;);
+        shouldBeEqualToString(&quot;initialSnapCoordinate.style['-webkit-scroll-snap-coordinate']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(initialSnapCoordinate).getPropertyValue('-webkit-scroll-snap-coordinate')&quot;, &quot;none&quot;);
+
+        var allInitial = document.getElementById('allInitial');
+        shouldBeEqualToString(&quot;allInitial.style['-webkit-scroll-snap-type']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-type')&quot;, &quot;none&quot;);
+        shouldBeEqualToString(&quot;allInitial.style['-webkit-scroll-snap-points-x']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-points-x')&quot;, &quot;none&quot;);
+        shouldBeEqualToString(&quot;allInitial.style['-webkit-scroll-snap-points-y']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-points-y')&quot;, &quot;none&quot;);
+        shouldBeEqualToString(&quot;allInitial.style['-webkit-scroll-snap-destination']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-destination')&quot;, &quot;0px 0px&quot;);
+        shouldBeEqualToString(&quot;allInitial.style['-webkit-scroll-snap-coordinate']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitial).getPropertyValue('-webkit-scroll-snap-coordinate')&quot;, &quot;none&quot;);
+
+        var allInitialY = document.getElementById('allInitialY');
+        shouldBeEqualToString(&quot;allInitialY.style['-webkit-scroll-snap-type']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-type')&quot;, &quot;none&quot;);
+        shouldBeEqualToString(&quot;allInitialY.style['-webkit-scroll-snap-points-x']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-points-x')&quot;, &quot;none&quot;);
+        shouldBeEqualToString(&quot;allInitialY.style['-webkit-scroll-snap-points-y']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-points-y')&quot;, &quot;none&quot;);
+        shouldBeEqualToString(&quot;allInitialY.style['-webkit-scroll-snap-destination']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-destination')&quot;, &quot;0px 0px&quot;);
+        shouldBeEqualToString(&quot;allInitialY.style['-webkit-scroll-snap-coordinate']&quot;, &quot;initial&quot;);
+        shouldBeEqualToString(&quot;window.getComputedStyle(allInitialY).getPropertyValue('-webkit-scroll-snap-coordinate')&quot;, &quot;none&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="trunkLayoutTestscss3scrollsnapscrollsnappropertycomputedstyleexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style-expected.txt (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style-expected.txt        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style-expected.txt        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -8,16 +8,16 @@
</span><span class="cx"> PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-type') is 'none'
</span><span class="cx"> 
</span><span class="cx"> invalid points along x axis : hello world
</span><del>-PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'repeat(100%)'
</del><ins>+PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'none'
</ins><span class="cx"> 
</span><span class="cx"> invalid points along y axis : hello world
</span><del>-PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-y') is 'repeat(100%)'
</del><ins>+PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-y') is 'none'
</ins><span class="cx"> 
</span><span class="cx"> typo in point definition : repaet(50px)
</span><del>-PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'repeat(100%)'
</del><ins>+PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'none'
</ins><span class="cx"> 
</span><span class="cx"> another invalid point definition : ??px repeat(50px)
</span><del>-PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'repeat(100%)'
</del><ins>+PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'none'
</ins><span class="cx"> 
</span><span class="cx"> invalid destination : foo bar
</span><span class="cx"> PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-destination') is '0px 0px'
</span><span class="lines">@@ -50,10 +50,10 @@
</span><span class="cx"> PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-type') is 'proximity'
</span><span class="cx"> 
</span><span class="cx"> inherited points along x axis : inherit
</span><del>-PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'repeat(100%)'
</del><ins>+PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'none'
</ins><span class="cx"> 
</span><span class="cx"> initial points along x axis : initial
</span><del>-PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'repeat(100%)'
</del><ins>+PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'none'
</ins><span class="cx"> 
</span><span class="cx"> element points along x axis : elements
</span><span class="cx"> PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is 'elements'
</span><span class="lines">@@ -83,10 +83,10 @@
</span><span class="cx"> PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-x') is '100px repeat(42px)'
</span><span class="cx"> 
</span><span class="cx"> inherited points along y axis : inherit
</span><del>-PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-y') is 'repeat(100%)'
</del><ins>+PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-y') is 'none'
</ins><span class="cx"> 
</span><span class="cx"> initial points along y axis : initial
</span><del>-PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-y') is 'repeat(100%)'
</del><ins>+PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-y') is 'none'
</ins><span class="cx"> 
</span><span class="cx"> element points along y axis : elements
</span><span class="cx"> PASS window.getComputedStyle(document.body).getPropertyValue('-webkit-scroll-snap-points-y') is 'elements'
</span></span></pre></div>
<a id="trunkLayoutTestscss3scrollsnapscrollsnappropertycomputedstylejs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style.js (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style.js        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/LayoutTests/css3/scroll-snap/scroll-snap-property-computed-style.js        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -17,10 +17,10 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> testComputedScrollSnapRule(&quot;invalid snapping type&quot;, &quot;type&quot;, &quot;potato&quot;, &quot;none&quot;);
</span><del>-testComputedScrollSnapRule(&quot;invalid points along x axis&quot;, &quot;points-x&quot;, &quot;hello world&quot;, &quot;repeat(100%)&quot;);
-testComputedScrollSnapRule(&quot;invalid points along y axis&quot;, &quot;points-y&quot;, &quot;hello world&quot;, &quot;repeat(100%)&quot;);
-testComputedScrollSnapRule(&quot;typo in point definition&quot;, &quot;points-x&quot;, &quot;repaet(50px)&quot;, &quot;repeat(100%)&quot;);
-testComputedScrollSnapRule(&quot;another invalid point definition&quot;, &quot;points-x&quot;, &quot;??px repeat(50px)&quot;, &quot;repeat(100%)&quot;);
</del><ins>+testComputedScrollSnapRule(&quot;invalid points along x axis&quot;, &quot;points-x&quot;, &quot;hello world&quot;, &quot;none&quot;);
+testComputedScrollSnapRule(&quot;invalid points along y axis&quot;, &quot;points-y&quot;, &quot;hello world&quot;, &quot;none&quot;);
+testComputedScrollSnapRule(&quot;typo in point definition&quot;, &quot;points-x&quot;, &quot;repaet(50px)&quot;, &quot;none&quot;);
+testComputedScrollSnapRule(&quot;another invalid point definition&quot;, &quot;points-x&quot;, &quot;??px repeat(50px)&quot;, &quot;none&quot;);
</ins><span class="cx"> testComputedScrollSnapRule(&quot;invalid destination&quot;, &quot;destination&quot;, &quot;foo bar&quot;, &quot;0px 0px&quot;);
</span><span class="cx"> testComputedScrollSnapRule(&quot;short one destination value&quot;, &quot;destination&quot;, &quot;50%&quot;, &quot;0px 0px&quot;);
</span><span class="cx"> testComputedScrollSnapRule(&quot;extra destination value&quot;, &quot;destination&quot;, &quot;50px 100% 75px&quot;, &quot;0px 0px&quot;);
</span><span class="lines">@@ -33,8 +33,8 @@
</span><span class="cx"> testComputedScrollSnapRule(&quot;mandatory type&quot;, &quot;type&quot;, &quot;mandatory&quot;, &quot;mandatory&quot;);
</span><span class="cx"> testComputedScrollSnapRule(&quot;proximity type&quot;, &quot;type&quot;, &quot;proximity&quot;, &quot;proximity&quot;);
</span><span class="cx"> 
</span><del>-testComputedScrollSnapRule(&quot;inherited points along x axis&quot;, &quot;points-x&quot;, &quot;inherit&quot;, &quot;repeat(100%)&quot;);
-testComputedScrollSnapRule(&quot;initial points along x axis&quot;, &quot;points-x&quot;, &quot;initial&quot;, &quot;repeat(100%)&quot;);
</del><ins>+testComputedScrollSnapRule(&quot;inherited points along x axis&quot;, &quot;points-x&quot;, &quot;inherit&quot;, &quot;none&quot;);
+testComputedScrollSnapRule(&quot;initial points along x axis&quot;, &quot;points-x&quot;, &quot;initial&quot;, &quot;none&quot;);
</ins><span class="cx"> testComputedScrollSnapRule(&quot;element points along x axis&quot;, &quot;points-x&quot;, &quot;elements&quot;, &quot;elements&quot;);
</span><span class="cx"> testComputedScrollSnapRule(&quot;percentage points along x axis&quot;, &quot;points-x&quot;, &quot;100% 50%&quot;, &quot;100% 50%&quot;);
</span><span class="cx"> testComputedScrollSnapRule(&quot;pixel points along x axis&quot;, &quot;points-x&quot;, &quot;100px 50px&quot;, &quot;100px 50px&quot;);
</span><span class="lines">@@ -45,8 +45,8 @@
</span><span class="cx"> testComputedScrollSnapRule(&quot;percentage points along x axis with pixel repeat&quot;, &quot;points-x&quot;, &quot;100% 50% repeat(40px)&quot;, &quot;100% 50% repeat(40px)&quot;);
</span><span class="cx"> testComputedScrollSnapRule(&quot;pixel points along x axis with pixel repeat&quot;, &quot;points-x&quot;, &quot;100px repeat(42px)&quot;, &quot;100px repeat(42px)&quot;);
</span><span class="cx"> 
</span><del>-testComputedScrollSnapRule(&quot;inherited points along y axis&quot;, &quot;points-y&quot;, &quot;inherit&quot;, &quot;repeat(100%)&quot;);
-testComputedScrollSnapRule(&quot;initial points along y axis&quot;, &quot;points-y&quot;, &quot;initial&quot;, &quot;repeat(100%)&quot;);
</del><ins>+testComputedScrollSnapRule(&quot;inherited points along y axis&quot;, &quot;points-y&quot;, &quot;inherit&quot;, &quot;none&quot;);
+testComputedScrollSnapRule(&quot;initial points along y axis&quot;, &quot;points-y&quot;, &quot;initial&quot;, &quot;none&quot;);
</ins><span class="cx"> testComputedScrollSnapRule(&quot;element points along y axis&quot;, &quot;points-y&quot;, &quot;elements&quot;, &quot;elements&quot;);
</span><span class="cx"> testComputedScrollSnapRule(&quot;percentage points along y axis&quot;, &quot;points-y&quot;, &quot;100% 50%&quot;, &quot;100% 50%&quot;);
</span><span class="cx"> testComputedScrollSnapRule(&quot;pixel points along y axis&quot;, &quot;points-y&quot;, &quot;100px 50px&quot;, &quot;100px 50px&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsplatformeflTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/efl/TestExpectations (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/efl/TestExpectations        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/LayoutTests/platform/efl/TestExpectations        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -59,6 +59,9 @@
</span><span class="cx"> fast/dom/Window/slow-unload-handler.html
</span><span class="cx"> fast/dom/Window/slow-unload-handler-only-frame-is-stopped.html
</span><span class="cx"> 
</span><ins>+# Need a scroll snap point implementation
+css3/scroll-snap [ Skip ]
+
</ins><span class="cx"> # ----------------------------------------
</span><span class="cx"> # Tests which also fail in other platforms
</span><span class="cx"> # ----------------------------------------
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/gtk/TestExpectations (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/TestExpectations        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/LayoutTests/platform/gtk/TestExpectations        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -620,7 +620,8 @@
</span><span class="cx"> webkit.org/b/142291 fast/layers/no-clipping-overflow-hidden-hardware-acceleration.html [ ImageOnlyFailure ]
</span><span class="cx"> webkit.org/b/142291 fast/regions/repaint/fixed-in-named-flow-cb-changed.html [ ImageOnlyFailure ]
</span><span class="cx"> 
</span><del>-
</del><ins>+# TODO Scroll snap points
+css3/scroll-snap [ Skip ]
</ins><span class="cx"> #////////////////////////////////////////////////////////////////////////////////////////
</span><span class="cx"> # End of Expected failures
</span><span class="cx"> #////////////////////////////////////////////////////////////////////////////////////////
</span></span></pre></div>
<a id="trunkLayoutTestsplatformwinTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/win/TestExpectations (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/win/TestExpectations        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/LayoutTests/platform/win/TestExpectations        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -591,6 +591,9 @@
</span><span class="cx"> 
</span><span class="cx"> # TODO Attachment elements do not provide a custom renderer
</span><span class="cx"> webkit.org/b/142260 fast/attachment [ Skip ]
</span><ins>+
+# TODO Scroll snap points
+css3/scroll-snap [ Skip ]
</ins><span class="cx"> ################################################################################
</span><span class="cx"> ###########    End Missing Functionality Prevents Testing         ##############
</span><span class="cx"> ################################################################################
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/ChangeLog        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -1,3 +1,47 @@
</span><ins>+2015-03-06  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        Add 'initial' keyword support for scroll snap CSS properties
+        https://bugs.webkit.org/show_bug.cgi?id=136345
+        &lt;rdar://problem/18162325&gt;
+
+        Reviewed by Dean Jackson.
+
+        Tested by css3/scroll-snap/scroll-snap-initial.html
+
+        The existing implementation already had 'initial' keyword support, but did not fully follow
+        the CSS specification. In particular, the 'initial' state for the scroll-snap-points-x and
+        scroll-snap-points-y properties was not handled correctly.
+
+        Revise implementation to represent ScrollSnapPoints as a pointer, so that 'none' is a valid
+        state.
+
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::scrollSnapPoints): If 'points' is null, return CSSValueNone.
+        * css/CSSPropertyNames.in: Provide custom initial/inherit handles for snap point x/y sets.
+        * css/StyleBuilderConverter.h:
+        (WebCore::StyleBuilderConverter::convertScrollSnapPoints): Update to represent ScrollSnapPoints
+        as a pointer.
+        * css/StyleBuilderCustom.h:
+        (WebCore::StyleBuilderCustom::applyInitialWebkitScrollSnapPointsX): Provide custom pointer-based
+        implementation for ScrollSnapPoints.
+        (WebCore::StyleBuilderCustom::applyInheritWebkitScrollSnapPointsX): Ditto.
+        (WebCore::StyleBuilderCustom::applyInitialWebkitScrollSnapPointsY): Ditto.
+        (WebCore::StyleBuilderCustom::applyInheritWebkitScrollSnapPointsY): Ditto.&quot;
+        * page/scrolling/AxisScrollSnapOffsets.cpp:
+        (WebCore::updateFromStyle): Handle ScrollSnapPoints as pointers.
+        (WebCore::updateSnapOffsetsForScrollableArea): Ditto.
+        * rendering/style/RenderStyle.cpp:
+        (WebCore::RenderStyle::scrollSnapPointsX): Update to use pointer-based representation of ScrollSnapPoints.
+        (WebCore::RenderStyle::scrollSnapPointsY): Ditto.
+        (WebCore::RenderStyle::setScrollSnapPointsX): Ditto.
+        (WebCore::RenderStyle::setScrollSnapPointsY): Ditto.
+        (WebCore::RenderStyle::initialScrollSnapPointsX): Deleted.
+        (WebCore::RenderStyle::initialScrollSnapPointsY): Deleted.
+        * rendering/style/RenderStyle.h:
+        * rendering/style/StyleScrollSnapPoints.cpp:
+        (WebCore::StyleScrollSnapPoints::StyleScrollSnapPoints): Revise constructor to handle pointer argument.
+        * rendering/style/StyleScrollSnapPoints.h:
+
</ins><span class="cx"> 2015-03-05  Roger Fong  &lt;roger_fong@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Reskin Captions button and container on OSX.
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -1106,7 +1106,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_SCROLL_SNAP)
</span><del>-
</del><span class="cx"> static Ref&lt;CSSValueList&gt; scrollSnapDestination(RenderStyle&amp; style, const LengthSize&amp; destination)
</span><span class="cx"> {
</span><span class="cx">     auto list = CSSValueList::createSpaceSeparated();
</span><span class="lines">@@ -1115,15 +1114,18 @@
</span><span class="cx">     return list;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSValue&gt; scrollSnapPoints(RenderStyle&amp; style, const ScrollSnapPoints&amp; points)
</del><ins>+static Ref&lt;CSSValue&gt; scrollSnapPoints(RenderStyle&amp; style, const ScrollSnapPoints* points)
</ins><span class="cx"> {
</span><del>-    if (points.usesElements)
</del><ins>+    if (!points)
+        return cssValuePool().createIdentifierValue(CSSValueNone);
+
+    if (points-&gt;usesElements)
</ins><span class="cx">         return cssValuePool().createIdentifierValue(CSSValueElements);
</span><span class="cx">     auto list = CSSValueList::createSpaceSeparated();
</span><del>-    for (auto&amp; point : points.offsets)
</del><ins>+    for (auto&amp; point : points-&gt;offsets)
</ins><span class="cx">         list.get().append(percentageOrZoomAdjustedValue(point, &amp;style));
</span><del>-    if (points.hasRepeat)
-        list.get().append(cssValuePool().createValue(LengthRepeat::create(percentageOrZoomAdjustedValue(points.repeatOffset, &amp;style))));
</del><ins>+    if (points-&gt;hasRepeat)
+        list.get().append(cssValuePool().createValue(LengthRepeat::create(percentageOrZoomAdjustedValue(points-&gt;repeatOffset, &amp;style))));
</ins><span class="cx">     return WTF::move(list);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1143,7 +1145,6 @@
</span><span class="cx"> 
</span><span class="cx">     return WTF::move(list);
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> static Ref&lt;CSSValueList&gt; getDelayValue(const AnimationList* animList)
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSPropertyNamesin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSPropertyNames.in (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSPropertyNames.in        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/css/CSSPropertyNames.in        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -560,8 +560,8 @@
</span><span class="cx"> -webkit-print-color-adjust [Inherited]
</span><span class="cx"> -webkit-rtl-ordering [Inherited, Setter=setRTLOrdering, Initial=initialRTLOrdering]
</span><span class="cx"> #if defined(ENABLE_CSS_SCROLL_SNAP)
</span><del>--webkit-scroll-snap-points-x [Converter=ScrollSnapPoints]
--webkit-scroll-snap-points-y [Converter=ScrollSnapPoints]
</del><ins>+-webkit-scroll-snap-points-x [Converter=ScrollSnapPoints, Custom=Initial|Inherit]
+-webkit-scroll-snap-points-y [Converter=ScrollSnapPoints, Custom=Initial|Inherit]
</ins><span class="cx"> -webkit-scroll-snap-type
</span><span class="cx"> -webkit-scroll-snap-destination [Converter=SnapCoordinatePair]
</span><span class="cx"> -webkit-scroll-snap-coordinate [Converter=ScrollSnapCoordinates, NameForMethods=ScrollSnapCoordinates]
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleBuilderConverterh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleBuilderConverter.h (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleBuilderConverter.h        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/css/StyleBuilderConverter.h        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -90,7 +90,7 @@
</span><span class="cx">     static TextDecorationSkip convertTextDecorationSkip(StyleResolver&amp;, CSSValue&amp;);
</span><span class="cx">     static PassRefPtr&lt;ShapeValue&gt; convertShapeValue(StyleResolver&amp;, CSSValue&amp;);
</span><span class="cx"> #if ENABLE(CSS_SCROLL_SNAP)
</span><del>-    static ScrollSnapPoints convertScrollSnapPoints(StyleResolver&amp;, CSSValue&amp;);
</del><ins>+    static std::unique_ptr&lt;ScrollSnapPoints&gt; convertScrollSnapPoints(StyleResolver&amp;, CSSValue&amp;);
</ins><span class="cx">     static LengthSize convertSnapCoordinatePair(StyleResolver&amp;, CSSValue&amp;, size_t offset = 0);
</span><span class="cx">     static Vector&lt;LengthSize&gt; convertScrollSnapCoordinates(StyleResolver&amp;, CSSValue&amp;);
</span><span class="cx"> #endif
</span><span class="lines">@@ -708,27 +708,27 @@
</span><span class="cx">     return downcast&lt;CSSPrimitiveValue&gt;(value).convertToLength&lt;FixedIntegerConversion | PercentConversion | AutoConversion&gt;(styleResolver.state().cssToLengthConversionData());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-inline ScrollSnapPoints StyleBuilderConverter::convertScrollSnapPoints(StyleResolver&amp; styleResolver, CSSValue&amp; value)
</del><ins>+inline std::unique_ptr&lt;ScrollSnapPoints&gt; StyleBuilderConverter::convertScrollSnapPoints(StyleResolver&amp; styleResolver, CSSValue&amp; value)
</ins><span class="cx"> {
</span><del>-    ScrollSnapPoints points;
</del><ins>+    auto points = std::make_unique&lt;ScrollSnapPoints&gt;();
</ins><span class="cx"> 
</span><span class="cx">     if (is&lt;CSSPrimitiveValue&gt;(value)) {
</span><span class="cx">         ASSERT(downcast&lt;CSSPrimitiveValue&gt;(value).getValueID() == CSSValueElements);
</span><del>-        points.usesElements = true;
</del><ins>+        points-&gt;usesElements = true;
</ins><span class="cx">         return points;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    points.hasRepeat = false;
</del><ins>+    points-&gt;hasRepeat = false;
</ins><span class="cx">     for (auto&amp; currentValue : downcast&lt;CSSValueList&gt;(value)) {
</span><span class="cx">         auto&amp; itemValue = downcast&lt;CSSPrimitiveValue&gt;(currentValue.get());
</span><span class="cx">         if (auto* lengthRepeat = itemValue.getLengthRepeatValue()) {
</span><span class="cx">             if (auto* interval = lengthRepeat-&gt;interval()) {
</span><del>-                points.repeatOffset = parseSnapCoordinate(styleResolver, *interval);
-                points.hasRepeat = true;
</del><ins>+                points-&gt;repeatOffset = parseSnapCoordinate(styleResolver, *interval);
+                points-&gt;hasRepeat = true;
</ins><span class="cx">                 break;
</span><span class="cx">             }
</span><span class="cx">         }
</span><del>-        points.offsets.append(parseSnapCoordinate(styleResolver, itemValue));
</del><ins>+        points-&gt;offsets.append(parseSnapCoordinate(styleResolver, itemValue));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return points;
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleBuilderCustomh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleBuilderCustom.h (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleBuilderCustom.h        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/css/StyleBuilderCustom.h        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -128,6 +128,12 @@
</span><span class="cx"> #endif
</span><span class="cx">     static void applyValueWebkitWritingMode(StyleResolver&amp;, CSSValue&amp;);
</span><span class="cx">     static void applyValueAlt(StyleResolver&amp;, CSSValue&amp;);
</span><ins>+#if ENABLE(CSS_SCROLL_SNAP)
+    static void applyInitialWebkitScrollSnapPointsX(StyleResolver&amp;);
+    static void applyInheritWebkitScrollSnapPointsX(StyleResolver&amp;);
+    static void applyInitialWebkitScrollSnapPointsY(StyleResolver&amp;);
+    static void applyInheritWebkitScrollSnapPointsY(StyleResolver&amp;);
+#endif
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     static void resetEffectiveZoom(StyleResolver&amp;);
</span><span class="lines">@@ -1693,6 +1699,28 @@
</span><span class="cx">         styleResolver.style()-&gt;setContentAltText(emptyAtom);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#if ENABLE(CSS_SCROLL_SNAP)
+inline void StyleBuilderCustom::applyInitialWebkitScrollSnapPointsX(StyleResolver&amp; styleResolver)
+{
+    styleResolver.style()-&gt;setScrollSnapPointsX(nullptr);
+}
+
+inline void StyleBuilderCustom::applyInheritWebkitScrollSnapPointsX(StyleResolver&amp; styleResolver)
+{
+    styleResolver.style()-&gt;setScrollSnapPointsX(styleResolver.parentStyle()-&gt;scrollSnapPointsX() ? std::make_unique&lt;ScrollSnapPoints&gt;(*styleResolver.parentStyle()-&gt;scrollSnapPointsX()) : nullptr);
+}
+
+inline void StyleBuilderCustom::applyInitialWebkitScrollSnapPointsY(StyleResolver&amp; styleResolver)
+{
+    styleResolver.style()-&gt;setScrollSnapPointsY(nullptr);
+}
+
+inline void StyleBuilderCustom::applyInheritWebkitScrollSnapPointsY(StyleResolver&amp; styleResolver)
+{
+    styleResolver.style()-&gt;setScrollSnapPointsY(styleResolver.parentStyle()-&gt;scrollSnapPointsY() ? std::make_unique&lt;ScrollSnapPoints&gt;(*styleResolver.parentStyle()-&gt;scrollSnapPointsY()) : nullptr);
+}
+#endif
+
</ins><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // StyleBuilderCustom_h
</span></span></pre></div>
<a id="trunkSourceWebCorepagescrollingAxisScrollSnapOffsetscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/scrolling/AxisScrollSnapOffsets.cpp (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/scrolling/AxisScrollSnapOffsets.cpp        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/page/scrolling/AxisScrollSnapOffsets.cpp        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2014 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2014-2015 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -75,10 +75,10 @@
</span><span class="cx">         snapOffsetSubsequence.append(0);
</span><span class="cx"> 
</span><span class="cx">     bool isHorizontalAxis = axis == ScrollEventAxis::Horizontal;
</span><del>-    auto&amp; points = isHorizontalAxis ? style.scrollSnapPointsX() : style.scrollSnapPointsY();
</del><ins>+    auto* points = isHorizontalAxis ? style.scrollSnapPointsX() : style.scrollSnapPointsY();
</ins><span class="cx">     auto&amp; destination = style.scrollSnapDestination();
</span><del>-    bool hasRepeat = points.hasRepeat;
-    LayoutUnit repeatOffset = valueForLength(points.repeatOffset, viewSize);
</del><ins>+    bool hasRepeat = points ? points-&gt;hasRepeat : false;
+    LayoutUnit repeatOffset = points ? valueForLength(points-&gt;repeatOffset, viewSize) : LayoutUnit();
</ins><span class="cx">     LayoutUnit destinationOffset = valueForLength(isHorizontalAxis ? destination.width() : destination.height(), viewSize);
</span><span class="cx">     LayoutUnit curSnapPositionShift = 0;
</span><span class="cx">     LayoutUnit maxScrollOffset = scrollSize - viewSize;
</span><span class="lines">@@ -130,19 +130,22 @@
</span><span class="cx">     Vector&lt;LayoutUnit&gt; horizontalSnapOffsetSubsequence;
</span><span class="cx">     Vector&lt;LayoutUnit&gt; verticalSnapOffsetSubsequence;
</span><span class="cx"> 
</span><del>-    if (scrollingElementStyle.scrollSnapPointsX().usesElements || scrollingElementStyle.scrollSnapPointsY().usesElements) {
-        bool shouldAddHorizontalChildOffsets = scrollingElementStyle.scrollSnapPointsX().usesElements &amp;&amp; canComputeHorizontalOffsets;
-        bool shouldAddVerticalChildOffsets = scrollingElementStyle.scrollSnapPointsY().usesElements &amp;&amp; canComputeVerticalOffsets;
</del><ins>+    bool scrollSnapPointsXUsesElements = scrollingElementStyle.scrollSnapPointsX() ? scrollingElementStyle.scrollSnapPointsX()-&gt;usesElements : false;
+    bool scrollSnapPointsYUsesElements = scrollingElementStyle.scrollSnapPointsY() ? scrollingElementStyle.scrollSnapPointsY()-&gt;usesElements : false;
+
+    if (scrollSnapPointsXUsesElements || scrollSnapPointsYUsesElements) {
+        bool shouldAddHorizontalChildOffsets = scrollSnapPointsXUsesElements &amp;&amp; canComputeHorizontalOffsets;
+        bool shouldAddVerticalChildOffsets = scrollSnapPointsYUsesElements &amp;&amp; canComputeVerticalOffsets;
</ins><span class="cx">         appendChildSnapOffsets(scrollingElement, shouldAddHorizontalChildOffsets, horizontalSnapOffsetSubsequence, shouldAddVerticalChildOffsets, verticalSnapOffsetSubsequence);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (!scrollingElementStyle.scrollSnapPointsX().usesElements &amp;&amp; canComputeHorizontalOffsets) {
-        for (auto&amp; snapLength : scrollingElementStyle.scrollSnapPointsX().offsets)
</del><ins>+    if (scrollingElementStyle.scrollSnapPointsX() &amp;&amp; !scrollSnapPointsXUsesElements &amp;&amp; canComputeHorizontalOffsets) {
+        for (auto&amp; snapLength : scrollingElementStyle.scrollSnapPointsX()-&gt;offsets)
</ins><span class="cx">             horizontalSnapOffsetSubsequence.append(valueForLength(snapLength, viewWidth));
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (!scrollingElementStyle.scrollSnapPointsY().usesElements &amp;&amp; canComputeVerticalOffsets) {
-        for (auto&amp; snapLength : scrollingElementStyle.scrollSnapPointsY().offsets)
</del><ins>+    if (scrollingElementStyle.scrollSnapPointsY() &amp;&amp; !scrollSnapPointsYUsesElements &amp;&amp; canComputeVerticalOffsets) {
+        for (auto&amp; snapLength : scrollingElementStyle.scrollSnapPointsY()-&gt;offsets)
</ins><span class="cx">             verticalSnapOffsetSubsequence.append(valueForLength(snapLength, viewHeight));
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingstyleRenderStylecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/style/RenderStyle.cpp (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/style/RenderStyle.cpp        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.cpp        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> /*
</span><span class="cx">  * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
</span><del>- * Copyright (C) 2004-2014 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2004-2015 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
</span><span class="cx">  *
</span><span class="cx">  * This library is free software; you can redistribute it and/or
</span><span class="lines">@@ -1865,17 +1865,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_SCROLL_SNAP)
</span><del>-
-ScrollSnapPoints RenderStyle::initialScrollSnapPointsX()
-{
-    return ScrollSnapPoints();
-}
-
-ScrollSnapPoints RenderStyle::initialScrollSnapPointsY()
-{
-    return ScrollSnapPoints();
-}
-
</del><span class="cx"> LengthSize RenderStyle::initialScrollSnapDestination()
</span><span class="cx"> {
</span><span class="cx">     return defaultScrollSnapDestination();
</span><span class="lines">@@ -1886,14 +1875,14 @@
</span><span class="cx">     return Vector&lt;LengthSize&gt;();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-const ScrollSnapPoints&amp; RenderStyle::scrollSnapPointsX() const
</del><ins>+const ScrollSnapPoints* RenderStyle::scrollSnapPointsX() const
</ins><span class="cx"> {
</span><del>-    return rareNonInheritedData-&gt;m_scrollSnapPoints-&gt;xPoints;
</del><ins>+    return rareNonInheritedData-&gt;m_scrollSnapPoints-&gt;xPoints.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-const ScrollSnapPoints&amp; RenderStyle::scrollSnapPointsY() const
</del><ins>+const ScrollSnapPoints* RenderStyle::scrollSnapPointsY() const
</ins><span class="cx"> {
</span><del>-    return rareNonInheritedData-&gt;m_scrollSnapPoints-&gt;yPoints;
</del><ins>+    return rareNonInheritedData-&gt;m_scrollSnapPoints-&gt;yPoints.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> const LengthSize&amp; RenderStyle::scrollSnapDestination() const
</span><span class="lines">@@ -1906,16 +1895,16 @@
</span><span class="cx">     return rareNonInheritedData-&gt;m_scrollSnapPoints-&gt;coordinates;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void RenderStyle::setScrollSnapPointsX(ScrollSnapPoints points)
</del><ins>+void RenderStyle::setScrollSnapPointsX(std::unique_ptr&lt;ScrollSnapPoints&gt; points)
</ins><span class="cx"> {
</span><del>-    if (rareNonInheritedData-&gt;m_scrollSnapPoints-&gt;xPoints == points)
</del><ins>+    if (rareNonInheritedData-&gt;m_scrollSnapPoints-&gt;xPoints.get() == points.get())
</ins><span class="cx">         return;
</span><span class="cx">     rareNonInheritedData.access()-&gt;m_scrollSnapPoints.access()-&gt;xPoints = WTF::move(points);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void RenderStyle::setScrollSnapPointsY(ScrollSnapPoints points)
</del><ins>+void RenderStyle::setScrollSnapPointsY(std::unique_ptr&lt;ScrollSnapPoints&gt; points)
</ins><span class="cx"> {
</span><del>-    if (rareNonInheritedData-&gt;m_scrollSnapPoints-&gt;yPoints == points)
</del><ins>+    if (rareNonInheritedData-&gt;m_scrollSnapPoints-&gt;yPoints.get() == points.get())
</ins><span class="cx">         return;
</span><span class="cx">     rareNonInheritedData.access()-&gt;m_scrollSnapPoints.access()-&gt;yPoints = WTF::move(points);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingstyleRenderStyleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/style/RenderStyle.h (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/style/RenderStyle.h        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.h        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -1080,8 +1080,8 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_SCROLL_SNAP)
</span><span class="cx">     ScrollSnapType scrollSnapType() const { return static_cast&lt;ScrollSnapType&gt;(rareNonInheritedData-&gt;m_scrollSnapType); }
</span><del>-    const ScrollSnapPoints&amp; scrollSnapPointsX() const;
-    const ScrollSnapPoints&amp; scrollSnapPointsY() const;
</del><ins>+    const ScrollSnapPoints* scrollSnapPointsX() const;
+    const ScrollSnapPoints* scrollSnapPointsY() const;
</ins><span class="cx">     const LengthSize&amp; scrollSnapDestination() const;
</span><span class="cx">     const Vector&lt;LengthSize&gt;&amp; scrollSnapCoordinates() const;
</span><span class="cx"> #endif
</span><span class="lines">@@ -1625,8 +1625,8 @@
</span><span class="cx">     
</span><span class="cx"> #if ENABLE(CSS_SCROLL_SNAP)
</span><span class="cx">     void setScrollSnapType(ScrollSnapType type) { SET_VAR(rareNonInheritedData, m_scrollSnapType, static_cast&lt;unsigned&gt;(type)); }
</span><del>-    void setScrollSnapPointsX(ScrollSnapPoints);
-    void setScrollSnapPointsY(ScrollSnapPoints);
</del><ins>+    void setScrollSnapPointsX(std::unique_ptr&lt;ScrollSnapPoints&gt;);
+    void setScrollSnapPointsY(std::unique_ptr&lt;ScrollSnapPoints&gt;);
</ins><span class="cx">     void setScrollSnapDestination(LengthSize);
</span><span class="cx">     void setScrollSnapCoordinates(Vector&lt;LengthSize&gt;);
</span><span class="cx"> #endif
</span><span class="lines">@@ -1959,16 +1959,16 @@
</span><span class="cx">     static ImageResolutionSource initialImageResolutionSource() { return ImageResolutionSpecified; }
</span><span class="cx">     static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolutionNoSnap; }
</span><span class="cx">     static float initialImageResolution() { return 1; }
</span><del>-    static StyleImage* initialBorderImageSource() { return 0; }
-    static StyleImage* initialMaskBoxImageSource() { return 0; }
</del><ins>+    static StyleImage* initialBorderImageSource() { return nullptr; }
+    static StyleImage* initialMaskBoxImageSource() { return nullptr; }
</ins><span class="cx">     static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustEconomy; }
</span><span class="cx">     static QuotesData* initialQuotes() { return nullptr; }
</span><span class="cx">     static const AtomicString&amp; initialContentAltText() { return emptyAtom; }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_SCROLL_SNAP)
</span><span class="cx">     static ScrollSnapType initialScrollSnapType() { return ScrollSnapType::None; }
</span><del>-    static ScrollSnapPoints initialScrollSnapPointsX();
-    static ScrollSnapPoints initialScrollSnapPointsY();
</del><ins>+    static ScrollSnapPoints* initialScrollSnapPointsX() { return nullptr; }
+    static ScrollSnapPoints* initialScrollSnapPointsY() { return nullptr; }
</ins><span class="cx">     static LengthSize initialScrollSnapDestination();
</span><span class="cx">     static Vector&lt;LengthSize&gt; initialScrollSnapCoordinates();
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingstyleStyleScrollSnapPointscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.cpp (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.cpp        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.cpp        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -57,8 +57,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline StyleScrollSnapPoints::StyleScrollSnapPoints(const StyleScrollSnapPoints&amp; other)
</span><span class="cx">     : RefCounted()
</span><del>-    , xPoints(other.xPoints)
-    , yPoints(other.yPoints)
</del><ins>+    , xPoints(other.xPoints ? std::make_unique&lt;ScrollSnapPoints&gt;(*other.xPoints) : nullptr)
+    , yPoints(other.yPoints ? std::make_unique&lt;ScrollSnapPoints&gt;(*other.yPoints) : nullptr)
</ins><span class="cx">     , destination(other.destination)
</span><span class="cx">     , coordinates(other.coordinates)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingstyleStyleScrollSnapPointsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.h (181188 => 181189)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.h        2015-03-06 23:13:53 UTC (rev 181188)
+++ trunk/Source/WebCore/rendering/style/StyleScrollSnapPoints.h        2015-03-06 23:39:57 UTC (rev 181189)
</span><span class="lines">@@ -53,8 +53,8 @@
</span><span class="cx">     static Ref&lt;StyleScrollSnapPoints&gt; create() { return adoptRef(*new StyleScrollSnapPoints); }
</span><span class="cx">     Ref&lt;StyleScrollSnapPoints&gt; copy() const;
</span><span class="cx"> 
</span><del>-    ScrollSnapPoints xPoints;
-    ScrollSnapPoints yPoints;
</del><ins>+    std::unique_ptr&lt;ScrollSnapPoints&gt; xPoints;
+    std::unique_ptr&lt;ScrollSnapPoints&gt; yPoints;
</ins><span class="cx">     LengthSize destination;
</span><span class="cx">     Vector&lt;LengthSize&gt; coordinates;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>