DescriptionShift flowthread-to-visual coordinate space conversion one level up in the tree.
The conversion now takes place between the flow thread and its parent multicol
container, rather than between the flow thread and its children.
This is both conceptually more correct, and it also matches what
mapToVisibleRectInAncestorSpace() already does. Having all machineries do this
at the same place in the tree is what fixes the editing-specific bug 596070.
As for layer clipping bug 527709, it just so happens that we specify the flow
thread as ancestor in mapLocalToAncestor(), which is invoked via
localToAncestorPoint() from PaintLayerClipper::calculateClipRects().
PaintLayerClipper does its work *before* fragments have been collected and set
up for a given layer, so it doesn't want mapLocalToAncestor() or anyone to
change to the visual coordinate space.
BUG=527709, 596070
R=leviw@chromium.org
Committed: https://crrev.com/8796ca1186b3ff3e3da105b3ee41f1698be01821
Cr-Commit-Position: refs/heads/master@{#382339}
Patch Set 1 #Patch Set 2 : Update unit tests. #Messages
Total messages: 7 (2 generated)
|