예제 #1
0
 public CssBuilder(CssParserOptions options, CssTokenizer tokenizer, IBrowsingContext context)
 {
     _tokenizer = tokenizer;
     _options   = options;
     _context   = context;
 }
예제 #2
0
 /// <summary>
 /// Creates a new parser with the custom options.
 /// </summary>
 /// <param name="options">The options to use.</param>
 public CssParser(CssParserOptions options)
     : this(options, default)
 {
 }
예제 #3
0
 /// <summary>
 /// Creates a new parser with the custom options and context.
 /// </summary>
 /// <param name="options">The options to use.</param>
 /// <param name="context">The context to use.</param>
 public CssParser(CssParserOptions options, IBrowsingContext context)
 {
     _options = options;
     _context = context ?? BrowsingContext.New(Configuration.Default.WithOnly <ICssParser>(this).WithCss());
 }
예제 #4
0
 /// <summary>
 /// Creates a new parser with the custom options.
 /// </summary>
 /// <param name="options">The options to use.</param>
 public CssParser(CssParserOptions options)
     : this(options, default(IBrowsingContext))
 {
 }