Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0e86b49069a5e3737c1cc7af554833d06580cc9a
      
https://github.com/WebKit/WebKit/commit/0e86b49069a5e3737c1cc7af554833d06580cc9a
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-10 (Fri, 10 Jul 2026)

  Changed paths:
    M Source/WebCore/html/track/VTTCue.h

  Log Message:
  -----------
  Reduce VTTCue size by regrouping m_displayDirection with adjacent small enums
https://bugs.webkit.org/show_bug.cgi?id=319026
rdar://181880375

Reviewed by Eric Carlson.

m_displayDirection (CSSValueID, a uint16_t enum) was declared immediately
before the double m_displaySize. Sitting on an 8-byte-aligned offset, its
2 bytes forced 6 bytes of padding before the double, wasting a full word.

Move it up next to m_writingDirection and m_cueAlignment (both 1-byte
enums), which already left 6 bytes of padding before the following
RefPtr<VTTRegion>. The enum now folds into that existing hole at no cost,
and m_displaySize leads its group without a preceding gap. This shrinks
the object by 8 bytes with no behavioral change.

* Source/WebCore/html/track/VTTCue.h:

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



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

Reply via email to