Assertion in RenderTreeBuilder::attachToRenderElementInternal
commit2d69b854ec06bfffca9477e971c0a8639413adc0
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Jun 2022 08:54:10 +0000 (1 08:54 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Jun 2022 08:54:10 +0000 (1 08:54 +0000)
tree6a5a3f7e8645bce428926a2bef0dacf4afbdd27e
parent13c3ea8011f29f69170c19a52b76b017e4f0da2d
Assertion in RenderTreeBuilder::attachToRenderElementInternal
https://bugs.webkit.org/show_bug.cgi?id=239823
<rdar://92390285>

Reviewed by Alan Bujtas.

* LayoutTests/fast/css/display-content-with-pending-stylesheet-crash-expected.txt: Added.
* LayoutTests/fast/css/display-content-with-pending-stylesheet-crash.html: Added.
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolveElement):

We can't skip resolution for elements that we have already computed style for. This includes elements with display:contents.

link: https://commits.webkit.org/251178@main
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@295083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/fast/css/display-content-with-pending-stylesheet-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/display-content-with-pending-stylesheet-crash.html [new file with mode: 0644]
Source/WebCore/style/StyleTreeResolver.cpp