Description[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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192616
Patch Set 1 #
Total comments: 7
Patch Set 2 : code review #
Total comments: 2
Patch Set 3 : code review - remove more cruft. #Messages
Total messages: 11 (2 generated)
|