[LayoutNG] Avoid calling HandleOverflow multiple times
This patch eliminates the call to |HandleOverflow| when the |NGLineBreaker| state is 'overflow'. r701601 (crrev.com/c/1826063) added the 'overflow' state to |NGLineBreaker|. This state makes the `trailing' state more efficient, but when multiple text runs appear without any break opportunities in the 'overflow' state, the change added a call to |HandleOverflow| on each text run. Bug: 1010487 Change-Id: I608b704a9b65f905e6b57c245ea8f5dac7194c64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1838791Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#702942}
Showing
Please register or sign in to comment