[LayoutNG] Extract LayoutBR::PositionForCaretOffset/CaretOffsetFromPosition from LayoutText code
LayoutText has two NG utility functions PositionForCaretOffset() and OffsetForCaretPosition() with type-based branching code. This patch extracts the LayoutBR handling into LayoutBR overrides for better code health. Change-Id: Ieca60f177c68944a74cfc30fe6bdc444012eca6e Reviewed-on: https://chromium-review.googlesource.com/1011629Reviewed-by:Aleks Totic <atotic@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#551048}
Showing
Please register or sign in to comment