C++ style enums 7/N: MeasureMode (#1389)
Summary: X-link: https://github.com/facebook/react-native/pull/39452 Pull Request resolved: https://github.com/facebook/yoga/pull/1389 This converts usages of YGMeasureMode to MeasureMode Reviewed By: rozele Differential Revision: D49271165 fbshipit-source-id: 273c9ed0a61c3965e469548d29d37e4566c974dc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
383b325d06
commit
ed406f0b55
@@ -211,10 +211,11 @@ FloatOptional Node::getGapForAxis(
|
||||
|
||||
YGSize Node::measure(
|
||||
float width,
|
||||
YGMeasureMode widthMode,
|
||||
MeasureMode widthMode,
|
||||
float height,
|
||||
YGMeasureMode heightMode) {
|
||||
return measureFunc_(this, width, widthMode, height, heightMode);
|
||||
MeasureMode heightMode) {
|
||||
return measureFunc_(
|
||||
this, width, unscopedEnum(widthMode), height, unscopedEnum(heightMode));
|
||||
}
|
||||
|
||||
float Node::baseline(float width, float height) const {
|
||||
|
Reference in New Issue
Block a user