Pack StyleColor members in StyleRareInheritedData tighter to save memory

Since StyleColor stores the color value (32-bit RGBA) plus a single flag,
it is a bit inefficient.  In particular when multiple StyleColor objects
are members of another object, there will be a lot of unnecessary padding.

This padding can be avoided by storing the color value and the flag as
separate members of the containing structure, which allows the flags to
be packed into a bitfield.

The actual saving from this change, measured in a 64-bit Linux build, is
20 bytes per StyleRareInheritedData object.

BUG=356124

Review URL: https://codereview.chromium.org/196103013

git-svn-id: svn://svn.chromium.org/blink/trunk@170038 bbb929c8-8fbe-4397-9dbb-9b2b20218538
4 files changed
tree: 75175b0338062eb6e5b8207183e239e7bfe5f043
  1. third_party/