コード例 #1
0
        internal CompiledStyleInfo CreateChildStyle(HtmlElement.HtmlElementType elementType)
        {
            CompiledStyleInfo compiledStyleInfo = new CompiledStyleInfo();

            compiledStyleInfo.m_elementType = elementType;
            compiledStyleInfo.m_parentStyle = this;
            m_childStyle = compiledStyleInfo;
            return(compiledStyleInfo);
        }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
     }
 }