<!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>[198369] 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/198369">198369</a></dd>
<dt>Author</dt> <dd>mmaxfield@apple.com</dd>
<dt>Date</dt> <dd>2016-03-17 18:02:32 -0700 (Thu, 17 Mar 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>[RTL Scrollbars] Position: absolute divs are covered by vertical scrollbar
https://bugs.webkit.org/show_bug.cgi?id=155531
Reviewed by Darin Adler.
Source/WebCore:
This patch updates ScrollView::documentScrollPositionRelativeToViewOrigin(), which is
a helper function primarily used by WebCore::ScrollView::viewToContents() and
WebCore::ScrollView::contentsToView().
Tests: fast/scrolling/rtl-scrollbars-elementFromPoint-static.html
fast/scrolling/rtl-scrollbars-elementFromPoint.html
fast/scrolling/rtl-scrollbars-iframe-offset.html
fast/scrolling/rtl-scrollbars-iframe-position-absolute.html
fast/scrolling/rtl-scrollbars-iframe-scrolled.html
fast/scrolling/rtl-scrollbars-iframe.html
fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html
fast/scrolling/rtl-scrollbars-overflow-position-absolute.html
fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html
fast/scrolling/rtl-scrollbars-position-absolute.html
fast/scrolling/rtl-scrollbars-position-fixed.html
fast/scrolling/rtl-scrollbars-text-selection-scrolled.html
fast/scrolling/rtl-scrollbars-text-selection.html
* platform/ScrollView.cpp:
(WebCore::ScrollView::documentScrollPositionRelativeToViewOrigin):
LayoutTests:
Add a bunch of tests. Also, this patch adds some tests that caught
https://bugs.webkit.org/show_bug.cgi?id=155533 (but they are disabled).
* fast/scrolling/rtl-scrollbars-elementFromPoint-expected.txt: Added.
* fast/scrolling/rtl-scrollbars-elementFromPoint-static-expected.txt: Added.
* fast/scrolling/rtl-scrollbars-elementFromPoint-static.html: Added.
* fast/scrolling/rtl-scrollbars-elementFromPoint.html: Added.
* fast/scrolling/rtl-scrollbars-iframe-expected.txt: Added.
* fast/scrolling/rtl-scrollbars-iframe-offset-expected.html: Added.
* fast/scrolling/rtl-scrollbars-iframe-offset.html: Added.
* fast/scrolling/rtl-scrollbars-iframe-position-absolute-expected.txt: Added.
* fast/scrolling/rtl-scrollbars-iframe-position-absolute.html: Added.
* fast/scrolling/rtl-scrollbars-iframe-scrolled-expected.html: Added.
* fast/scrolling/rtl-scrollbars-iframe-scrolled.html: Added.
* fast/scrolling/rtl-scrollbars-iframe.html: Added.
* fast/scrolling/rtl-scrollbars-overflow-elementFromPoint-expected.txt: Added.
* fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html: Added.
* fast/scrolling/rtl-scrollbars-overflow-position-absolute-expected.html: Added.
* fast/scrolling/rtl-scrollbars-overflow-position-absolute.html: Added.
* fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled-expected.html: Added.
* fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html: Added.
* fast/scrolling/rtl-scrollbars-position-absolute-expected.html: Added.
* fast/scrolling/rtl-scrollbars-position-absolute.html: Added.
* fast/scrolling/rtl-scrollbars-position-fixed-expected.html: Added.
* fast/scrolling/rtl-scrollbars-position-fixed.html: Added.
* fast/scrolling/rtl-scrollbars-text-selection-expected.html: Added.
* fast/scrolling/rtl-scrollbars-text-selection-scrolled-expected.html: Added.
* fast/scrolling/rtl-scrollbars-text-selection-scrolled.html: Added.
* fast/scrolling/rtl-scrollbars-text-selection.html: Added.
* TestExpectations:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsTestExpectations">trunk/LayoutTests/TestExpectations</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="#trunkLayoutTestsplatformiossimulatorTestExpectations">trunk/LayoutTests/platform/ios-simulator/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformmacTestExpectations">trunk/LayoutTests/platform/mac/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk1TestExpectations">trunk/LayoutTests/platform/mac-wk1/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="#trunkSourceWebCoreplatformScrollViewcpp">trunk/Source/WebCore/platform/ScrollView.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformScrollableAreacpp">trunk/Source/WebCore/platform/ScrollableArea.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformScrollableAreah">trunk/Source/WebCore/platform/ScrollableArea.h</a></li>
<li><a href="#trunkSourceWebCoreplatformmacScrollableAreaMacmm">trunk/Source/WebCore/platform/mac/ScrollableAreaMac.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerCompositorcpp">trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarselementFromPointexpectedtxt">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarselementFromPointstaticexpectedtxt">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarselementFromPointstatichtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarselementFromPointhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsiframeexpectedtxt">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsiframeoffsetexpectedhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsiframeoffsethtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsiframepositionabsoluteexpectedtxt">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsiframepositionabsolutehtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsiframescrolledexpectedhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsiframescrolledhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsiframehtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsoverflowelementFromPointexpectedtxt">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsoverflowelementFromPointhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsoverflowpositionabsoluteexpectedhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsoverflowpositionabsolutehtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsoverflowtextselectionscrolledexpectedhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarsoverflowtextselectionscrolledhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarspositionabsoluteexpectedhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarspositionabsolutehtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarspositionfixedexpectedhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarspositionfixedhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarstextselectionexpectedhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarstextselectionscrolledexpectedhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarstextselectionscrolledhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled.html</a></li>
<li><a href="#trunkLayoutTestsfastscrollingrtlscrollbarstextselectionhtml">trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection.html</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/LayoutTests/ChangeLog        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -1,3 +1,41 @@
</span><ins>+2016-03-17 Myles C. Maxfield <mmaxfield@apple.com>
+
+ [RTL Scrollbars] Position: absolute divs are covered by vertical scrollbar
+ https://bugs.webkit.org/show_bug.cgi?id=155531
+
+ Reviewed by Darin Adler.
+
+ Add a bunch of tests. Also, this patch adds some tests that caught
+ https://bugs.webkit.org/show_bug.cgi?id=155533 (but they are disabled).
+
+ * fast/scrolling/rtl-scrollbars-elementFromPoint-expected.txt: Added.
+ * fast/scrolling/rtl-scrollbars-elementFromPoint-static-expected.txt: Added.
+ * fast/scrolling/rtl-scrollbars-elementFromPoint-static.html: Added.
+ * fast/scrolling/rtl-scrollbars-elementFromPoint.html: Added.
+ * fast/scrolling/rtl-scrollbars-iframe-expected.txt: Added.
+ * fast/scrolling/rtl-scrollbars-iframe-offset-expected.html: Added.
+ * fast/scrolling/rtl-scrollbars-iframe-offset.html: Added.
+ * fast/scrolling/rtl-scrollbars-iframe-position-absolute-expected.txt: Added.
+ * fast/scrolling/rtl-scrollbars-iframe-position-absolute.html: Added.
+ * fast/scrolling/rtl-scrollbars-iframe-scrolled-expected.html: Added.
+ * fast/scrolling/rtl-scrollbars-iframe-scrolled.html: Added.
+ * fast/scrolling/rtl-scrollbars-iframe.html: Added.
+ * fast/scrolling/rtl-scrollbars-overflow-elementFromPoint-expected.txt: Added.
+ * fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html: Added.
+ * fast/scrolling/rtl-scrollbars-overflow-position-absolute-expected.html: Added.
+ * fast/scrolling/rtl-scrollbars-overflow-position-absolute.html: Added.
+ * fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled-expected.html: Added.
+ * fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html: Added.
+ * fast/scrolling/rtl-scrollbars-position-absolute-expected.html: Added.
+ * fast/scrolling/rtl-scrollbars-position-absolute.html: Added.
+ * fast/scrolling/rtl-scrollbars-position-fixed-expected.html: Added.
+ * fast/scrolling/rtl-scrollbars-position-fixed.html: Added.
+ * fast/scrolling/rtl-scrollbars-text-selection-expected.html: Added.
+ * fast/scrolling/rtl-scrollbars-text-selection-scrolled-expected.html: Added.
+ * fast/scrolling/rtl-scrollbars-text-selection-scrolled.html: Added.
+ * fast/scrolling/rtl-scrollbars-text-selection.html: Added.
+ * TestExpectations:
+
</ins><span class="cx"> 2016-03-17 Brady Eidson <beidson@apple.com>
</span><span class="cx">
</span><span class="cx"> Don't try to restore deleted MemoryIndexes if their owning object store is not restored.
</span></span></pre></div>
<a id="trunkLayoutTestsTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/TestExpectations (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/TestExpectations        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/LayoutTests/TestExpectations        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -988,3 +988,22 @@
</span><span class="cx">
</span><span class="cx"> ### END OF IndexedDB failures
</span><span class="cx"> ########################################
</span><ins>+
+# RTL Scrollbars are only implemented on certain versions of OS X
+fast/scrolling/rtl-scrollbars.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-simple.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-overflow-contents.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-overflow-dir-rtl.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-overflow-padding.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-overflow-simple.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-overflow.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html [ Failure ]
+fast/scrolling/rtl-scrollbars-overflow-position-absolute.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-position-absolute.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-position-fixed.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-text-selection-scrolled.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-text-selection.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-iframe-offset.html [ ImageOnlyFailure ]
+fast/scrolling/rtl-scrollbars-elementFromPoint-static.html [ Failure ]
+fast/scrolling/rtl-scrollbars-iframe-scrolled.html [ ImageOnlyFailure ]
</ins></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarselementFromPointexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-expected.txt (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-expected.txt        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.elementFromPoint(7, 7).id is "a"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarselementFromPointstaticexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static-expected.txt (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static-expected.txt        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.elementFromPoint(22, 7).id is "a"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarselementFromPointstatichtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+<script src="../../resources/js-test-pre.js"></script>
+</head>
+<body>
+<div style="overflow: scroll; position: absolute; width: 100px; height: 100px; left: 0px; top: 0px;">
+<div id="a" style="width: 15px; height: 15px; background: green; display: inline-block;"></div><div id="b" style="width: 15px; height: 15px; background: red; display: inline-block;"></div>
+<div style="width: 1px; height: 3000px; position: absolute; left: 0px; top: 0px;"></div>
+</div>
+<script>
+description("This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.");
+shouldBeEqualToString("document.elementFromPoint(22, 7).id", "a");
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarselementFromPointhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+<script src="../../resources/js-test-pre.js"></script>
+</head>
+<body>
+<div id="a" style="width: 15px; height: 15px; position: absolute; left: 0px; top: 0px; background: green;"></div>
+<div id="b" style="width: 15px; height: 15px; position: absolute; left: 15px; top: 0px; background: red;"></div>
+<div style="width: 1px; height: 3000px; position: absolute; left: 0px; top: 0px;"></div>
+<script>
+description("This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.");
+shouldBeEqualToString("document.elementFromPoint(7, 7).id", "a");
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsiframeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-expected.txt (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-expected.txt        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS iframeDocument.elementFromPoint(7, 7).id is "a"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsiframeoffsetexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset-expected.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset-expected.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset-expected.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body>
+<div id="text" style='position: absolute; left: 0px; top: 0px;'>ABCD</div>
+<div style='position: absolute; left: 0px; top: 25px;'>DEFG</div>
+<div style="position: absolute; left: 8px; top: 100px;">This test makes sure that contents of iframes are not covered by an rtl scrollbar.</div>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsiframeoffsethtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body>
+<iframe id="iframe" style="position: absolute; width: 100px; height: 100px; left: -15px; top: 0px; margin: 0px; border: solid black 0px; padding: 0px;"
+srcdoc="<!DOCTYPE html>
+<head>
+</head>
+<body style='margin: 0px;'>
+ABCD
+<div style='position: absolute; left: 0px; top: 25px;'>DEFG</div>
+<div style='width: 1px; height: 2000px; position: absolute; left: 0px; top: 0px;'></div>
+</body>
+</html>"></iframe>
+<div style="position: absolute; left: 8px; top: 100px;">This test makes sure that contents of iframes are not covered by an rtl scrollbar.</div>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsiframepositionabsoluteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute-expected.txt (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute-expected.txt        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS iframeDocument.elementFromPoint(7, 7).id is "a"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsiframepositionabsolutehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+<script src='../../resources/js-test-pre.js'></script>
+</head>
+<body>
+<iframe id="iframe" style="position: absolute; width: 100px; height: 100px; left: 0px; top: 0px; margin: 0px; border: solid black 0px; padding: 0px;"
+srcdoc="<!DOCTYPE html>
+<head>
+</head>
+<body style='margin: 0px;'>
+<div id='a' style='width: 15px; height: 15px; background: green; position: absolute; left: 0px; top: 0px;'></div><div id='b' style='width: 15px; height: 15px; background: red; position: absolute; left: 15px; top: 0px;'></div>
+<div style='width: 1px; height: 2000px; position: absolute; left: 0px; top: 0px;'></div>
+</body>
+</html>"></iframe>
+<script>
+window.jsTestIsAsync = true;
+var iframe = document.getElementById("iframe");
+var iframeDocument;
+description('This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.');
+iframe.addEventListener("load", function() {
+        window.setTimeout(function() {
+                iframeDocument = iframe.contentDocument;
+                shouldBeEqualToString('iframeDocument.elementFromPoint(7, 7).id', 'a');
+                finishJSTest();
+        }, 0);
+});
+</script>
+<script src='../../resources/js-test-post.js'></script>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsiframescrolledexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled-expected.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled-expected.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled-expected.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body>
+<iframe id="iframe" style="position: absolute; width: 100px; height: 100px; left: 0px; top: 0px; margin: 0px; border: solid black 0px; padding: 0px;"
+srcdoc="<!DOCTYPE html>
+<head>
+</head>
+<body style='margin: 0px;'>
+<div id='text' style='font: 20px Ahem;'><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>ppp</div>
+<div style='width: 1px; height: 2000px; position: absolute; left: 0px; top: 0px;'></div>
+<script>
+window.scrollTo(0, 1000);
+var text = document.getElementById('text').childNodes[50];
+var selection = window.getSelection();
+selection.removeAllRanges();
+var range = document.createRange();
+range.setStart(text, 0);
+range.setEnd(text, 1);
+selection.addRange(range);
+</script>
+</body>
+</html>"></iframe>
+<script>
+document.getElementById("iframe").focus();
+</script>
+<div style="position: absolute; left: 8px; top: 100px;">This test makes sure that hit testing in iframes works correctly.</div>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsiframescrolledhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body>
+<iframe id="iframe" style="position: absolute; width: 100px; height: 100px; left: 0px; top: 0px; margin: 0px; border: solid black 0px; padding: 0px;"
+srcdoc="<!DOCTYPE html>
+<head>
+</head>
+<body style='margin: 0px;'>
+<div style='font: 20px Ahem;'><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>ppp</div>
+<div style='width: 1px; height: 2000px; position: absolute; left: 0px; top: 0px;'></div>
+<script>
+window.scrollTo(0, 1000);
+if (window.eventSender) {
+ eventSender.mouseMoveTo(17, 10);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(28, 10);
+ eventSender.mouseUp();
+}
+</script>
+</body>
+</html>"></iframe>
+<div style="position: absolute; left: 8px; top: 100px;">This test makes sure that hit testing in iframes works correctly.</div>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsiframehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-iframe.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+<script src='../../resources/js-test-pre.js'></script>
+</head>
+<body>
+<iframe id="iframe" style="position: absolute; width: 100px; height: 100px; left: 0px; top: 0px; margin: 0px; border: solid black 0px; padding: 0px;"
+srcdoc="<!DOCTYPE html>
+<head>
+</head>
+<body style='margin: 0px;'>
+<div id='a' style='width: 15px; height: 15px; background: green; display: inline-block;'></div><div id='b' style='width: 15px; height: 15px; background: red; display: inline-block;'></div>
+<div style='width: 1px; height: 2000px; position: absolute; left: 0px; top: 0px;'></div>
+</body>
+</html>"></iframe>
+<script>
+window.jsTestIsAsync = true;
+var iframe = document.getElementById("iframe");
+var iframeDocument;
+description('This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.');
+iframe.addEventListener("load", function() {
+        window.setTimeout(function() {
+                iframeDocument = iframe.contentDocument;
+                shouldBeEqualToString('iframeDocument.elementFromPoint(7, 7).id', 'a');
+                finishJSTest();
+        }, 0);
+});
+</script>
+<script src='../../resources/js-test-post.js'></script>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsoverflowelementFromPointexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint-expected.txt (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint-expected.txt        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.elementFromPoint(22, 7).id is "a"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins><span class="cx">Property changes on: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsoverflowelementFromPointhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+<script src="../../resources/js-test-pre.js"></script>
+</head>
+<body>
+<div style="overflow: scroll; position: absolute; width: 100px; height: 100px; left: 0px; top: 0px;">
+<div id="a" style="width: 15px; height: 15px; position: absolute; left: 0px; top: 0px; background: green;"></div>
+<div id="b" style="width: 15px; height: 15px; position: absolute; left: 15px; top: 0px; background: red;"></div>
+<div style="width: 1px; height: 3000px; position: absolute; left: 0px; top: 0px;"></div>
+</div>
+<script>
+description("This test makes sure that document.elementFromPoint() works correctly with RTL scrollbars.");
+shouldBeEqualToString("document.elementFromPoint(22, 7).id", "a");
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsoverflowpositionabsoluteexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute-expected.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute-expected.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute-expected.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body>
+This test makes sure that position: absolute elements do not overlap the vertical scrollbar on RTL machines. The test passes if you see a green square and a red square below.
+<div style="overflow: hidden; position: relative; width: 85px; height: 85px;">
+<div id="a" style="width: 15px; height: 15px; position: absolute; left: 0px; top: 0px; background: green;"></div>
+<div id="b" style="width: 15px; height: 15px; position: absolute; left: 15px; top: 0px; background: red;"></div>
+<div style="width: 1px; height: 3000px; position: absolute; left: 0px; top: 0px;"></div>
+</div>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsoverflowpositionabsolutehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body>
+This test makes sure that position: absolute elements do not overlap the vertical scrollbar on RTL machines. The test passes if you see a green square and a red square below.
+<div style="overflow: hidden; position: relative; width: 85px; height: 85px;">
+<div style="overflow: scroll; position: absolute; width: 100px; height: 100px; left: -15px; bottom: -15px;">
+<div id="a" style="width: 15px; height: 15px; position: absolute; left: 0px; top: 0px; background: green;"></div>
+<div id="b" style="width: 15px; height: 15px; position: absolute; left: 15px; top: 0px; background: red;"></div>
+<div style="width: 1px; height: 3000px; position: absolute; left: 0px; top: 0px;"></div>
+</div>
+</div>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsoverflowtextselectionscrolledexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled-expected.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled-expected.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled-expected.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div id="text" style="font: 20px Ahem; width: 700px;">pppppppppppppp
+<div style="font-family: Times;">This test makes sure that hit-testing in a scrolled overflow:scroll area works as expected. The test succeeds if the first character is selected.</div>
+</div>
+<script>
+var text = document.getElementById("text").childNodes[0];
+var selection = window.getSelection();
+selection.removeAllRanges();
+var range = document.createRange();
+range.setStart(text, 0);
+range.setEnd(text, 1);
+selection.addRange(range);
+</script>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarsoverflowtextselectionscrolledhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div style="overflow: hidden; width: 100%; height: 485px; position: absolute; left: -15px;">
+<div id="element" style="overflow: scroll; width: 700px; height: 500px; position: relative;">
+<div id="text" style="font: 20px Ahem;"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>pppppppppppppp
+<div style="font-family: Times;">This test makes sure that hit-testing in a scrolled overflow:scroll area works as expected. The test succeeds if the first character is selected.</div>
+<div style="width: 1px; height: 2000px; position: absolute; left: 0px; top: 0px;"></div>
+</div>
+</div>
+<script>
+var element = document.getElementById("element");
+element.scrollTop = 1000;
+if (window.eventSender) {
+ eventSender.mouseMoveTo(1, 10);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(19, 10);
+ eventSender.mouseUp();
+}
+</script>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarspositionabsoluteexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute-expected.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute-expected.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute-expected.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div id="text" style="font: 20px Ahem; position: absolute; left: 100px;">pppppppppppppp</div>
+<div style="position: absolute; left: 0px; top: 20px;">This test makes sure that hit testing works with rtl scrollbars. The test passes if the first character above (it looks like an underline) is selected.</div>
+<div style="width: 1px; height: 1000px;"></div>
+<script>
+var text = document.getElementById("text").childNodes[0];
+var selection = window.getSelection();
+selection.removeAllRanges();
+var range = document.createRange();
+range.setStart(text, 0);
+range.setEnd(text, 1);
+selection.addRange(range);
+</script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarspositionabsolutehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div id="text" style="font: 20px Ahem; position: absolute; left: 100px;">pppppppppppppp</div>
+<div style="position: absolute; left: 0px; top: 20px;">This test makes sure that hit testing works with rtl scrollbars. The test passes if the first character above (it looks like an underline) is selected.</div>
+<div style="width: 1px; height: 1000px;"></div>
+<script>
+if (window.eventSender) {
+ eventSender.mouseMoveTo(117, 10);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(128, 10);
+ eventSender.mouseUp();
+}
+</script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarspositionfixedexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed-expected.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed-expected.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed-expected.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div id="text" style="font: 20px Ahem; position: fixed; left: 100px;">pppppppppppppp</div>
+<div style="position: absolute; left: 0px; top: 20px;">This test makes sure that hit testing works with rtl scrollbars. The test passes if the first character above (it looks like an underline) is selected.</div>
+<div style="width: 1px; height: 1000px;"></div>
+<script>
+var text = document.getElementById("text").childNodes[0];
+var selection = window.getSelection();
+selection.removeAllRanges();
+var range = document.createRange();
+range.setStart(text, 0);
+range.setEnd(text, 1);
+selection.addRange(range);
+</script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarspositionfixedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div id="text" style="font: 20px Ahem; position: fixed; left: 100px;">pppppppppppppp</div>
+<div style="position: absolute; left: 0px; top: 20px;">This test makes sure that hit testing works with rtl scrollbars. The test passes if the first character above (it looks like an underline) is selected.</div>
+<div style="width: 1px; height: 1000px;"></div>
+<script>
+if (window.eventSender) {
+ eventSender.mouseMoveTo(117, 10);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(128, 10);
+ eventSender.mouseUp();
+}
+</script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarstextselectionexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-expected.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-expected.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-expected.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div id="text" style="font: 20px Ahem;">pppppppppppppp</div>
+This test makes sure that hit testing works with rtl scrollbars. The test passes if the first character above (it looks like an underline) is selected.
+<div style="width: 1px; height: 1000px;"></div>
+<script>
+var text = document.getElementById("text").childNodes[0];
+var selection = window.getSelection();
+selection.removeAllRanges();
+var range = document.createRange();
+range.setStart(text, 0);
+range.setEnd(text, 1);
+selection.addRange(range);
+</script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarstextselectionscrolledexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled-expected.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled-expected.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled-expected.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div id="text" style="font: 20px Ahem;"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>pppppppppppppp</div>
+<div style="position: absolute; top: 0px; left: 0px;">This test makes sure that hit testing works with rtl scrollbars. The test passes if the first character above (it looks like an underline) is selected.</div>
+<div style="position: absolute; top: 0px; left: 0px; width: 1px; height: 2000px;"></div>
+<script>
+window.scrollTo(0, 1000);
+var text = document.getElementById("text").childNodes[50];
+var selection = window.getSelection();
+selection.removeAllRanges();
+var range = document.createRange();
+range.setStart(text, 0);
+range.setEnd(text, 1);
+selection.addRange(range);
+</script>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarstextselectionscrolledhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div style="font: 20px Ahem;"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>pppppppppppppp</div>
+<div style="position: absolute; top: 0px; left: 0px;">This test makes sure that hit testing works with rtl scrollbars. The test passes if the first character above (it looks like an underline) is selected.</div>
+<div style="position: absolute; top: 0px; left: 0px; width: 1px; height: 2000px;"></div>
+<script>
+window.scrollTo(0, 1000);
+if (window.eventSender) {
+ eventSender.mouseMoveTo(17, 10);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(28, 10);
+ eventSender.mouseUp();
+}
+</script>
+</body>
+</html>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastscrollingrtlscrollbarstextselectionhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection.html (0 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection.html         (rev 0)
+++ trunk/LayoutTests/fast/scrolling/rtl-scrollbars-text-selection.html        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+<!DOCTYPE html><!-- webkit-test-runner [ rtlScrollbars=true ] -->
+<html>
+<head>
+</head>
+<body style="margin: 0px;">
+<div style="font: 20px Ahem;">pppppppppppppp</div>
+This test makes sure that hit testing works with rtl scrollbars. The test passes if the first character above (it looks like an underline) is selected.
+<div style="width: 1px; height: 1000px;"></div>
+<script>
+if (window.eventSender) {
+ eventSender.mouseMoveTo(17, 10);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(28, 10);
+ eventSender.mouseUp();
+}
+</script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformeflTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/efl/TestExpectations (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/efl/TestExpectations        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/LayoutTests/platform/efl/TestExpectations        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -2957,14 +2957,6 @@
</span><span class="cx">
</span><span class="cx"> webkit.org/b/153772 fast/shadow-dom/slot-removal-crash-2.html [ Timeout ]
</span><span class="cx">
</span><del>-# RTL Scrollbars are only implemented on OS X
-fast/scrolling/rtl-scrollbars.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-contents.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-dir-rtl.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-padding.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow.html [ ImageOnlyFailure ]
-
</del><span class="cx"> webkit.org/b/155505 http/tests/security/contentSecurityPolicy/userAgentShadowDOM/allow-audio.html [ Skip ]
</span><span class="cx"> webkit.org/b/155505 webkit.org/b/153866 http/tests/security/contentSecurityPolicy/userAgentShadowDOM/allow-video.html [ Skip ]
</span><ins>+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformgtkTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/gtk/TestExpectations (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/TestExpectations        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/LayoutTests/platform/gtk/TestExpectations        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -2705,12 +2705,3 @@
</span><span class="cx">
</span><span class="cx"> # This test relies on iOS-specific font fallback.
</span><span class="cx"> fast/text/arabic-blacklisted-expected.html [ Pass ImageOnlyFailure ]
</span><del>-
-# RTL Scrollbars are only implemented on OS X
-fast/scrolling/rtl-scrollbars.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-contents.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-dir-rtl.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-padding.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow.html [ ImageOnlyFailure ]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator/TestExpectations (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/TestExpectations        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/LayoutTests/platform/ios-simulator/TestExpectations        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -2993,15 +2993,6 @@
</span><span class="cx">
</span><span class="cx"> webkit.org/b/155271 [ Debug ] js/regress/getter-richards-try-catch.html [ Skip ]
</span><span class="cx">
</span><del>-# RTL Scrollbars are only implemented on OS X.
-fast/scrolling/rtl-scrollbars.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-contents.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-dir-rtl.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-padding.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow.html [ ImageOnlyFailure ]
-
</del><span class="cx"> webkit.org/b/155372 [ Debug ] css3/masking/mask-luminance-svg.html [ Pass Crash ]
</span><span class="cx"> webkit.org/b/155372 [ Debug ] css3/masking/mask-svg-script-none-to-png.html [ Pass Crash ]
</span><span class="cx">
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/TestExpectations (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/TestExpectations        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/LayoutTests/platform/mac/TestExpectations        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -1334,15 +1334,6 @@
</span><span class="cx">
</span><span class="cx"> webkit.org/b/155140 js/promises-tests/promises-tests-2-3-3.html [ Pass Failure ]
</span><span class="cx">
</span><del>-# RTL Scrollbars are only implemented on certain OSes.
-[ Yosemite ElCapitan ] fast/scrolling/rtl-scrollbars.html [ ImageOnlyFailure ]
-[ Yosemite ElCapitan ] fast/scrolling/rtl-scrollbars-simple.html [ ImageOnlyFailure ]
-[ Yosemite ElCapitan ] fast/scrolling/rtl-scrollbars-overflow-contents.html [ ImageOnlyFailure ]
-[ Yosemite ElCapitan ] fast/scrolling/rtl-scrollbars-overflow-dir-rtl.html [ ImageOnlyFailure ]
-[ Yosemite ElCapitan ] fast/scrolling/rtl-scrollbars-overflow-padding.html [ ImageOnlyFailure ]
-[ Yosemite ElCapitan ] fast/scrolling/rtl-scrollbars-overflow-simple.html [ ImageOnlyFailure ]
-[ Yosemite ElCapitan ] fast/scrolling/rtl-scrollbars-overflow.html [ ImageOnlyFailure ]
-
</del><span class="cx"> # Content Security Policy for media redirects is not supported on some OSes.
</span><span class="cx"> [ Yosemite ElCapitan ] http/tests/security/contentSecurityPolicy/audio-redirect-blocked.html [ Failure ]
</span><span class="cx"> [ Yosemite ElCapitan ] http/tests/security/contentSecurityPolicy/video-redirect-blocked.html [ Failure ]
</span><span class="lines">@@ -1351,3 +1342,4 @@
</span><span class="cx"> webkit.org/b/155505 [ ElCapitan+ ] http/tests/security/contentSecurityPolicy/userAgentShadowDOM/allow-video.html [ Skip ]
</span><span class="cx">
</span><span class="cx"> webkit.org/b/154688 inspector/controller/runtime-controller.html [ Pass Timeout ]
</span><ins>+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk1TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk1/TestExpectations (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk1/TestExpectations        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/LayoutTests/platform/mac-wk1/TestExpectations        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -197,12 +197,3 @@
</span><span class="cx">
</span><span class="cx"> # This test checks ScrollAnimator events only for main frame scrollbars that use native widgets in WK1.
</span><span class="cx"> fast/scrolling/scroll-animator-overlay-scrollbars-hovered.html [ Skip ]
</span><del>-
-# RTL Scrollbars are only implemented in WK2
-fast/scrolling/rtl-scrollbars.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-contents.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-dir-rtl.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-padding.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow.html [ ImageOnlyFailure ]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformwinTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/win/TestExpectations (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/win/TestExpectations        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/LayoutTests/platform/win/TestExpectations        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -3360,12 +3360,3 @@
</span><span class="cx">
</span><span class="cx"> # This test relies on iOS-specific font fallback.
</span><span class="cx"> fast/text/arabic-blacklisted-expected.html [ Pass ImageOnlyFailure ]
</span><del>-
-# RTL Scrollbars are only implemented on OS X
-fast/scrolling/rtl-scrollbars.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-contents.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-dir-rtl.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-padding.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow-simple.html [ ImageOnlyFailure ]
-fast/scrolling/rtl-scrollbars-overflow.html [ ImageOnlyFailure ]
</del></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/Source/WebCore/ChangeLog        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -1,3 +1,31 @@
</span><ins>+2016-03-17 Myles C. Maxfield <mmaxfield@apple.com>
+
+ [RTL Scrollbars] Position: absolute divs are covered by vertical scrollbar
+ https://bugs.webkit.org/show_bug.cgi?id=155531
+
+ Reviewed by Darin Adler.
+
+ This patch updates ScrollView::documentScrollPositionRelativeToViewOrigin(), which is
+ a helper function primarily used by WebCore::ScrollView::viewToContents() and
+ WebCore::ScrollView::contentsToView().
+
+ Tests: fast/scrolling/rtl-scrollbars-elementFromPoint-static.html
+ fast/scrolling/rtl-scrollbars-elementFromPoint.html
+ fast/scrolling/rtl-scrollbars-iframe-offset.html
+ fast/scrolling/rtl-scrollbars-iframe-position-absolute.html
+ fast/scrolling/rtl-scrollbars-iframe-scrolled.html
+ fast/scrolling/rtl-scrollbars-iframe.html
+ fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html
+ fast/scrolling/rtl-scrollbars-overflow-position-absolute.html
+ fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html
+ fast/scrolling/rtl-scrollbars-position-absolute.html
+ fast/scrolling/rtl-scrollbars-position-fixed.html
+ fast/scrolling/rtl-scrollbars-text-selection-scrolled.html
+ fast/scrolling/rtl-scrollbars-text-selection.html
+
+ * platform/ScrollView.cpp:
+ (WebCore::ScrollView::documentScrollPositionRelativeToViewOrigin):
+
</ins><span class="cx"> 2016-03-17 Filip Pizlo <fpizlo@apple.com>
</span><span class="cx">
</span><span class="cx"> Replace all of the various non-working and non-compiling sampling profiler hacks with a single super hack
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformScrollViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ScrollView.cpp (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ScrollView.cpp        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/Source/WebCore/platform/ScrollView.cpp        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -404,7 +404,9 @@
</span><span class="cx">
</span><span class="cx"> ScrollPosition ScrollView::documentScrollPositionRelativeToViewOrigin() const
</span><span class="cx"> {
</span><del>- return scrollPosition() - IntSize(0, headerHeight() + topContentInset(TopContentInsetType::WebCoreOrPlatformContentInset));
</del><ins>+ return scrollPosition() - IntSize(
+ verticalScrollbarIsOnLeft() && m_verticalScrollbar ? m_verticalScrollbar->occupiedWidth() : 0,
+ headerHeight() + topContentInset(TopContentInsetType::WebCoreOrPlatformContentInset));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> ScrollPosition ScrollView::documentScrollPositionRelativeToScrollableAreaOrigin() const
</span><span class="lines">@@ -709,7 +711,7 @@
</span><span class="cx"> int clientWidth = visibleWidth();
</span><span class="cx"> int pageStep = Scrollbar::pageStep(clientWidth);
</span><span class="cx"> IntRect oldRect(m_horizontalScrollbar->frameRect());
</span><del>- IntRect hBarRect(ScrollableArea::systemLanguageIsRTL() && m_verticalScrollbar ? m_verticalScrollbar->occupiedWidth() : 0,
</del><ins>+ IntRect hBarRect(verticalScrollbarIsOnLeft() && m_verticalScrollbar ? m_verticalScrollbar->occupiedWidth() : 0,
</ins><span class="cx"> height() - m_horizontalScrollbar->height(),
</span><span class="cx"> width() - (m_verticalScrollbar ? m_verticalScrollbar->occupiedWidth() : 0),
</span><span class="cx"> m_horizontalScrollbar->height());
</span><span class="lines">@@ -730,7 +732,7 @@
</span><span class="cx"> int clientHeight = visibleHeight();
</span><span class="cx"> int pageStep = Scrollbar::pageStep(clientHeight);
</span><span class="cx"> IntRect oldRect(m_verticalScrollbar->frameRect());
</span><del>- IntRect vBarRect(ScrollableArea::systemLanguageIsRTL() ? 0 : width() - m_verticalScrollbar->width(),
</del><ins>+ IntRect vBarRect(verticalScrollbarIsOnLeft() ? 0 : width() - m_verticalScrollbar->width(),
</ins><span class="cx"> topContentInset(),
</span><span class="cx"> m_verticalScrollbar->width(),
</span><span class="cx"> height() - topContentInset() - (m_horizontalScrollbar ? m_horizontalScrollbar->occupiedHeight() : 0));
</span><span class="lines">@@ -1124,14 +1126,14 @@
</span><span class="cx"> int heightTrackedByScrollbar = height() - topContentInset();
</span><span class="cx">
</span><span class="cx"> if (m_horizontalScrollbar && width() - m_horizontalScrollbar->width() > 0) {
</span><del>- cornerRect.unite(IntRect(ScrollableArea::systemLanguageIsRTL() ? 0 : m_horizontalScrollbar->width(),
</del><ins>+ cornerRect.unite(IntRect(verticalScrollbarIsOnLeft() ? 0 : m_horizontalScrollbar->width(),
</ins><span class="cx"> height() - m_horizontalScrollbar->height(),
</span><span class="cx"> width() - m_horizontalScrollbar->width(),
</span><span class="cx"> m_horizontalScrollbar->height()));
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (m_verticalScrollbar && heightTrackedByScrollbar - m_verticalScrollbar->height() > 0) {
</span><del>- cornerRect.unite(IntRect(ScrollableArea::systemLanguageIsRTL() ? 0 : width() - m_verticalScrollbar->width(),
</del><ins>+ cornerRect.unite(IntRect(verticalScrollbarIsOnLeft() ? 0 : width() - m_verticalScrollbar->width(),
</ins><span class="cx"> m_verticalScrollbar->height() + topContentInset(),
</span><span class="cx"> m_verticalScrollbar->width(),
</span><span class="cx"> heightTrackedByScrollbar - m_verticalScrollbar->height()));
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformScrollableAreacpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ScrollableArea.cpp (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ScrollableArea.cpp        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/Source/WebCore/platform/ScrollableArea.cpp        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -690,6 +690,11 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if !PLATFORM(COCOA)
</span><ins>+bool ScrollableArea::verticalScrollbarIsOnLeft() const
+{
+ return false;
+}
+
</ins><span class="cx"> bool ScrollableArea::systemLanguageIsRTL()
</span><span class="cx"> {
</span><span class="cx"> return false;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformScrollableAreah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ScrollableArea.h (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ScrollableArea.h        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/Source/WebCore/platform/ScrollableArea.h        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -312,6 +312,7 @@
</span><span class="cx"> virtual bool usesMockScrollAnimator() const { return false; }
</span><span class="cx"> virtual void logMockScrollAnimatorMessage(const String&) const { };
</span><span class="cx">
</span><ins>+ bool verticalScrollbarIsOnLeft() const;
</ins><span class="cx"> static bool systemLanguageIsRTL();
</span><span class="cx">
</span><span class="cx"> protected:
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacScrollableAreaMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/ScrollableAreaMac.mm (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/ScrollableAreaMac.mm        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/Source/WebCore/platform/mac/ScrollableAreaMac.mm        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -37,6 +37,13 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><ins>+// It's conceivable that in the future, we may want some scrollbars to be on the right while other scrollbars in the same document are on the left.
+// This non-static function on the ScrollableArea makes that possible.
+bool ScrollableArea::verticalScrollbarIsOnLeft() const
+{
+ return systemLanguageIsRTL();
+}
+
</ins><span class="cx"> bool ScrollableArea::systemLanguageIsRTL()
</span><span class="cx"> {
</span><span class="cx"> #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerCompositorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp (198368 => 198369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp        2016-03-18 01:00:15 UTC (rev 198368)
+++ trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp        2016-03-18 01:02:32 UTC (rev 198369)
</span><span class="lines">@@ -1759,9 +1759,11 @@
</span><span class="cx">
</span><span class="cx"> FloatPoint RenderLayerCompositor::positionForClipLayer() const
</span><span class="cx"> {
</span><ins>+ FrameView& frameView = m_renderView.frameView();
+
</ins><span class="cx"> return FloatPoint(
</span><del>- ScrollableArea::systemLanguageIsRTL() ? m_renderView.frameView().horizontalScrollbarIntrusion() : 0,
- FrameView::yPositionForInsetClipLayer(m_renderView.frameView().scrollPosition(), m_renderView.frameView().topContentInset()));
</del><ins>+ frameView.verticalScrollbarIsOnLeft() ? frameView.horizontalScrollbarIntrusion() : 0,
+ FrameView::yPositionForInsetClipLayer(frameView.scrollPosition(), frameView.topContentInset()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void RenderLayerCompositor::frameViewDidScroll()
</span></span></pre>
</div>
</div>
</body>
</html>