Refactor AdjustInlineBoxPositionForPrimaryDirection to make it symmetric
This patch refactors the function by wrapping certain logic into IsEndOfDifferentDirection(), so that the remaining function body is symmetric for left and right edge of |inline_box|. This allows further refactoring, and also eases implementation of NG version of bidi adjustment. Bug: 822575 Change-Id: I40874a50fd07592d42afe6f596bc3481b41b9932 Reviewed-on: https://chromium-review.googlesource.com/997135Reviewed-by:Yoichi Osato <yoichio@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#548686}
Showing
Please register or sign in to comment