Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d96b14570926b2121a18e8862da4606152a28db0
https://github.com/WebKit/WebKit/commit/d96b14570926b2121a18e8862da4606152a28db0
Author: Ahmad Saleem <[email protected]>
Date: 2026-10-01 (Thu, 01 Oct 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.h
M Source/WebCore/layout/formattingContexts/flex/FlexLayoutState.h
M
Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.h
M
Source/WebCore/layout/formattingContexts/inline/text/TextBreakingPositionContext.h
M Source/WebCore/layout/integration/flex/LayoutIntegrationFlexLayout.cpp
Log Message:
-----------
Reduce padding in TextBreakingPositionContext,
InlineContentConstrainer::EntryPretty, FlexLayoutConstraints and FlexLayoutState
https://bugs.webkit.org/show_bug.cgi?id=325920
rdar://188888086
Reviewed by Alan Baradlay.
Reorder members to remove padding holes. Sizes on 64-bit (Clang, Clang-cl/MSVC
ABI
and GCC/Itanium ABI all agree):
TextBreakingPositionContext: 24 -> 16 bytes
InlineContentConstrainer::EntryPretty: 96 -> 88 bytes
FlexLayoutConstraints: 88 -> 80 bytes
FlexLayoutState: 32 -> 24 bytes
No behavior change.
*
Source/WebCore/layout/formattingContexts/inline/text/TextBreakingPositionContext.h:
Move isHashTableDeletedValue next to the 1-byte enum members, ahead of locale.
* Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.h:
Pair the two floats (accumulatedCost, lastLineWidth) ahead of the size_t
members.
* Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp:
(WebCore::Layout::InlineContentConstrainer::layoutSingleLineForPretty):
Update the positional EntryPretty initializers to match the new member order.
* Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.h:
Move minimumLineCount ahead of the bool members so all of the bools and
crossAxisDirection fit in a single 8-byte slot.
* Source/WebCore/layout/integration/flex/LayoutIntegrationFlexLayout.cpp:
(WebCore::LayoutIntegration::FlexLayout::flexLayoutConstraints const):
Reorder designated initializers to match.
* Source/WebCore/layout/formattingContexts/flex/FlexLayoutState.h:
Move m_isFlexBoxBlockSizeDefinite next to m_phase.
Canonical link: https://commits.webkit.org/322426@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications