Bug 1362907 - Fix a couple crashtests.

<select> doesn't allow first-line, which was causing some non-fatal
asserts.

The annotated crashtest overflows a bSize but it gets handled safely by
nsLineLayout.

MANUAL PUSH: Trivial orange fix CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez
2024-02-29 14:14:47 +01:00
parent 14c69b2672
commit d653c75106
2 changed files with 3 additions and 2 deletions

View File

@@ -7951,7 +7951,8 @@ void nsBlockFrame::SetInitialChildList(ChildListID aListID,
(pseudo == PseudoStyleType::cellContent &&
!GetParent()->Style()->IsPseudoOrAnonBox()) ||
pseudo == PseudoStyleType::fieldsetContent ||
pseudo == PseudoStyleType::buttonContent ||
(pseudo == PseudoStyleType::buttonContent &&
!GetParent()->IsComboboxControlFrame()) ||
pseudo == PseudoStyleType::columnContent ||
(pseudo == PseudoStyleType::scrolledContent &&
!GetParent()->IsListControlFrame()) ||