Skip to content

Commit

Permalink
Bug 1362907 - Fix a couple crashtests.
Browse files Browse the repository at this point in the history
<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
  • Loading branch information
emilio committed Feb 29, 2024
1 parent fb89acd commit 73c13e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layout/forms/crashtests/crashtests.list
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ load 1405830.html
load 1418477.html
load 1432853.html
asserts(1-4) load 1460787-1.html
load 1464165-1.html
asserts(1-4) load 1464165-1.html # Big sizes.
load 1471157.html
load 1488219.html
load 1600207.html
Expand Down
3 changes: 2 additions & 1 deletion layout/generic/nsBlockFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) ||
Expand Down

0 comments on commit 73c13e1

Please sign in to comment.