예제 #1
0
 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;
 }
예제 #2
0
 internal StyleRuleCollection(GeckoStyleSheet styleSheet)
 {
     StyleSheet = styleSheet;
     this.List  = GetRuleList();
 }