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