Skip to content
Commit e8a1e803 authored by Daniel Libby's avatar Daniel Libby Committed by Chromium LUCI CQ
Browse files

Fix CAP composited selection for empty selection boundaries

The code wasn't handling cases where the start of end of the selection
is empty. In those cases, we were not recording selection bounds as the
selection is not painted on those lines so the handles disappear.

Check explicitly for this and use this as a trigger for whether or not
to record selection bounds. This CL also shuffles a few existing tests
around and adds a new test to cover both legacy and NG codepaths.

Bug: 1238256
Change-Id: Icd5b57ff4aacb2101c55ec60cb9e8e110e7678c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3088074


Commit-Queue: Daniel Libby <dlibby@microsoft.com>
Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#911211}
parent 7bfe0568
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment