commit | 9d044cd5a52b43df40bf00d75f8bccf3d47bf4d1 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Wed Jul 25 03:32:27 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jul 25 03:32:27 2018 |
tree | 10e6c0e39280228e415d4d5656cd2083a317b7bd | |
parent | a1319271933c15e80b6e43e13ddce7e8df009e28 [diff] |
[LayoutNG] CachedOffsetForPosition and CachedPositionForOffset for RTL This patch enables ComputePositionData() for RTL, and enables using the data in CachedOffsetForPosition and CachedPositionForOffset. Because we use binary search, CharacterPositionData stores ShapeResultCharacterData in the visual order, so that its |x_position| is in ascending order. This patch also adds DCHECKs to ensure Cached and non-Cached versions return the same data. Cases they don't were discovered, in LTR and RTL. DCHECKs are limited to when it passes, and failing cases are to be investigated. Bug: 636993 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: Ifaf3f9f73c7b098e68932e8dc0181a79c1d7778d Reviewed-on: https://chromium-review.googlesource.com/1148025 Reviewed-by: Emil A Eklund <eae@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#577786}
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 .