зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1727227: Add a static assert to ensure that the size of the AccAttributes value variant isn't unintentionally changed. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D123415
This commit is contained in:
Родитель
7f3c9eb118
Коммит
6e56411410
|
@ -40,6 +40,7 @@ class AccAttributes {
|
|||
|
||||
using AttrValueType =
|
||||
Variant<bool, float, int32_t, RefPtr<nsAtom>, CSSCoord, FontSize, Color>;
|
||||
static_assert(sizeof(AttrValueType) <= 16);
|
||||
using AtomVariantMap = nsTHashMap<nsRefPtrHashKey<nsAtom>, AttrValueType>;
|
||||
|
||||
protected:
|
||||
|
|
Загрузка…
Ссылка в новой задаче