Esempio n. 1
0
 internal CssStyleSheet(CssParser parser, String url, IElement owner)
 {
     _media  = new MediaList(parser);
     _owner  = owner;
     _url    = url;
     _rules  = new CssRuleList(this);
     _parser = parser;
 }
Esempio n. 2
0
 internal CssStyleSheet(CssParser parser, String url, IElement owner)
 {
     _media = new MediaList(parser);
     _owner = owner;
     _url = url;
     _rules = new CssRuleList(this);
     _parser = parser;
 }
Esempio n. 3
0
 internal CssStyleSheet(CssParser parser, String url, IElement owner)
 {
     _media  = new MediaList(parser);
     _owner  = owner;
     _url    = url;
     _rules  = new CssRuleList(this, parser.Options.FilterDisplayAndVisibilityOnly);
     _parser = parser;
 }
Esempio n. 4
0
 internal void Import(CssRuleList rules, ICssStyleSheet owner, ICssRule parent)
 {
     while (rules._rules.Count > 0)
     {
         var newRule = rules._rules[0];
         rules._rules.RemoveAt(0);
         newRule.Parent = parent;
         newRule.Owner = owner;
         _rules.Add(newRule);
     }
 }
Esempio n. 5
0
 internal CssGroupingRule(CssRuleType type, CssParser parser)
     : base(type, parser)
 {
     _rules = new CssRuleList(this, parser.Options.FilterDisplayAndVisibilityOnly);
 }
Esempio n. 6
0
 /// <summary>
 /// Creates a new @keyframes rule.
 /// </summary>
 internal CssKeyframesRule(CssParser parser)
     : base(CssRuleType.Keyframes, parser)
 {
     _rules = new CssRuleList();
 }
Esempio n. 7
0
 internal CssGroupingRule(CssRuleType type, CssParser parser)
     : base(type, parser)
 {
     _rules = new CssRuleList(this);
 }
Esempio n. 8
0
 /// <summary>
 /// Creates a new @keyframes rule.
 /// </summary>
 internal CssKeyframesRule(CssParser parser)
     : base(CssRuleType.Keyframes, parser)
 {
     _rules = new CssRuleList();
 }
Esempio n. 9
0
 /// <summary>
 /// Creates a new CSS grouping rule.
 /// </summary>
 internal CssGroupingRule(CssRuleType type, CssParser parser)
     : base(type, parser)
 {
     _rules = new CssRuleList();
 }
Esempio n. 10
0
 /// <summary>
 /// Creates a new CSS Stylesheet.
 /// </summary>
 /// <param name="parser">The parser to use.</param>
 internal CssStyleSheet(CssParser parser)
     : base(new MediaList(parser))
 {
     _rules  = new CssRuleList();
     _parser = parser;
 }
Esempio n. 11
0
 /// <summary>
 /// Creates a new CSS Stylesheet.
 /// </summary>
 /// <param name="source">The underlying source.</param>
 internal CssStyleSheet(TextSource source)
 {
     _source = source;
     _rules  = new CssRuleList();
 }
Esempio n. 12
0
 internal CssKeyframesRule(CssParser parser)
     : base(CssRuleType.Keyframes, parser)
 {
     _rules = new CssRuleList(this, parser.Options.FilterDisplayAndVisibilityOnly);
 }
Esempio n. 13
0
 /// <summary>
 /// Creates a new @keyframes rule.
 /// </summary>
 internal CssKeyframesRule()
     : base(CssRuleType.Keyframes)
 {
     _rules = new CssRuleList();
 }
Esempio n. 14
0
 /// <summary>
 /// Creates a new CSS Stylesheet.
 /// </summary>
 /// <param name="parser">The parser to use.</param>
 internal CssStyleSheet(CssParser parser)
     : base(new MediaList(parser))
 {
     _rules = new CssRuleList();
     _parser = parser;
 }
Esempio n. 15
0
 /// <summary>
 /// Creates a new CSS grouping rule.
 /// </summary>
 internal CssGroupingRule(CssRuleType type)
     : base(type)
 {
     _rules = new CssRuleList();
 }