Summary: | ASSERTION FAILED: contentSize >= 0 in WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryan Haddad <ryanhaddad> | ||||||
Component: | Layout and Rendering | Assignee: | Sergio Villar Senin <svillar> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bfulgham, cdumez, changseok, esprehn+autocc, ews-watchlist, glenn, koivisto, kondapallykalyan, pdr, rbuis, sabouhallawa, simon.fraser, svillar, thorton, webkit-bot-watchers-bugzilla, webkit-bug-importer, zalan | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | Other | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=222651 | ||||||||
Attachments: |
|
Description
Ryan Haddad
2021-03-03 23:25:28 PST
Committed r273876 (234837@main): <https://commits.webkit.org/234837@main> This was not meant to be closed. I've just landed in r273876 a gardening patch skipping this test in Debug until we figure out what's going on. Created attachment 423322 [details]
Patch
Ping reviewers Another gentle ping Comment on attachment 423322 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423322&action=review > Source/WebCore/rendering/RenderFrameSet.cpp:437 > + ASSERT(preferredLogicalWidthsDirty()); > + > + RenderBox::computePreferredLogicalWidths(style().logicalMinWidth(), style().logicalMaxWidth(), borderAndPaddingLogicalWidth()); > + setPreferredLogicalWidthsDirty(false); I am curious as to why RenderBox::computePreferredLogicalWidths() does not simply call the other computePreferredLogicalWidths() function. I did a quick grep and it looked like many RenderBox subclasses override this function. It would be interesting to know if there's another class that's missing the override and whether it is intentional or just a mistake like this. I'd move this functionality up to the RenderBox unless there's a good reason not to (so that we don't end up with this exact same bug if someone introduces a new subclass). Created attachment 427650 [details]
Patch
Something like this Alan?
(In reply to Sergio Villar Senin from comment #8) > Created attachment 427650 [details] > Patch > > Something like this Alan? Exactly like this! Thanks! Will review it in a bit. Comment on attachment 427650 [details]
Patch
So it looks like there are 2 classes with no computePreferredLogicalWidths override, RenderTableRow and RenderMultiColumnSpannerPlaceholder. If this patch regresses them in any way, we could just override and leave them empty with an explanation of why they should not need to provide the preferred logical width.
Committed r276971 (237300@main): <https://commits.webkit.org/237300@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427650 [details]. |