DescriptionCorrect offsetLeft and offsetTop calculation for column-span:all.
adjustedPositionRelativeTo() handled multicol incorrectly (the calls to
columnOffset()), which was especially hurtful for spanners. We should only call
it on objects in our containing block chain. This means that we need to walk
the ancestry using container() instead of parent(). The container() of a
spanner is the multicol container. We need to skip the inbetween flow thread,
since it only contains column content, and not spanners.
We also had bugs here with absolutely positioned objects inside multicol
containers whose containing block are on the outside of the multicol container,
but that's not really going to matter until we're able to lay out such objects
correctly. That's bug 291616. As such, this CL is also a preparatory patch for
fixing that bug.
This CL will also make it possible to write check-layout.js tests for spanners,
instead of having to resort to reftest or something even lesser.
BUG=563446
Committed: https://crrev.com/1d341dd82cbcc6e2a67414a7fd358c4abeb56ca4
Cr-Commit-Position: refs/heads/master@{#412255}
Patch Set 1 #Patch Set 2 : Need to keep the nullptr check, thanks to inline continuations. #
Messages
Total messages: 16 (11 generated)
|