Handle css DOM tree generation from raw html and stylesheet.
コード例 #1
0
ファイル: HtmlHost.cs プロジェクト: jeason0813/HtmlRenderer
 public LayoutFarm.Composers.RenderTreeBuilder GetRenderTreeBuilder()
 {
     if (this.renderTreeBuilder == null)
     {
         renderTreeBuilder = new Composers.RenderTreeBuilder(this);
         this.renderTreeBuilder.RequestStyleSheet += (e) =>
         {
             if (requestStyleSheet != null)
             {
                 requestStyleSheet(this, e);
             }
         };
     }
     return(renderTreeBuilder);
 }
コード例 #2
0
ファイル: HtmlHost.cs プロジェクト: prepare/HTML-Renderer
 public LayoutFarm.Composers.RenderTreeBuilder GetRenderTreeBuilder()
 {
     if (this.renderTreeBuilder == null)
     {
         renderTreeBuilder = new Composers.RenderTreeBuilder(this);
         this.renderTreeBuilder.RequestStyleSheet += (e) =>
         {
             if (requestStyleSheet != null)
             {
                 requestStyleSheet(this, e);
             }
         };
     }
     return renderTreeBuilder;
 }