public static void StyleFromSource(CSSStyleSheet sheet, String source) { if (sheet.Options.IsStyling) { var parser = new CssParser(sheet, source); parser.Parse(); } }
public static void StyleFromUrl(CSSStyleSheet sheet, String url) { //TODO we need the IoC container to resolve stream getters etc. return; var stream = Stream(url); var parser = new CssParser(sheet, stream); parser.Parse(); }
public static async Task StyleFromUrl(CSSStyleSheet sheet, String url, CancellationToken cancel) { if (sheet.Options.IsStyling && Configuration.UseDefaultHttpRequester) { var stream = await GetFromUrl(url, cancel); var parser = new CssParser(sheet, stream); parser.Parse(); } }
public static async Task StyleFromUrl(CSSStyleSheet sheet, String url, CancellationToken cancel) { if (sheet.Options.IsStyling) { var stream = await GetFromUrl(url, cancel); var parser = new CssParser(sheet, stream); parser.Parse(); } }