Repository navigation
Commit 0e86b49
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@main1 parent 7a06e8a commit 0e86b49
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| |||
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
289 | | - | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
0 commit comments