Change the input format semantics for TextMetrics::getSelectionRects()
Update how the end
index works for getSelectionRects
from being
an inclusive limit on both sides, i.e. [start, end], to being exclusive
for the end limit, i.e. [start, end).
This way, we match the index semantics of the underlying
Font::SelectionRectForText()
method that is used to calculate the
rects.
Bug: 341213359
Change-Id: I1a09bc256c9f04ae3ae974a587c3e732aa003a74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5553293
Commit-Queue: Andres Ricardo Perez andresrperez@chromium.org
Reviewed-by: Fernando Serboncini fserb@chromium.org
Cr-Commit-Position: refs/heads/main@{#1304612}