Revision fc7c0b7d097b3f584889127fd6ea350a1980cc7a authored by Emilio Cobos Álvarez on 09 April 2018, 07:01:25 UTC, committed by moz-wptsync-bot on 09 April 2018, 07:52:06 UTC
The code was trying to assert that we had frames constructed for all the nodes
in the parent chain, but we don't bail out in the
!GetContentInsertionFrameFor(aContainer) in the case that it's a children
element, because they actually have no insertion frame, though their children
do.

Move the LazyFC check after the insertion point check. That makes the previous
check work on the insertion point of the child, which makes it sound.

This also fixes bug 1410020, and with it a Shadow DOM test-case that was failing
because we had two sibling assigned to two different <slot>s, and the second one
wasn't getting properly flagged, and thus the second sibling never got a frame.

The other two test failures in this test are an event dispatch failure, where
the position of the target is not what the test expects (we don't account for
margin and padding). Filed that as bug 1450027.

Also, added a test for which we have wrong layout without these patches, and
that crashes with "Called Servo_Element_IsDisplayNone" with the first patch of
this bug applied but not this one, due to the bogus check mentioned above.
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1303605
gecko-commit: 12a824f8d55a8fb0396fb2132974f8223c6a9606
gecko-integration-branch: central
gecko-reviewers: bz
1 parent a835486
History
File Mode Size
legacy-mb-japanese
legacy-mb-korean
legacy-mb-tchinese
resources
OWNERS -rw-r--r-- 24 bytes
api-basics.html -rw-r--r-- 2.1 KB
api-invalid-label.html -rw-r--r-- 919 bytes
api-replacement-encodings.html -rw-r--r-- 690 bytes
api-surrogates-utf8.html -rw-r--r-- 1.5 KB
big5-encoder.html -rw-r--r-- 1.8 KB
eof-shift_jis-ref.html -rw-r--r-- 141 bytes
eof-shift_jis.html -rw-r--r-- 188 bytes
eof-utf-8-one-ref.html -rw-r--r-- 142 bytes
eof-utf-8-one.html -rw-r--r-- 181 bytes
eof-utf-8-three-ref.html -rw-r--r-- 146 bytes
eof-utf-8-three.html -rw-r--r-- 189 bytes
eof-utf-8-two-ref.html -rw-r--r-- 142 bytes
eof-utf-8-two.html -rw-r--r-- 182 bytes
gb18030-encoder.html -rw-r--r-- 777 bytes
gbk-encoder.html -rw-r--r-- 769 bytes
idlharness.html -rw-r--r-- 881 bytes
iso-2022-jp-decoder.html -rw-r--r-- 3.2 KB
iso-2022-jp-encoder.html -rw-r--r-- 731 bytes
replacement-encodings.html -rw-r--r-- 862 bytes
single-byte-decoder.html -rw-r--r-- 17.8 KB
textdecoder-byte-order-marks.html -rw-r--r-- 1.6 KB
textdecoder-copy.any.js -rw-r--r-- 442 bytes
textdecoder-fatal-single-byte.html -rw-r--r-- 2.9 KB
textdecoder-fatal-streaming.html -rw-r--r-- 1.6 KB
textdecoder-fatal.html -rw-r--r-- 4.1 KB
textdecoder-ignorebom.html -rw-r--r-- 1.9 KB
textdecoder-labels.html -rw-r--r-- 1.5 KB
textdecoder-streaming.html -rw-r--r-- 1.7 KB
textdecoder-utf16-surrogates.html -rw-r--r-- 1.3 KB
textencoder-constructor-non-utf.html -rw-r--r-- 817 bytes
textencoder-utf16-surrogates.html -rw-r--r-- 1.3 KB
unsupported-encodings.html -rw-r--r-- 1.5 KB
utf-32.html -rw-r--r-- 1.4 KB

back to top