Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inert] Track inertness in ComputedStyle
Both Gecko and WebKit implement inertness based on CSS primitives like forcing 'pointer-events: none' at used value time, instead of using a magical hit testing retargeting for inert. And in whatwg/html#5650, the CSSWG resolved that this is the right approach. Then rather than tracking inertness using Node::IsInert, it will just be simpler to use ComputedStyle::IsInert. This patch implements that. There are some differences, like nodes in a 'display: none' subtree won't have a ComputedStyle so we can't really tell if they are inert, but in practice this doesn't matter since they are not rendered. Bug: 692360 TEST=StyleResolverTest.IsInertWithAttributeAndDialog TEST=StyleResolverTest.IsInertWithDialogs TEST=StyleResolverTest.IsInertWithFullscreen TEST=StyleResolverTest.IsInertWithFrameAndFullscreen TEST=StyleResolverTest.IsInertWithBackdrop Change-Id: I4f8c87ea2fbc17f57290edaf185cdff4aebb7e58 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3263937 Reviewed-by: Rune Lillesveen <[email protected]> Commit-Queue: Oriol Brufau <[email protected]> Cr-Commit-Position: refs/heads/main@{#941651} NOKEYCHECK=True GitOrigin-RevId: ab14f17b660d05dc15925fea64f3cfd92c6f1ed1
- Loading branch information