Fix the selection rect when it's clipped to position the selection menu
In the current implementation, the full selection rect between the handles is always used to calculate the location of the context menu, but the selection rect may be clipped, so in this case, the position of the context menu will be far from the visible rect of the entire selection rect. The CL computes the clipped selection rect for the selection menu. Bug: 1015274 Change-Id: I899473bec1a061622d189c191fc5fb494928c6bb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1877338 Commit-Queue: Jinsong Fan <fanjinsong@sogou-inc.com> Reviewed-by:Mohsen Izadi <mohsen@chromium.org> Reviewed-by:
Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:
David Bokan <bokan@chromium.org> Reviewed-by:
Ken Buchanan <kenrb@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#713000}
Showing
This diff is collapsed.
Please register or sign in to comment