Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cf296c8210057e4e16c1dd48c2a6a9ddf58aea6c
https://github.com/WebKit/WebKit/commit/cf296c8210057e4e16c1dd48c2a6a9ddf58aea6c
Author: Ahmad Saleem <[email protected]>
Date: 2026-10-13 (Tue, 13 Oct 2026)
Changed paths:
M Source/WebCore/rendering/RenderGrid.h
Log Message:
-----------
RenderGrid: Reorder data members to reduce padding
https://bugs.webkit.org/show_bug.cgi?id=327358
rdar://189877347
Reviewed by Alan Baradlay.
m_gridLanesContentSizeForWebInspectorOverlay is a 4-byte LayoutUnit that sits
directly before m_resolvedTrackList, which is 8-byte aligned, so it leaves 4
bytes of padding. The trailing std::optional<bool> and bool members then need
another 4 bytes of tail padding.
Move the LayoutUnit down next to those small members so that all three pack
into a single 8-byte slot. This shrinks RenderGrid by 8 bytes
(120 -> 112 in a mock of the member layout; the same on Clang, GCC and
Clang with the MSVC ABI).
* Source/WebCore/rendering/RenderGrid.h:
Canonical link: https://commits.webkit.org/323576@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications