From db92b16e04c2f9e807572a7fbd9fbbb26a4eeddb Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Tue, 10 Apr 2018 16:37:09 -0700 Subject: [PATCH] Fabric: Proper invocation of `ensureunsealed` in `LayoutableShadowNode::layout` Summary: Quite obvious. We have to check `sealable` flag of the child (not a parent) before mutating it. Reviewed By: mdvacca Differential Revision: D7526407 fbshipit-source-id: ce8e0d6446ff7eb23baee9c92f246d5e198fe377 --- ReactCommon/fabric/core/layout/LayoutableShadowNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/fabric/core/layout/LayoutableShadowNode.cpp b/ReactCommon/fabric/core/layout/LayoutableShadowNode.cpp index 0e2652efc..df967d57c 100644 --- a/ReactCommon/fabric/core/layout/LayoutableShadowNode.cpp +++ b/ReactCommon/fabric/core/layout/LayoutableShadowNode.cpp @@ -69,7 +69,7 @@ void LayoutableShadowNode::layout(LayoutContext layoutContext) { continue; } - ensureUnsealed(); + child->ensureUnsealed(); // The assumption: // All `sealed` children were replaced with not-yet-sealed clones