[LayoutNG] Ensure NGInlineLayoutAlgorithm consumes the last opportunity
This patch changes |NGInlineLayoutAlgorithm::Layout()| so that it consumes the last opportunity even if it seems the line does not fit to it. This normally does not happen as the last opportunity is designed to fit any lines, but arithmetic overflow can still pretend the line does not fit to any opportunities. This patch changes so that the last opportunity never fail. Bug: 982126 Change-Id: If0c460f20d48b01b125e2f10bc50182fa5654eb7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1695304 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#676129}
Showing
Please register or sign in to comment