@@ -762,23 +762,6 @@ static const std::array<YGEdge, 4> pos = {{
762
762
static const std::array<YGDimension, 4 > dim = {
763
763
{YGDimensionHeight, YGDimensionHeight, YGDimensionWidth, YGDimensionWidth}};
764
764
765
- static float YGNodeTrailingPadding (const YGNodeRef node,
766
- const YGFlexDirection axis,
767
- const float widthSize) {
768
- if (YGFlexDirectionIsRow (axis) &&
769
- node->getStyle ().padding [YGEdgeEnd].unit != YGUnitUndefined &&
770
- YGResolveValue (node->getStyle ().padding [YGEdgeEnd], widthSize) >= 0 .0f ) {
771
- return YGResolveValue (node->getStyle ().padding [YGEdgeEnd], widthSize);
772
- }
773
-
774
- return fmaxf (
775
- YGResolveValue (
776
- *YGComputedEdgeValue (
777
- node->getStyle ().padding , trailing[axis], &YGValueZero),
778
- widthSize),
779
- 0 .0f );
780
- }
781
-
782
765
static inline float YGNodeLeadingPaddingAndBorder (
783
766
const YGNodeRef node,
784
767
const YGFlexDirection axis,
@@ -790,7 +773,7 @@ static inline float YGNodeLeadingPaddingAndBorder(
790
773
static inline float YGNodeTrailingPaddingAndBorder (const YGNodeRef node,
791
774
const YGFlexDirection axis,
792
775
const float widthSize) {
793
- return YGNodeTrailingPadding ( node, axis, widthSize) +
776
+ return node-> getTrailingPadding ( axis, widthSize) +
794
777
node->getTrailingBorder (axis);
795
778
}
796
779
@@ -1741,12 +1724,11 @@ static void YGNodelayoutImpl(const YGNodeRef node,
1741
1724
node->setLayoutPadding (
1742
1725
node->getLeadingPadding (flexRowDirection, parentWidth), YGEdgeStart);
1743
1726
node->setLayoutPadding (
1744
- YGNodeTrailingPadding ( node, flexRowDirection, parentWidth), YGEdgeEnd);
1727
+ node-> getTrailingPadding ( flexRowDirection, parentWidth), YGEdgeEnd);
1745
1728
node->setLayoutPadding (
1746
1729
node->getLeadingPadding (flexColumnDirection, parentWidth), YGEdgeTop);
1747
1730
node->setLayoutPadding (
1748
- YGNodeTrailingPadding (node, flexColumnDirection, parentWidth),
1749
- YGEdgeBottom);
1731
+ node->getTrailingPadding (flexColumnDirection, parentWidth), YGEdgeBottom);
1750
1732
1751
1733
if (node->getMeasure () != nullptr ) {
1752
1734
YGNodeWithMeasureFuncSetMeasuredDimensions (node,
0 commit comments