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
This commit is contained in:
Valentin Shergin 2018-04-10 16:37:09 -07:00 committed by Facebook Github Bot
parent cf036ee2fa
commit db92b16e04
1 changed files with 1 additions and 1 deletions

View File

@ -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