Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid crash in intersection observer with inline root
crrev.com/c/4583590 caused the problem by changing ContainingBlock() to Container() (which actually means "containing block" in the specs). As an inline element doesn't clip, now check IsBox() in ClipToRoot to avoid crash before casting the root to LayoutBox. (cherry picked from commit 14f10fa) Bug: 1455919, 1456208 Change-Id: I8d38c46233e0e74acbeeed35626cbc689c77ac33 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4626450 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Philip Rogers <pdr@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1161346} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4641372 Auto-Submit: Xianzhu Wang <wangxianzhu@chromium.org> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5845@{#55} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information