public void ConvertAndAppend(DomNode parent, DomObject m, IScriptGenerator gen) { var child = Convert(m, gen); if (child == null) { return; } if (object.ReferenceEquals(child, m)) { parent.Append(child); } else { parent.Append(child); } }
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); } }