| Summary: | [Multicolumn] Guard against zero or negative space shortage | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Layout and Rendering | Assignee: | Ahmad Saleem <ahmad.saleem792> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bfulgham, ntim, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2023-01-07 15:50:19 PST
> Adding following early return (by following WebKit Coding Style - https://webkit.org/code-style-guidelines/#null-false-and-zero): > if (!spaceShortage) > return; (Note that negative values are truthy, so `spaceShortage <= 0` is correct) (In reply to Tim Nguyen (:ntim) from comment #1) > > Adding following early return (by following WebKit Coding Style - https://webkit.org/code-style-guidelines/#null-false-and-zero): > > > if (!spaceShortage) > > return; > > (Note that negative values are truthy, so `spaceShortage <= 0` is correct) truth! Committed 258647@main (783df4eb9096): <https://commits.webkit.org/258647@main> Reviewed commits have been landed. Closing PR #8373 and removing active labels. |