Refactor SelectionBoundsRecorder for future re-use
After crrev.com/c/2586450 removed NGPaintFragment and templates, this class is much easier to reuse in upcoming changes for selection recording for non-NG text, replaced, and SVG text. Remove dependencies on NGInlineCursor, force the caller to provide the selection rect, and factor out the early out checks so callers can compute the rect only when necessary. Bug: 1065049 Change-Id: If4bcc660c5e5b288fec0e0432d377d4d6289a878 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2598097Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Daniel Libby <dlibby@microsoft.com> Cr-Commit-Position: refs/heads/master@{#839174}
Showing
Please register or sign in to comment