Make NGInlineNode::SetTextWithOffset() not to reuse last glyph of run
This patch changes |NGInlineNode::SetTextWithOffset()| not to reuse last glyph in run to handle kergning, e.g. "AV". When inserting character "V" after "A", before this patch, we have glyph run for "A" and "V" without adjusting spaces between space "A" and "V" because we reuse shaping result of "A" then concatenating shape result of "V". After this patch, we does shaping "AV" once. Bug: 1129710 Change-Id: I2ecf2ce04945dba18ed9622a9f6745ea4060ce87 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2423802 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#811919}
Showing
Please register or sign in to comment