RubyNG: Internal leadings should be available as annotation space
ComputeAnnotationOverflow() does - Apply em-height for text fragments - Apply ScrollableOverflow(kEmHeight) for LayoutNGRubyRuns in order to compute annotation space based on em-height. ComputeAnnotationOverflow() kept track of annotation_over/under values. However now ScrollableOverflow(kEmHeight) provides annotation overflow offset too. Now content_over/under values represent over/under limits of annotation overflow too. * Extract some parts of AdjustTextRectForEmHeight() to AdjustTextOverUnderOffsetsForEmHeight() so that ComputeAnnotationOverflow() use it easily. * Fix NGPhysicalBoxFragment::ScrollableOverflowFromChildren(). We didn't merge rectangles over block_offset=0. It can happen for <rt> in ComputeAnnotationOverflow(). Bug: 1082087 Change-Id: Id97ad4ce0bff265c627620c121fc5e33e157bf94 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2280742Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:
Koji Ishii <kojii@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Auto-Submit: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#785264}
Showing


