Clean up calls to dimension() with a hardcoded FlexDirection
Differential Revision: D63408245
This commit is contained in:
committed by
Facebook GitHub Bot
parent
31b5e63adf
commit
b7cfdf7162
@@ -2360,7 +2360,7 @@ void calculateLayout(
|
|||||||
const auto& style = node->style();
|
const auto& style = node->style();
|
||||||
if (node->hasDefiniteLength(Dimension::Width, ownerWidth)) {
|
if (node->hasDefiniteLength(Dimension::Width, ownerWidth)) {
|
||||||
width =
|
width =
|
||||||
(node->getProcessedDimension(dimension(FlexDirection::Row))
|
(node->getProcessedDimension(Dimension::Width)
|
||||||
.resolve(ownerWidth)
|
.resolve(ownerWidth)
|
||||||
.unwrap() +
|
.unwrap() +
|
||||||
node->style().computeMarginForAxis(FlexDirection::Row, ownerWidth));
|
node->style().computeMarginForAxis(FlexDirection::Row, ownerWidth));
|
||||||
@@ -2380,7 +2380,7 @@ void calculateLayout(
|
|||||||
SizingMode heightSizingMode = SizingMode::MaxContent;
|
SizingMode heightSizingMode = SizingMode::MaxContent;
|
||||||
if (node->hasDefiniteLength(Dimension::Height, ownerHeight)) {
|
if (node->hasDefiniteLength(Dimension::Height, ownerHeight)) {
|
||||||
height =
|
height =
|
||||||
(node->getProcessedDimension(dimension(FlexDirection::Column))
|
(node->getProcessedDimension(Dimension::Height)
|
||||||
.resolve(ownerHeight)
|
.resolve(ownerHeight)
|
||||||
.unwrap() +
|
.unwrap() +
|
||||||
node->style().computeMarginForAxis(FlexDirection::Column, ownerWidth));
|
node->style().computeMarginForAxis(FlexDirection::Column, ownerWidth));
|
||||||
|
Reference in New Issue
Block a user