<!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>[172242] branches/safari-600.1-branch</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/172242">172242</a></dd>
<dt>Author</dt> <dd>dburkart@apple.com</dd>
<dt>Date</dt> <dd>2014-08-07 13:33:04 -0700 (Thu, 07 Aug 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Merged <a href="http://trac.webkit.org/projects/webkit/changeset/172160">r172160</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari6001branchLayoutTestsChangeLog">branches/safari-600.1-branch/LayoutTests/ChangeLog</a></li>
<li><a href="#branchessafari6001branchSourceWebCoreChangeLog">branches/safari-600.1-branch/Source/WebCore/ChangeLog</a></li>
<li><a href="#branchessafari6001branchSourceWebCorerenderingRenderLayercpp">branches/safari-600.1-branch/Source/WebCore/rendering/RenderLayer.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#branchessafari6001branchLayoutTestsplatformmacfastscrollingscrolllatchednesteddivexpectedtxt">branches/safari-600.1-branch/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div-expected.txt</a></li>
<li><a href="#branchessafari6001branchLayoutTestsplatformmacfastscrollingscrolllatchednesteddivhtml">branches/safari-600.1-branch/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari6001branchLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1-branch/LayoutTests/ChangeLog (172241 => 172242)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1-branch/LayoutTests/ChangeLog        2014-08-07 20:31:41 UTC (rev 172241)
+++ branches/safari-600.1-branch/LayoutTests/ChangeLog        2014-08-07 20:33:04 UTC (rev 172242)
</span><span class="lines">@@ -1,5 +1,20 @@
</span><span class="cx"> 2014-08-07  Dana Burkart &lt;dburkart@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Merge r172160
+
+    2014-08-06  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+            [Mac] Unable to scroll to bottom of nested scrollable areas
+            https://bugs.webkit.org/show_bug.cgi?id=135637
+            &lt;rdar://problem/17910241&gt;
+
+            Reviewed by Zalan Bujtas.
+
+            * platform/mac/fast/scrolling/scroll-latched-nested-div-expected.txt: Added.
+            * platform/mac/fast/scrolling/scroll-latched-nested-div.html: Added.
+
+2014-08-07  Dana Burkart &lt;dburkart@apple.com&gt;
+
</ins><span class="cx">         Merge r172112
</span><span class="cx"> 
</span><span class="cx">     2014-08-05  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</span></span></pre></div>
<a id="branchessafari6001branchLayoutTestsplatformmacfastscrollingscrolllatchednesteddivexpectedtxtfromrev172160trunkLayoutTestsplatformmacfastscrollingscrolllatchednesteddivexpectedtxt"></a>
<div class="copfile"><h4>Copied: branches/safari-600.1-branch/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div-expected.txt (from rev 172160, trunk/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div-expected.txt) (0 => 172242)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1-branch/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div-expected.txt                                (rev 0)
+++ branches/safari-600.1-branch/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div-expected.txt        2014-08-07 20:33:04 UTC (rev 172242)
</span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+Put mouse next to the table labeled 'Scrollable Region' and flick downward. The scroll movement should come to a halt. Then flick again. The overall page should scroll.
+Scrollable Region
+
+Count        DATA        Rev Count
+TOP TOP TOP TOP TOP        TOP TOP TOP TOP TOP        TOP TOP TOP TOP TOP
+1        0.1100        40
+2        0.1155        39
+3        0.2200        38
+4        0.2255        37
+5        0.3300        36
+6        0.3355        35
+7        0.4400        34
+8        0.4455        33
+9        0.5500        32
+10        0.5555        31
+11        0.6600        30
+12        0.6655        29
+13        0.7700        28
+14        0.7755        27
+15        0.8800        26
+16        0.8855        25
+17        0.9900        24
+18        0.9955        23
+19        0.9999        22
+20        1.0000        21
+21        1.0000        20
+22        0.9999        19
+23        0.9955        18
+24        0.9900        17
+25        0.8855        16
+26        0.8800        15
+27        0.7755        14
+28        0.7700        13
+29        0.6655        12
+30        0.6600        11
+31        0.5555        10
+32        0.5500        9
+33        0.4455        8
+34        0.4400        7
+35        0.3355        6
+36        0.3300        5
+37        0.2255        4
+38        0.2200        3
+39        0.1155        2
+40        0.1100        1
+END END END END END        END END END END END        END END END END END
+A set of information at the bottom of the table.
+
+Tests that a scrollable div nested inside another scrollable div properly handles wheel events under sub-pixel conditions.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+wrapperTarget = [object HTMLDivElement]
+First scroll event:
+PASS Page did not receive wheel events during the first gesture.
+PASS Wrapper received wheel events during the first gesture.
+PASS div did not receive wheel events during the first gesture.
+Second scroll event:
+PASS Page received wheel events during the second gesture.
+PASS Wrapper did not receive wheel events during the second gesture.
+PASS div did not receive wheel events during the second gesture.
+
</ins></span></pre></div>
<a id="branchessafari6001branchLayoutTestsplatformmacfastscrollingscrolllatchednesteddivhtmlfromrev172160trunkLayoutTestsplatformmacfastscrollingscrolllatchednesteddivhtml"></a>
<div class="copfile"><h4>Copied: branches/safari-600.1-branch/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div.html (from rev 172160, trunk/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div.html) (0 => 172242)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1-branch/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div.html                                (rev 0)
+++ branches/safari-600.1-branch/LayoutTests/platform/mac/fast/scrolling/scroll-latched-nested-div.html        2014-08-07 20:33:04 UTC (rev 172242)
</span><span class="lines">@@ -0,0 +1,224 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;style&gt;
+.scrollable_region {
+    width: 680px;
+}
+
+.table td, .table th {
+    padding: 2px;
+}
+
+.table th {
+    height: 20px;
+    text-align: left;
+    font-weight: strong;
+}
+
+.table tr:nth-child(odd) {
+    background: #f3f3f3;
+}
+
+.scrollable_select option:nth-child(odd) {
+    background: #f3f3f3;
+}
+
+&lt;/style&gt;
+&lt;script src=&quot;../../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+function onLoad() {
+    setupTopLevel();
+}
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body onload=&quot;onLoad();&quot;&gt;
+&lt;script&gt;
+
+var wrapperTarget;
+var divTarget;
+var pageScrollPositionBefore;
+var wrapperScrollPositionBefore;
+var divScrollPositionBefore;
+var continueCount = 5;
+
+function checkForSecondScroll() {
+    // 'parent' should have scrolled, the content of 'target' should
+    // not have scrolled, and 'wrapper' should not have scrolled.
+    var pageScrollPositionAfter = document.body.scrollTop;
+    var wrapperScrollPositionAfter = wrapperTarget.scrollTop;
+    var divScrollPositionAfter = divTarget.scrollTop;
+
+    debug(&quot;Second scroll event:&quot;);
+    if (pageScrollPositionBefore != pageScrollPositionAfter)
+        testPassed(&quot;Page received wheel events during the second gesture.&quot;);
+    else
+        testFailed(&quot;Page did not receive wheel events during the second gesture.&quot;);
+
+    if (wrapperScrollPositionBefore != wrapperScrollPositionAfter)
+        testFailed(&quot;Wrapper received wheel events during the second gesture.&quot;);
+    else
+        testPassed(&quot;Wrapper did not receive wheel events during the second gesture.&quot;);
+
+    if (divScrollPositionBefore != divScrollPositionAfter)
+        testFailed(&quot;div received wheel events during the second gesture.&quot;);
+    else
+        testPassed(&quot;div did not receive wheel events during the second gesture.&quot;);
+
+    testRunner.notifyDone();
+}
+
+function checkForFirstScroll() {
+    // 'parent' should not have scrolled, and the content of 'target' should
+    // not have moved. However, 'wrapper' should have moved.
+    var pageScrollPositionAfter = document.body.scrollTop;
+    var wrapperScrollPositionAfter = wrapperTarget.scrollTop;
+    var divScrollPositionAfter = divTarget.scrollTop;
+
+    debug(&quot;First scroll event:&quot;);
+    if (pageScrollPositionBefore != pageScrollPositionAfter)
+        testFailed(&quot;Page received wheel events during the first gesture.&quot;);
+    else
+        testPassed(&quot;Page did not receive wheel events during the first gesture.&quot;);
+
+    if (wrapperScrollPositionBefore != wrapperScrollPositionAfter)
+        testPassed(&quot;Wrapper received wheel events during the first gesture.&quot;);
+    else
+        testFailed(&quot;Wrapper did not receive wheel events during the first gesture.&quot;);
+
+    if (divScrollPositionBefore != divScrollPositionAfter)
+        testFailed(&quot;div received wheel events during the first gesture.&quot;);
+    else
+        testPassed(&quot;div did not receive wheel events during the first gesture.&quot;);
+
+    wrapperScrollPositionBefore = wrapperTarget.scrollTop;
+
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'began', 'none', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'changed', 'none', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'changed', 'none', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, 0, 'ended', 'none', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'none', 'begin', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'none', 'continue', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'none', 'continue', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'none', 'continue', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'none', 'continue', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, 0, 'none', 'end', true);
+    setTimeout(checkForSecondScroll, 100);
+}
+
+function scrollTest() {
+    // See where our IFrame lives:
+    pageScrollPositionBefore = document.body.scrollTop;
+
+    divTarget = document.getElementById('target');
+    divTarget.scrollTop = divTarget.scrollHeight - divTarget.clientHeight - 100;
+
+    divScrollPositionBefore = divTarget.scrollTop;
+
+    wrapperTarget = document.getElementById('wrapper');
+    wrapperScrollPositionBefore = wrapperTarget.scrollTop;
+    debug(&quot;wrapperTarget = &quot; + wrapperTarget);
+
+    // Move mouse to a position to the right side of the table, and near the bottom.
+    var startPosX = divTarget.offsetLeft + divTarget.clientWidth + 50;
+    var startPosY = Math.round(divTarget.offsetTop) - 42; // One wheel turn before end.
+    eventSender.mouseMoveTo(startPosX, startPosY); // Make sure we are just outside the iFrame
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'began', 'none', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'changed', 'none', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'changed', 'none', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, 0, 'ended', 'none', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -5, 'none', 'begin', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -5, 'none', 'continue', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -5, 'none', 'continue', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -5, 'none', 'continue', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -5, 'none', 'continue', true);
+    eventSender.mouseScrollByWithWheelAndMomentumPhases(0, 0, 'none', 'end', true);
+    setTimeout(checkForFirstScroll, 100);
+}
+
+function setupTopLevel() {
+
+    if (window.eventSender) {
+        testRunner.waitUntilDone();
+
+        setTimeout(scrollTest, 1000);
+    } else {
+        var messageLocation = document.getElementById('parent');
+        var message = document.createElement('div');
+        message.innerHTML = &quot;&lt;p&gt;This test is better run under DumpRenderTree. To manually test it, place the mouse pointer&lt;br/&gt;&quot;
+            + &quot;at the top of the page, and then use the mouse wheel or a two-finger swipe to scroll the&lt;br/&gt;&quot;
+            + &quot;down past the div.&lt;br/&gt;&lt;br/&gt;&quot;
+            + &quot;You should not see the row of END labels if this test is successful.&lt;/p&gt;&quot;;
+        messageLocation.appendChild(message);
+    }
+}
+
+&lt;/script&gt;
+&lt;div id=&quot;parent&quot; style=&quot;height: 2000px; width: 800px;&quot;&gt;
+    &lt;div id=&quot;wrapper&quot; style='overflow-y: auto; overflow-x: hidden; max-height: 600px;'&gt;
+        &lt;div id=&quot;source&quot; style=&quot;height: 100px; width: 600px;&quot;&gt;
+            Put mouse next to the table labeled 'Scrollable Region' and flick downward. The scroll movement
+            should come to a halt. Then flick again. The overall page should scroll.
+        &lt;/div&gt;
+        &lt;div class=&quot;scrollable_region&quot;&gt;
+            &lt;h3&gt;Scrollable Region&lt;/h3&gt;
+            &lt;div id=&quot;target&quot; style='overflow-y: auto; overflow-x: hidden; max-height: 485.55px;'&gt;
+                &lt;table class=&quot;table&quot; style='width: 99%'&gt;
+                    &lt;tr&gt;&lt;th&gt;Count&lt;/th&gt;&lt;th&gt;DATA&lt;/th&gt;&lt;th&gt;Rev Count&lt;/th&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;TOP TOP TOP TOP TOP&lt;/td&gt;&lt;td&gt;TOP TOP TOP TOP TOP&lt;/td&gt;&lt;td&gt;TOP TOP TOP TOP TOP&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;0.1100&lt;/td&gt;&lt;td&gt;40&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;0.1155&lt;/td&gt;&lt;td&gt;39&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;0.2200&lt;/td&gt;&lt;td&gt;38&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;0.2255&lt;/td&gt;&lt;td&gt;37&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;0.3300&lt;/td&gt;&lt;td&gt;36&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;0.3355&lt;/td&gt;&lt;td&gt;35&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;0.4400&lt;/td&gt;&lt;td&gt;34&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;8&lt;/td&gt;&lt;td&gt;0.4455&lt;/td&gt;&lt;td&gt;33&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;0.5500&lt;/td&gt;&lt;td&gt;32&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;10&lt;/td&gt;&lt;td&gt;0.5555&lt;/td&gt;&lt;td&gt;31&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;11&lt;/td&gt;&lt;td&gt;0.6600&lt;/td&gt;&lt;td&gt;30&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;12&lt;/td&gt;&lt;td&gt;0.6655&lt;/td&gt;&lt;td&gt;29&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;13&lt;/td&gt;&lt;td&gt;0.7700&lt;/td&gt;&lt;td&gt;28&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;14&lt;/td&gt;&lt;td&gt;0.7755&lt;/td&gt;&lt;td&gt;27&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;15&lt;/td&gt;&lt;td&gt;0.8800&lt;/td&gt;&lt;td&gt;26&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;16&lt;/td&gt;&lt;td&gt;0.8855&lt;/td&gt;&lt;td&gt;25&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;17&lt;/td&gt;&lt;td&gt;0.9900&lt;/td&gt;&lt;td&gt;24&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;18&lt;/td&gt;&lt;td&gt;0.9955&lt;/td&gt;&lt;td&gt;23&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;19&lt;/td&gt;&lt;td&gt;0.9999&lt;/td&gt;&lt;td&gt;22&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;20&lt;/td&gt;&lt;td&gt;1.0000&lt;/td&gt;&lt;td&gt;21&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;21&lt;/td&gt;&lt;td&gt;1.0000&lt;/td&gt;&lt;td&gt;20&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;22&lt;/td&gt;&lt;td&gt;0.9999&lt;/td&gt;&lt;td&gt;19&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;23&lt;/td&gt;&lt;td&gt;0.9955&lt;/td&gt;&lt;td&gt;18&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;24&lt;/td&gt;&lt;td&gt;0.9900&lt;/td&gt;&lt;td&gt;17&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;25&lt;/td&gt;&lt;td&gt;0.8855&lt;/td&gt;&lt;td&gt;16&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;26&lt;/td&gt;&lt;td&gt;0.8800&lt;/td&gt;&lt;td&gt;15&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;27&lt;/td&gt;&lt;td&gt;0.7755&lt;/td&gt;&lt;td&gt;14&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;28&lt;/td&gt;&lt;td&gt;0.7700&lt;/td&gt;&lt;td&gt;13&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;29&lt;/td&gt;&lt;td&gt;0.6655&lt;/td&gt;&lt;td&gt;12&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;30&lt;/td&gt;&lt;td&gt;0.6600&lt;/td&gt;&lt;td&gt;11&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;31&lt;/td&gt;&lt;td&gt;0.5555&lt;/td&gt;&lt;td&gt;10&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;32&lt;/td&gt;&lt;td&gt;0.5500&lt;/td&gt;&lt;td&gt;9&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;33&lt;/td&gt;&lt;td&gt;0.4455&lt;/td&gt;&lt;td&gt;8&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;34&lt;/td&gt;&lt;td&gt;0.4400&lt;/td&gt;&lt;td&gt;7&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;35&lt;/td&gt;&lt;td&gt;0.3355&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;36&lt;/td&gt;&lt;td&gt;0.3300&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;37&lt;/td&gt;&lt;td&gt;0.2255&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;38&lt;/td&gt;&lt;td&gt;0.2200&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;39&lt;/td&gt;&lt;td&gt;0.1155&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;40&lt;/td&gt;&lt;td&gt;0.1100&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;
+                    &lt;tr&gt;&lt;td&gt;END END END END END&lt;/td&gt;&lt;td&gt;END END END END END&lt;/td&gt;&lt;td&gt;END END END END END&lt;/td&gt;&lt;/tr&gt;
+                &lt;/table&gt;
+            &lt;/div&gt;
+            &lt;div id=&quot;bottom&quot; style=&quot;height: 100px; width: 600px;&quot;&gt;
+                &lt;p&gt;A set of information at the bottom of the table.&lt;/p&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 that a scrollable div nested inside another scrollable div properly handles wheel events under sub-pixel conditions.&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="branchessafari6001branchSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1-branch/Source/WebCore/ChangeLog (172241 => 172242)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1-branch/Source/WebCore/ChangeLog        2014-08-07 20:31:41 UTC (rev 172241)
+++ branches/safari-600.1-branch/Source/WebCore/ChangeLog        2014-08-07 20:33:04 UTC (rev 172242)
</span><span class="lines">@@ -1,5 +1,26 @@
</span><span class="cx"> 2014-08-07  Dana Burkart &lt;dburkart@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Merge r172160
+
+    2014-08-05  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+            [Mac] Unable to scroll to bottom of nested scrollable areas
+            https://bugs.webkit.org/show_bug.cgi?id=135637
+            &lt;rdar://problem/17910241&gt;
+
+            Reviewed by Zalan Bujtas.
+
+            Test: platform/mac/fast/scrolling/scroll-latched-nested-div.html
+
+            Avoid truncating the fractional portion of scroll ranges.
+
+            * rendering/RenderLayer.cpp:
+            (WebCore::RenderLayer::updateScrollbarsAfterLayout): Round
+            the LayoutUnit values for scroll width and height rather than
+            truncating.
+
+2014-08-07  Dana Burkart &lt;dburkart@apple.com&gt;
+
</ins><span class="cx">         Merge r172159
</span><span class="cx"> 
</span><span class="cx">     2014-08-06  Andy Estes  &lt;aestes@apple.com&gt;
</span></span></pre></div>
<a id="branchessafari6001branchSourceWebCorerenderingRenderLayercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1-branch/Source/WebCore/rendering/RenderLayer.cpp (172241 => 172242)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1-branch/Source/WebCore/rendering/RenderLayer.cpp        2014-08-07 20:31:41 UTC (rev 172241)
+++ branches/safari-600.1-branch/Source/WebCore/rendering/RenderLayer.cpp        2014-08-07 20:33:04 UTC (rev 172242)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2006-2014 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Portions are Copyright (C) 1998 Netscape Communications Corporation.
</span><span class="cx">  *
</span><span class="lines">@@ -3245,13 +3245,13 @@
</span><span class="cx">         int clientWidth = box-&gt;pixelSnappedClientWidth();
</span><span class="cx">         int pageStep = std::max(std::max&lt;int&gt;(clientWidth * Scrollbar::minFractionToStepWhenPaging(), clientWidth - Scrollbar::maxOverlapBetweenPages()), 1);
</span><span class="cx">         m_hBar-&gt;setSteps(Scrollbar::pixelsPerLineStep(), pageStep);
</span><del>-        m_hBar-&gt;setProportion(clientWidth, m_scrollSize.width());
</del><ins>+        m_hBar-&gt;setProportion(clientWidth, m_scrollSize.width().round());
</ins><span class="cx">     }
</span><span class="cx">     if (m_vBar) {
</span><span class="cx">         int clientHeight = box-&gt;pixelSnappedClientHeight();
</span><span class="cx">         int pageStep = std::max(std::max&lt;int&gt;(clientHeight * Scrollbar::minFractionToStepWhenPaging(), clientHeight - Scrollbar::maxOverlapBetweenPages()), 1);
</span><span class="cx">         m_vBar-&gt;setSteps(Scrollbar::pixelsPerLineStep(), pageStep);
</span><del>-        m_vBar-&gt;setProportion(clientHeight, m_scrollSize.height());
</del><ins>+        m_vBar-&gt;setProportion(clientHeight, m_scrollSize.height().round());
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     updateScrollableAreaSet(hasScrollableHorizontalOverflow() || hasScrollableVerticalOverflow());
</span></span></pre>
</div>
</div>

</body>
</html>