Moved leadingpaddingnandborder function as a method on YGNode

Summary: Moved leadingpaddingnandborder function as a method on YGNode

Reviewed By: emilsjolander

Differential Revision: D6711991

fbshipit-source-id: 41ad7191bf8df6fe3131106436dc0c87e9dee297
This commit is contained in:
Pritesh Nandgaonkar
2018-01-15 10:09:55 -08:00
committed by Facebook Github Bot
parent 130b5beca2
commit 92bfcbafc0
3 changed files with 13 additions and 12 deletions

View File

@@ -660,3 +660,9 @@ float YGNode::getTrailingPadding(
widthSize),
0.0f);
}
float YGNode::getLeadingPaddingAndBorder(
const YGFlexDirection axis,
const float widthSize) {
return getLeadingPadding(axis, widthSize) + getLeadingBorder(axis);
}