Bug 259674

Summary: unionRect(const Vector<LayoutRect>&) behaves incorrectly with empty rects
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2023-07-31 20:45:05 PDT
unionRect(const Vector<LayoutRect>&) behaves incorrectly if the input vector contains a single zero-size rect with a non-zero location; it will union with the empty rect, and therefore return the empty rect.
Comment 1 Radar WebKit Bug Importer 2023-07-31 20:45:36 PDT
<rdar://problem/113183595>
Comment 2 Simon Fraser (smfr) 2023-07-31 20:48:17 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16267
Comment 3 EWS 2023-08-01 09:31:24 PDT
Committed 266479@main (0ab891185786): <https://commits.webkit.org/266479@main>

Reviewed commits have been landed. Closing PR #16267 and removing active labels.