Beispiel #1
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);
     }
 }
 /// <summary>
 /// Creates a new @keyframes rule.
 /// </summary>
 internal CSSKeyframesRule()
 {
     _cssRules = new CSSRuleList();
     _type = CssRuleType.Keyframes;
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new CSS Stylesheet.
 /// </summary>
 internal CSSStyleSheet()
 {
     _cssRules = new CSSRuleList();
 }
Beispiel #4
0
 /// <summary>
 /// Creates a new CSS Stylesheet.
 /// </summary>
 /// <param name="source">The underlying source.</param>
 internal CSSStyleSheet(ITextSource source)
 {
     _source = source;
     _rules  = new CSSRuleList();
 }
Beispiel #5
0
 /// <summary>
 /// Creates a new CSS Stylesheet.
 /// </summary>
 internal CSSStyleSheet()
 {
     _cssRules = new CSSRuleList();
 }
 /// <summary>
 /// Creates a new @keyframes rule.
 /// </summary>
 internal CSSKeyframesRule()
 {
     _cssRules = new CSSRuleList();
     _type     = CssRule.Keyframes;
 }
Beispiel #7
0
 /// <summary>
 /// Creates a new CSS grouping rule.
 /// </summary>
 internal CSSGroupingRule()
 {
     _rules = new CSSRuleList();
 }
Beispiel #8
0
 void Populate(CSSRuleList rules)
 {
     foreach (var rule in rules)
         children.Add(new CssRuleViewModel(rule));
 }
 /// <summary>
 /// Creates a new CSS grouping rule.
 /// </summary>
 internal CSSGroupingRule()
 {
     cssRules = new CSSRuleList();
 }
 /// <summary>
 /// Creates a new CSS Stylesheet.
 /// </summary>
 internal CSSStyleSheet()
 {
     _cssRules = new CSSRuleList();
     _cts      = new CancellationTokenSource();
 }
Beispiel #11
0
 /// <summary>
 /// Creates a new CSS Stylesheet.
 /// </summary>
 internal CSSStyleSheet()
 {
     _cssRules = new CSSRuleList();
     _cts = new CancellationTokenSource();
 }