[Webkit-unassigned] [Bug 250282] [Multicolumn] Guard against zero or negative space shortage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 7 16:45:29 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=250282

Tim Nguyen (:ntim) <ntim at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ntim at apple.com

--- Comment #1 from Tim Nguyen (:ntim) <ntim at apple.com> ---
> 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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230108/7e3c8295/attachment-0001.htm>


More information about the webkit-unassigned mailing list