REGRESSION (r96620): Float-avoiding block positioned incorrectly in right-to-left...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 Oct 2011 15:55:33 +0000 (15:55 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 Oct 2011 15:55:33 +0000 (15:55 +0000)
commit535e468ac757c8398991c7547144c9417f8defb6
tree22a8eb702fe631f1b55871585edb937b7b4ce27e
parent3036c7e544142935da908c3a90098940433ac8e5
REGRESSION (r96620): Float-avoiding block positioned incorrectly in right-to-left block
https://bugs.webkit.org/show_bug.cgi?id=70197

Reviewed by Dave Kilzer.

Source/WebCore:

Test: fast/block/float/avoidance-rtl.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::computeStartPositionDeltaForChildAvoidingFloats): Changed
logicalLeftOffsetForContent() to startOffsetForContent() to get the right value in the
right-to-left case.

LayoutTests:

* fast/block/float/avoidance-rtl-expected.png: Added.
* fast/block/float/avoidance-rtl-expected.txt: Added.
* fast/block/float/avoidance-rtl.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@97575 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/block/float/avoidance-rtl-expected.png [new file with mode: 0644]
LayoutTests/fast/block/float/avoidance-rtl-expected.txt [new file with mode: 0644]
LayoutTests/fast/block/float/avoidance-rtl.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp