[LayoutNG] Refactor ng_caret_rect.h/cc
This patch refactors functions in ng_caret_rect.h/cc so that: 1. Functions stop passing around the containing NG inline formatting context. 2. Part of ComputeNGLocalCaretRect() is wrapped into a new overload of ComputeNGCaretPosition() taking PositionWithAffinity parameter. This is a preparation patch for implementing NG line-related functions in crrev.com/c/1008631 Bug: 822575 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: I9ee8d90b327fec9684c0bdbf52bee6dad6fafb7f Reviewed-on: https://chromium-review.googlesource.com/1011217 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#551109}
Showing
Please register or sign in to comment