commit | dcf55c3a64e394ffbf3921c5be62ef18638c5e70 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Fri Jul 27 02:56:08 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jul 27 02:56:08 2018 |
tree | 7dce7b04f8e7000ad0eb0827436fc1de824bd9a2 | |
parent | 8fa347f197f1e0246d128fc15b1cc3598c326bfa [diff] |
Pass the source string to ShapeResult functions This patch changes OffsetForPosition and PositionForOffset functions to accept its source string, and let callers to pass them. The given strings are not used yet in this patch, other than DCHECK with the number of characters in the ShapeResult. Computing grapheme cluster list for all ShapeResult turned out to be not cheap enough for LayoutNG that this patch is the preparation to compute them when needed. Bug: 636993 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I6dc22fda781f63219fba74381da87f1f0b33e85f Reviewed-on: https://chromium-review.googlesource.com/1118062 Commit-Queue: Koji Ishii <kojii@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#578525}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .