Propagate ShapeResult::is_applied_spacing_ to copied ranges
This patch changes |ShapeResult::CopyRangeInternal()| to copy |is_applied_spacing_| flag to source to copied |ShapeResult| to prevent reusing them. Background: In |NGInlineNode::ShapeText()|, we shape text as much as possible, eg. using same font like "abc <u>def</u>", then split |ShapeResult| for each DOM node, e.g. "abc " and "<u>def</u>" by using |ShapeResult:: CopyRange()|, uses |CopyRangeInternal()|. Before this patch, each copied |ShapeResult::is_applied_spacing_| is false because we forgot to mark it. Bug: 1124446 Change-Id: Ibc0601f214a166c6cfd0a713d79ffa60fafb66ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2507244 Commit-Queue: Kent Tamura <tkent@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#822542}
Showing
Please register or sign in to comment