Expose subroutines of ComputeInlinePosition
This patch exposes two subroutines of ComputeInlineBoxPosition: - ComputeInlineAdjustedPosition - ComputeInlineBoxPositionForInlineAdjustedPosition After this patch, we can start converting callers of ComputeInlineBoxPosition with the following pattern: DoSomeBusiness(position) { adjusted = ComputeInlineAdjustedPosition(position); if (/* adjusted is laid out with LayoutNG */) return NGAlternativeImplementation(adjusted); legacy_box_position = ComputeInlineBoxPositionForInlineAdjustedPosition(adjusted); DoLegacyBusiness(legacy_box_position); } Bug: 771398 Change-Id: Iea01925e7ef986c5b00dd5b6e7172f7065c8df9e Reviewed-on: https://chromium-review.googlesource.com/792453Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#521274}
Showing
Please register or sign in to comment