The only reason the element.isInTopLayer() check added by https://commits.webkit.org/246767@main is there is because entering top layer forces `display: contents` style to `display: block`. This check is now redundant with https://commits.webkit.org/255527@main, since it is fixing the same issue more globally. Test: fast/css/top-layer-display-contents-crash.html
<rdar://problem/101324926>
Pull Request: https://github.com/WebKit/WebKit/pull/5529
Committed 255733@main (394f41a9f855): <https://commits.webkit.org/255733@main> Reviewed commits have been landed. Closing PR #5529 and removing active labels.