Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2d2d923db943747b4b3b381f337501a37039b6f6
https://github.com/WebKit/WebKit/commit/2d2d923db943747b4b3b381f337501a37039b6f6
Author: Gerald Squelart <[email protected]>
Date: 2026-02-04 (Wed, 04 Feb 2026)
Changed paths:
M Source/WebCore/platform/LayoutUnit.h
Log Message:
-----------
MarkableTraits<LayoutUnit>::emptyValue() should use a less common value
https://bugs.webkit.org/show_bug.cgi?id=306935
rdar://169599360
Reviewed by Ryosuke Niwa.
MarkableTraits<WebCore::LayoutUnit>::emptyValue() was returning
LayoutUnit(-1), which is actually quite a valid value corresponding to
-1/64 pixels.
Instead it now uses a less common value, the same as
HashTraits<WebCore::LayoutUnit>::emptyValue() (which is justified in the
comment above.)
* Source/WebCore/platform/LayoutUnit.h:
(WTF::HashTraits<WebCore::LayoutUnit>::emptyValue):
(WTF::MarkableTraits<WebCore::LayoutUnit>::isEmptyValue):
(WTF::MarkableTraits<WebCore::LayoutUnit>::emptyValue):
Canonical link: https://commits.webkit.org/306813@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications