[New Multicolumn] mapAbsoluteToLocalPoint() needs to convert to flow thread coordinates.

mapAbsoluteToLocalPoint() works on visual coordinates, so pretending that it's
a flow thread coordinate (and then mapping it to a visual coordinate again, why
not) on the way up the tree is just going to cause trouble.

Instead we need to convert from visual to flow thread coordinates on our way
back down the tree, when entering the flow thread on our way to the target
element. Sadly, we also need to cancel out a flowthread-to-visual conversion
done in LayoutBox::offsetFromContainer().

This makes fast/events/document-elementFromPoint.html pass in the new multicol
implementation.

Added a couple of new tests as well (one which actually fails in the old /
current implementation), since the aforementioned test isn't yet run with the
new implementation.

R=dsinclair@chromium.org,jchaffraix@chromium.org
BUG=334335

Review URL: https://codereview.chromium.org/1024023002

git-svn-id: svn://svn.chromium.org/blink/trunk@192616 bbb929c8-8fbe-4397-9dbb-9b2b20218538
11 files changed
tree: 63e830230c70761f53aefc3903f3f14907da4e8e
  1. third_party/