remove assert on markNeedsCompositingBitsUpdate (#103227)

This commit is contained in:
Jonah Williams
2022-05-06 23:39:08 -07:00
committed by GitHub
parent 9c40b74d84
commit b05b44e88a

View File

@@ -2295,12 +2295,6 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
return;
}
}
assert(() {
final AbstractNode? parent = this.parent;
if (parent is RenderObject)
return parent._needsCompositing;
return true;
}());
// parent is fine (or there isn't one), but we are dirty
if (owner != null)
owner!._nodesNeedingCompositingBitsUpdate.add(this);