Make LayoutBlock::PositionForBox() not to crash on anonymous block
This patch changes |LayoutBlock::PositionForBox()| to return null position if |LayoutBlock| is anonymous for avoiding call |Position::FirstPositionInOrBeforeNode()| with null position. Note: |LayoutBlock::PositionForBox()| is used only for legacy layout. Note: I don't have the test case to reproduce because ClusterFuzz's test case is too huge (large than 1MB) to reduce. Bug: 1157993 Change-Id: Ief106d22bb6c29620182fbb9a4f5fe84919879c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2626820 Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#843404}
Showing
Please register or sign in to comment