Rework mapToVisualRectInAncestorSpace to handle flipped blocks correctly.
In particular, we were incorrectly calculating rects for out-of-flow
positioned elements.
Follows canonical logic in PaintLayer::updateLayerPosition().
BUG=
616600
Committed:
https://crrev.com/a7e6a571947df4ac9a93a8d43882c6d8588514b6
Cr-Commit-Position: refs/heads/master@{#404925}