Use only 4 edges for margin, padding, border in YGLayout
Summary: We were using four edges for margin, padding and border. This diff changes the array size in YGLayout for margin, padding, border to reduce YGNode size and corresponding changes while we are setting values in YGLayout. Reduces the YGNode size by 24 bytes Reviewed By: davidaurelio Differential Revision: D14892666 fbshipit-source-id: 94013d5183ee869901267c4c9941fd94fa05d848
This commit is contained in:
committed by
Facebook Github Bot
parent
fcfb19e9cf
commit
ffce716557
@@ -14,9 +14,9 @@ constexpr std::array<float, 2> kYGDefaultDimensionValues = {
|
||||
struct YGLayout {
|
||||
std::array<float, 4> position = {};
|
||||
std::array<float, 2> dimensions = kYGDefaultDimensionValues;
|
||||
std::array<float, 6> margin = {};
|
||||
std::array<float, 6> border = {};
|
||||
std::array<float, 6> padding = {};
|
||||
std::array<float, 4> margin = {};
|
||||
std::array<float, 4> border = {};
|
||||
std::array<float, 4> padding = {};
|
||||
YGDirection direction : 2;
|
||||
bool didUseLegacyFlag : 1;
|
||||
bool doesLegacyStretchFlagAffectsLayout : 1;
|
||||
|
Reference in New Issue
Block a user