Bug 259674 - unionRect(const Vector<LayoutRect>&) behaves incorrectly with empty rects
Summary: unionRect(const Vector<LayoutRect>&) behaves incorrectly with empty rects
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-31 20:45 PDT by Simon Fraser (smfr)
Modified: 2023-08-01 09:31 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.