Make TextOffsetMapping::FindBackwardInlineContents() to skip ancestors
This patch changes |TextOffsetMapping::FindBackwardInlineContents()| to skip ancestors when current position is first child for avoiding looping by backward word caret movement. IN below example (assume we are in "div3"), before this patch we attempt to find inline contents for "div2" and "div1", after this patch we use previous sibling of "div1". <div id=div1><div id=div2><div id=div3>|abc</div></div></div> Bug: 1039829 Change-Id: I04a79bcb07c74658927a8eec40b4dead2cdf2fd4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2037303 Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#738786}
Showing
Please register or sign in to comment