Fix ShapeResult::EnsureGrapheme when there are no RunInfo
Unlike normal layout cases, hit-testing, canvas, etc. may call ShapeResult functions with 0-length text. In this case, ShapeResult has no RunInfo. It is also possible that there are no glyphs for the given text, but in normal code path, HarfBuzzShaper should still generate a run without glyphs. Bug: 868893 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: Ia86f4627c74122c915986858bc974fc2e18d3b3d Reviewed-on: https://chromium-review.googlesource.com/1155275Reviewed-by:Emil A Eklund <eae@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#579472}
Showing
Please register or sign in to comment