static void TryConsolidate(DomNode any) { HxlRenderWorkElement sentinel; if (IsConsolidatable(any.ChildNodes, out sentinel)) { var consolidated = GetConsolidation(any.ChildNodes, null, null, sentinel); any.Empty(); any.Append(consolidated); } if (IsInlinableElement(any)) { DomElement e = (DomElement)any; InlineElement(e); } }