In flipped blocks writing modes, no flipping occurs when mapping RenderText’s local...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2012 20:46:03 +0000 (20:46 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2012 20:46:03 +0000 (20:46 +0000)
commitea52b5cf9ee6de604fdea7fa94e467fe74031d67
treefc3f161ed8269c9f3a2979eec5dc0def54026750
parent99b73701142ae05108abd68e46e4783650d1d53b
In flipped blocks writing modes, no flipping occurs when mapping RenderText’s local coordinates to absolute
https://bugs.webkit.org/show_bug.cgi?id=91780

Reviewed by Anders Carlsson.

Source/WebCore:

Test: fast/writing-mode/flipped-blocks-text-map-local-to-container.html

When RenderObject::mapLocalToContainer() was called on a RenderText with ApplyContainerFlip,
it would not flip (if the container was not a box) but it would always pass
DoNotApplyContainerFlip when recurring to the parent. This meant that no one applied the flip.

* rendering/RenderInline.cpp:
(WebCore::RenderInline::mapLocalToContainer): Made the setting of applyContainerFlip to
false unconditional on the container actually being flipped.
* rendering/RenderObject.cpp:
(WebCore::RenderObject::mapLocalToContainer): Rather than always passing
DoNotApplyContainerFlip when recurring to the parent, changed this function to pass through
the value of applyContainerFlip it was called with, unless it applied the flip itself.

LayoutTests:

* fast/writing-mode/flipped-blocks-text-map-local-to-container-expected.txt: Added.
* fast/writing-mode/flipped-blocks-text-map-local-to-container.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123146 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/writing-mode/flipped-blocks-text-map-local-to-container-expected.txt [new file with mode: 0644]
LayoutTests/fast/writing-mode/flipped-blocks-text-map-local-to-container.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderInline.cpp
Source/WebCore/rendering/RenderObject.cpp