[yoga re-add assertion to check for owner reference before adding child.
Summary: this diff re-add the assertion to check for owner reference before adding child that was removed by mistake in previous diff Reviewed By: emilsjolander Differential Revision: D7495417 fbshipit-source-id: b81174aeea3f2796d76ccdae4a8eddd0beace0aa
This commit is contained in:
committed by
Facebook Github Bot
parent
6b08db68bb
commit
2e234473ca
@@ -370,6 +370,11 @@ void YGConfigCopy(const YGConfigRef dest, const YGConfigRef src) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void YGNodeInsertChild(const YGNodeRef node, const YGNodeRef child, const uint32_t index) {
|
void YGNodeInsertChild(const YGNodeRef node, const YGNodeRef child, const uint32_t index) {
|
||||||
|
YGAssertWithNode(
|
||||||
|
node,
|
||||||
|
child->getOwner() == nullptr,
|
||||||
|
"Child already has a owner, it must be removed first.");
|
||||||
|
|
||||||
YGAssertWithNode(
|
YGAssertWithNode(
|
||||||
node,
|
node,
|
||||||
node->getMeasure() == nullptr,
|
node->getMeasure() == nullptr,
|
||||||
|
Reference in New Issue
Block a user