internal StyleRuleCollection(mozIDOMWindowProxy window, GeckoStyleSheet styleSheet) { StyleSheet = styleSheet; _window = window; _styleSheet = new Lazy <WebIDL.CSSStyleSheet>(() => new CSSStyleSheet(window, styleSheet.DomStyleSheet)); _ruleList = new Lazy <CSSRuleList>(() => new CSSRuleList((mozIDOMWindowProxy)_window, _styleSheet.Value.CssRules)); this.List = _styleSheet.Value.CssRules; }
internal StyleRuleCollection(GeckoStyleSheet styleSheet) { StyleSheet = styleSheet; this.List = GetRuleList(); }