Make LayoutText::SetTextWithOffset() to use slow path for generated break opportunities
This patch changes |NGInlineNodeEditor::Prepare()| to return null for letting |LayoutText::SetTextWithOffset()| to use slow path when text content contains generated break opportunity because it is hard to figure out how many characters removed from text content. On <b><i><s>ab\n</s>\n</i>\n</b>, text content is "ab\nZZZ", where "Z" represents U+200B, removing "\n" after "ab" makes text content to "ab". Bug: 1125262 Change-Id: I071822dd8be836ee947766ae1877873f35c3af99 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2395136 Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#804671}
Showing
Please register or sign in to comment