RubyNG: Implement line space sharing for block-end ruby annotation
If a line has block-end annotation overflow, we add the overflow amount to logical_block_offset as ever. (See NGBlockLayoutAlgorithm::ComputeInflowPosition()) Then, we adjust logical_block_offset if - The next line has block-start annotation space. (See NGInlineLayoutAlgorithm::CreateLine()) - The block container has block-end padding. (See NGBlockLayoutAlgorithm::Layout()) The block-end annotation overflow value is passed to the next line via NGConstraintSpace::BlockStartAnnotationSpace(). Bug: 1069817 Change-Id: I019b982783232e744abb2e709399ded4b7e9a644 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2249238 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#779649}
Showing
Please register or sign in to comment