Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6ab09f9bd2119bb49fb557c41469e56b5037907b
      
https://github.com/WebKit/WebKit/commit/6ab09f9bd2119bb49fb557c41469e56b5037907b
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-06-30 (Tue, 30 Jun 2026)

  Changed paths:
    M Source/WebCore/html/HTMLAttachmentElement.h

  Log Message:
  -----------
  Reduce HTMLAttachmentElement size by 8 bytes via field reordering
https://bugs.webkit.org/show_bug.cgi?id=318208
rdar://181009514

Reviewed by Chris Dumez.

m_implementation (Implementation, a uint8_t enum) was declared as the
first data member, immediately followed by m_file (RefPtr), so it sat
alone in its own 8-byte slot with 7 bytes of padding. The class already
has sub-word members at the tail (m_needsIconRequest and, under
ENABLE(SERVICE_CONTROLS), m_isImageMenuEnabled) that share a slot.

Move m_implementation down next to those bools so the small members pack
into a single 8-byte slot, shrinking HTMLAttachmentElement by 8 bytes.
m_implementation is only ever set via assignment, never in a constructor
initializer list, so declaration order is unaffected. No behavior change.

Before: 288
After: 280

* Source/WebCore/html/HTMLAttachmentElement.h:

Canonical link: https://commits.webkit.org/316233@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to