[RTL Scrollbars] Position: absolute divs are covered by vertical scrollbar
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 01:02:32 +0000 (01:02 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 01:02:32 +0000 (01:02 +0000)
commit99be2d8de8d43cc931098db2515dd0f90ef0eecc
tree223dfd047d1dfe9d4ee35c6aa1ab9f20607579f4
parenta337139ad46986d33dbfb4a897c14494da1df6e5
[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: https://svn.webkit.org/repository/webkit/trunk@198369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
40 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-expected.txt [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static-expected.txt [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint-static.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-elementFromPoint.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-iframe-expected.txt [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset-expected.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-iframe-offset.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute-expected.txt [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-iframe-position-absolute.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled-expected.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-iframe-scrolled.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-iframe.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint-expected.txt [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-overflow-elementFromPoint.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute-expected.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-overflow-position-absolute.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled-expected.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-overflow-text-selection-scrolled.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute-expected.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-position-absolute.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed-expected.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-position-fixed.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-expected.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled-expected.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-text-selection-scrolled.html [new file with mode: 0644]
LayoutTests/fast/scrolling/rtl-scrollbars-text-selection.html [new file with mode: 0644]
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/ios-simulator/TestExpectations
LayoutTests/platform/mac-wk1/TestExpectations
LayoutTests/platform/mac/TestExpectations
LayoutTests/platform/win/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/platform/ScrollView.cpp
Source/WebCore/platform/ScrollableArea.cpp
Source/WebCore/platform/ScrollableArea.h
Source/WebCore/platform/mac/ScrollableAreaMac.mm
Source/WebCore/rendering/RenderLayerCompositor.cpp