WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
306935
MarkableTraits<WebCore::LayoutUnit>::emptyValue() should use a less common value
https://bugs.webkit.org/show_bug.cgi?id=306935
Summary
MarkableTraits<WebCore::LayoutUnit>::emptyValue() should use a less common value
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-02-03 23:35:48 PST
<
rdar://problem/169599360
>
Gerald Squelart
Comment 2
2026-02-03 23:42:48 PST
Pull request:
https://github.com/WebKit/WebKit/pull/57846
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.
Top of Page
Format For Printing
XML
Clone This Bug