Esempio n. 1
0
 public CssBuilder(CssParserOptions options, CssTokenizer tokenizer, IBrowsingContext context)
 {
     _tokenizer = tokenizer;
     _options   = options;
     _context   = context;
 }
Esempio n. 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)
 {
 }
Esempio n. 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());
 }
Esempio n. 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))
 {
 }