[LayoutNG] Handle text objects correctly for scroll anchoring.
Use LayoutText::LinesBoundingBox() (which knows how to deal with both NG and legacy layout), rather than reading out from the legacy line box tree manually. Added a crash unit test that would have crashed with this CL, had it not been for https://chromium-review.googlesource.com/1193868 - we used to stumble into dead layout objects. This CL also fixes one existing unit test. Bug: 889449 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: Icb3f75038e1504968badaedd992565c8c1cc8419 Reviewed-on: https://chromium-review.googlesource.com/1158688Reviewed-by:Steve Kobes <skobes@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#594616}
Showing
Please register or sign in to comment