forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Renderedposition::ComputeCompositedSelection using LocalCare…
…tRect This patch refactors the function replacing LayoutObject::LocalCaretRect(InlineBox, int offset) with LocalCaretRectOfPosition(PositionWithAffinity) for NG. Since RenderedPosition stores a InlineBox and computes LayoutRect in its instance functions, this patch makes the functions static and receive LocalCaretRect. As a result, this patch makes ComputeCompositedSelection independent from RenderedPosition class. This patch also remove GetSamplePointForVisibility test because it is now local function only used by IsVisible which is test inside ComputeCompositedSelection test; Note: CompositedSelectionBoundsTest also tests ComputeCompositedSelection Bug: 789870 Change-Id: If955d56deac1477e65d71523fb628d75b421b2ab Reviewed-on: https://chromium-review.googlesource.com/875842 Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Yoichi Osato <yoichio@chromium.org> Cr-Commit-Position: refs/heads/master@{#531788}
- Loading branch information
Yoichi Osato
authored and
Commit Bot
committed
Jan 25, 2018
1 parent
779e08c
commit b8d8c34
Showing
3 changed files
with
78 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters