Moved trailing padding and border function as a method on YGNode

Summary: Moved trailing padding and border function as a method on YGNode

Reviewed By: emilsjolander

Differential Revision: D6899571

fbshipit-source-id: 7f686e8771d5a94aae502191516557b20c557d7c
This commit is contained in:
Pritesh Nandgaonkar
2018-02-06 08:39:52 -08:00
committed by Facebook Github Bot
parent dc0609d153
commit 64f6ea37bd
3 changed files with 11 additions and 9 deletions

View File

@@ -678,6 +678,12 @@ float YGNode::getLeadingPaddingAndBorder(
return getLeadingPadding(axis, widthSize) + getLeadingBorder(axis);
}
float YGNode::getTrailingPaddingAndBorder(
const YGFlexDirection axis,
const float widthSize) {
return getTrailingPadding(axis, widthSize) + getTrailingBorder(axis);
}
bool YGNode::didUseLegacyFlag() {
bool didUseLegacyFlag = layout_.didUseLegacyFlag;
if (didUseLegacyFlag) {