14 namespace optimizations
17 template <
typename Comparable>
30 if (!child.IsOutputUnconnected())
36 auto& comparableChild = *PolymorphicDowncast<Comparable*>(&child);
38 Layer* lowestPriorityChild = &child;
41 Layer* sibling = &it->GetOwningLayer();
42 if ((sibling != lowestPriorityChild) && comparableChild.IsEqual(*sibling))
51 lowestPriorityChildOut != lowestPriorityChild->
EndOutputSlots(); ++lowestPriorityChildOut)
53 siblingOut->MoveAllConnections(*lowestPriorityChildOut);