Include non-shadowdom children of shadow hosts in style calculation (#34298)

* Include non-shadowdom children of shadow hosts in style calculation

This was previously causing crashes because the layout nodes
of those children would never be assigned style data by stylo.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-11-20 20:28:35 +01:00 committed by GitHub
parent 2889e934f5
commit f3ad078358
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
77 changed files with 284 additions and 96 deletions

View file

@ -1,5 +1,5 @@
[Selection-getComposedRanges-dom-mutations-removal.html?mode=open]
expected: CRASH
expected: OK
[Range is fully in shadow tree. Removing shadow host collapses composed StaticRange. Note it does not update previously returned composed StaticRange.]
expected: FAIL
@ -17,7 +17,7 @@
[Selection-getComposedRanges-dom-mutations-removal.html?mode=closed]
expected: CRASH
expected: OK
[Range is fully in shadow tree. Removing shadow host collapses composed StaticRange. Note it does not update previously returned composed StaticRange.]
expected: FAIL

View file

@ -1,4 +1,4 @@
[Selection-later-become-slotted-content.html]
expected: CRASH
expected: OK
[test to select a light DOM element and it becomes a slotted content after the selection]
expected: FAIL