Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[text-autospace] Clone
ShapeResult
if the original is shared
The `LayoutNGShapeCache` runtime flag currently in test can share `ShapeResult` for the same text content. This breaks when `text-autospace` modifies the `ShapeResult`. This patch clones `ShapeResult` if it's shared when applying `text-autospace`. Fixed: 1497899, 1463890 Change-Id: Ic4c1dc87143c2f7789d5f6e46d938420707cdc97 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5019431 Reviewed-by: Lingqi Chi <[email protected]> Auto-Submit: Koji Ishii <[email protected]> Reviewed-by: Kent Tamura <[email protected]> Commit-Queue: Koji Ishii <[email protected]> Cr-Commit-Position: refs/heads/main@{#1224103}
- Loading branch information