Source/WebCore: RenderBlock::offsetForContents() is wrong in flipped blocks writing...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Jul 2012 04:59:30 +0000 (04:59 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Jul 2012 04:59:30 +0000 (04:59 +0000)
commitbb19e1d547c59390f7a96ddf804faa5263464f29
treefb9303b72035c0b0aefeb30b6c93c28e51916aec
parent6afefb4d884805416450a2595681e249c3ee11ab
Source/WebCore: RenderBlock::offsetForContents() is wrong in flipped blocks writing modes
https://bugs.webkit.org/show_bug.cgi?id=92588

Reviewed by Sam Weinig.

Tests: fast/multicol/hit-test-block-axis-flipped.html
       fast/writing-mode/flipped-blocks-hit-test-overflow-scroll.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::offsetForContents): Flip the point, which puts it back in unflipped
coordinates, before adding the scroll offset and adjusting for columns, then flip it back.
(WebCore::RenderBlock::adjustPointToColumnContents): Changed the inline-axis cases to
work with an unflipped point.

LayoutTests: Hit test results are wrong in flipped blocks writing modes with block column axis
https://bugs.webkit.org/show_bug.cgi?id=92588

Reviewed by Sam Weinig.

* fast/multicol/hit-test-block-axis-flipped-expected.txt: Added.
* fast/multicol/hit-test-block-axis-flipped.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/multicol/hit-test-block-axis-flipped-expected.txt [new file with mode: 0644]
LayoutTests/fast/multicol/hit-test-block-axis-flipped.html [new file with mode: 0644]
LayoutTests/fast/writing-mode/flipped-blocks-hit-test-overflow-scroll-expected.txt [new file with mode: 0644]
LayoutTests/fast/writing-mode/flipped-blocks-hit-test-overflow-scroll.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp