PositionIterator: Fix Increment/Decrement behavior for SELECT with two or more children
PositoinIterator returned a wrong result if INPUT, SELECT, or TEXTAREA has two or more children. Strategy::LastOffsetForEditing() doesn't take into account of IsUserSelectContain(). It's inconsistent with ShouldTraverseChildren<Strategy>. So, this CL introduces an IsUserSelectContain()-aware version of LatOffsetForEditing(). Bug: 697283 Change-Id: Id04cf8ce5cbe3702a4c51a1b6057693c7c669cef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2029536 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#737208}
Showing
Please register or sign in to comment