Skip to content
Commit 97f7cee4 authored by Koji Ishii's avatar Koji Ishii Committed by Chromium LUCI CQ
Browse files

Check the end of the tree in |ShouldInsertSpaceBetweenObjectsIfNeeded|

r927109 crrev.com/c/3185560 added a traversal to find block-
in-inline between |previous| and |next|, but there is a case
where |next| is not found by the DFS traversal.

This patch breaks the loop when it hits the end of the tree.

Bug: 1290123
Change-Id: I9d036de75bc6ae22b9c12185d940d059e781a2eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3414179


Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Auto-Submit: Koji Ishii <kojii@chromium.org>
Reviewed-by: default avatarAaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#963062}
parent 9a0070df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment