/// <summary> /// Creates a new style sheet included in another stylesheet. /// </summary> /// <param name="parent">The parent of the current stylesheet.</param> internal StyleSheet(StyleSheet parent) : this() { _owner = parent._owner; _parent = parent; }
protected override async Task Use(Uri url, HTMLDocument document, CancellationToken cancel) { local = url; Selected = null; source.Clear(); Status = "Looking for stylesheets ..."; for (int i = 0; i < document.StyleSheets.Length; i++) { var s = document.StyleSheets[i]; source.Add(s); } await Task.Yield(); }