Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
            }
        }