Refactor the layout text rewriting rules
This CL is refactoring the way codepoints are rewritten for the conversion between text to layout_text. There is an invariant that must hold: * Same amount of codepoint The text size may differ and text indexes are not the same. This CL is proposing to use a map function to replace codepoints. This avoid error-prone custom codepoints replacement. Bug: 1022893 Change-Id: Ic1fcdfe6b34a1bf1dd47f0ee6a5e157bd131d0ed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1908447 Commit-Queue: Etienne Bergeron <etienneb@chromium.org> Reviewed-by:Alexei Svitkine <asvitkine@chromium.org> Reviewed-by:
Robert Liao <robliao@chromium.org> Cr-Commit-Position: refs/heads/master@{#715157}
Showing
This diff is collapsed.
Please register or sign in to comment