Move YGCloneChildrenIfNeeded as a method on YGNode
Summary: - Removed the default() static method, instead of this, its zero argument initialiser is used - Moved `YGCloneChildrenIfNeeded` to `cloneChildrenIfNeeded` as a method on `YGNode`. Reviewed By: emilsjolander Differential Revision: D6611155 fbshipit-source-id: 463723a363e0fbd2c7686f65226eca73236bd07e
This commit is contained in:
committed by
Facebook Github Bot
parent
61dc10ef66
commit
f2a369fb73
@@ -106,6 +106,8 @@ struct YGNode {
|
||||
YGValue resolveFlexBasisPtr() const;
|
||||
void resolveDimension();
|
||||
void clearChildren();
|
||||
/// Replaces the occurrences of oldChild with newChild
|
||||
void replaceChild(YGNodeRef oldChild, YGNodeRef newChild);
|
||||
void replaceChild(YGNodeRef child, uint32_t index);
|
||||
void insertChild(YGNodeRef child, uint32_t index);
|
||||
/// Removes the first occurrence of child
|
||||
@@ -117,6 +119,6 @@ struct YGNode {
|
||||
void setLayoutPadding(float padding, int index);
|
||||
void setLayoutPosition(float position, int index);
|
||||
|
||||
// Static methods
|
||||
static const YGNode& defaultValue();
|
||||
// Other methods
|
||||
void cloneChildrenIfNeeded();
|
||||
};
|
||||
|
Reference in New Issue
Block a user