internal CompiledStyleInfo CreateChildStyle(HtmlElement.HtmlElementType elementType)
        {
            CompiledStyleInfo compiledStyleInfo = new CompiledStyleInfo();

            compiledStyleInfo.m_elementType = elementType;
            compiledStyleInfo.m_parentStyle = this;
            m_childStyle = compiledStyleInfo;
            return(compiledStyleInfo);
        }
 public CompiledStyleInfo RemoveStyle(HtmlElement.HtmlElementType elementType)
 {
     if (this.m_elementType == elementType)
     {
         if (this.m_parentStyle != null)
         {
             this.m_parentStyle.m_childStyle = null;
             return(this.m_parentStyle);
         }
         this.ResetStyle();
     }
     else if (this.m_parentStyle != null)
     {
         this.m_parentStyle.InternalRemoveStyle(elementType);
     }
     return(this);
 }
 public void InternalRemoveStyle(HtmlElement.HtmlElementType elementType)
 {
     if (this.m_elementType == elementType)
     {
         if (this.m_parentStyle != null)
         {
             this.m_parentStyle.m_childStyle = this.m_childStyle;
             this.m_childStyle.m_parentStyle = this.m_parentStyle;
         }
         else if (this.m_parentStyle == null)
         {
             this.m_childStyle.m_parentStyle = null;
         }
     }
     else if (this.m_parentStyle != null)
     {
         this.m_parentStyle.InternalRemoveStyle(elementType);
     }
 }