Bug 306935

Summary: MarkableTraits<WebCore::LayoutUnit>::emptyValue() should use a less common value
Product: WebKit Reporter: Gerald Squelart <g_squelart>
Component: CSSAssignee: Gerald Squelart <g_squelart>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 249919    
Bug Blocks:    

Gerald Squelart
Reported 2026-02-03 23:35:40 PST
MarkableTraits<WebCore::LayoutUnit>::emptyValue() currently returns LayoutUnit(-1), which is actually quite a valid value corresponding to -1/64 pixels. Instead it should use a less common value, probably the same as HashTraits<WebCore::LayoutUnit>::emptyValue(), which is INT_MIN and justified as "During the course of layout // these values are typically only used to represent uninitialized values".
Attachments
Radar WebKit Bug Importer
Comment 1 2026-02-03 23:35:48 PST
Gerald Squelart
Comment 2 2026-02-03 23:42:48 PST
EWS
Comment 3 2026-02-04 14:35:27 PST
Committed 306813@main (2d2d923db943): <https://commits.webkit.org/306813@main> Reviewed commits have been landed. Closing PR #57846 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.