Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3adf5e1fc4ba8a43de378c957bceb50f30582a12
https://github.com/WebKit/WebKit/commit/3adf5e1fc4ba8a43de378c957bceb50f30582a12
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-16 (Thu, 16 Jul 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLine.h
Log Message:
-----------
Reduce sizeof Line::Run by reordering members
https://bugs.webkit.org/show_bug.cgi?id=319565
rdar://182394518
Reviewed by Alan Baradlay.
Line::Run interleaved 8-byte-aligned members with 4-byte InlineLayoutUnits
and 1-byte enums, leaving three interior padding holes. Reorder by
descending alignment to pack them tightly, shrinking sizeof(Line::Run)
from 88 to 80 bytes.
Constructor initializer lists are reordered to match, keeping -Wreorder
clean. No behavior change.
* Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp:
(WebCore::Layout::Line::Run::Run):
(WebCore::Layout::m_bidiLevel):
* Source/WebCore/layout/formattingContexts/inline/InlineLine.h:
Canonical link: https://commits.webkit.org/317315@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications