mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
LayoutData - added explicit default fields values initialization (#50227)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50227 Explicit defaults add 'strictness' and take the guesswork out of what's going on in places like this: https://github.com/facebook/yoga/blob/6455a848a76f433bdb48b2640b7f4644774c76fd/yoga/algorithm/CalculateLayout.cpp#L2345 Changelog: [Internal] X-link: https://github.com/facebook/yoga/pull/1802 Reviewed By: javache Differential Revision: D71687310 Pulled By: NickGerleman fbshipit-source-id: f11d18aa68ce7ccd17fb1d5af0e729e8c0711cf9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7056d20984
commit
2cb49eeaa3
@@ -36,12 +36,12 @@ enum struct LayoutPassReason : int {
|
||||
};
|
||||
|
||||
struct LayoutData {
|
||||
int layouts;
|
||||
int measures;
|
||||
uint32_t maxMeasureCache;
|
||||
int cachedLayouts;
|
||||
int cachedMeasures;
|
||||
int measureCallbacks;
|
||||
int layouts = 0;
|
||||
int measures = 0;
|
||||
uint32_t maxMeasureCache = 0;
|
||||
int cachedLayouts = 0;
|
||||
int cachedMeasures = 0;
|
||||
int measureCallbacks = 0;
|
||||
std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>
|
||||
measureCallbackReasonsCount;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user