Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cd3726cb55b50cd95abe606c951d18a0fe052efb
https://github.com/WebKit/WebKit/commit/cd3726cb55b50cd95abe606c951d18a0fe052efb
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-16 (Thu, 16 Jul 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineContentCache.h
M Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp
Log Message:
-----------
Reduce sizeof InlineContentCache::InlineItems::ContentAttributes by
reordering members
https://bugs.webkit.org/show_bug.cgi?id=319563
rdar://182391543
Reviewed by Alan Baradlay.
The trailing `bool hasWhiteSpaceTrim` sat after `size_t inlineBoxCount`,
forcing padding before the size_t and tail padding after the bool
(sizeof == 24). Grouping all four bools ahead of inlineBoxCount packs
the struct to 16 bytes with no behavioral change.
* Source/WebCore/layout/formattingContexts/inline/InlineContentCache.h:
* Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp:
(WebCore::Layout::InlineItemsBuilder::build): Match the reordered
ContentAttributes aggregate-initializer.
Canonical link: https://commits.webkit.org/317313@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications