[LayoutNG] Fix VisualRect for flipped block (vertical-rl)
This patch fixes VisualRect for flipped block (vertical-rl) writing-mode. LayoutObject::LocalVisualRect should be in flipped physical coordinate system, but was not flipped in LayoutNG. This patch fixed it to be flipped physical coordinate system. In addition: * LocalVisualRectFor() is moved to NGPaintFragment, by using NGPaintFragment::InlineFragmentsFor(). * PaintInvalidator::UpdateVisualRect() applies the same mapping to fragments as the LayoutObject. Before this patch computed the mapping from local and backing rect, but this method does not work in flipped writing-mode. 11 tests turn to pass. More tests were expected to pass, but it turned out that there are more fixes needed for vertical-rl in paint and a few others. Bug: 636993 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_layout_ng;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I3176a89bd96afa75ef024b1441d85fec5d30d75a Reviewed-on: https://chromium-review.googlesource.com/960403Reviewed-by:Emil A Eklund <eae@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#542898}
Showing
Please register or sign in to comment