[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:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@198369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
40 files changed