Example #1
0
 internal override void ComputeStyle(CssPropertyBag style, IWindow window, IElement element)
 {
     if (IsValid(window))
     {
         base.ComputeStyle(style, window, element);
     }
 }
Example #2
0
 internal void ComputeStyle(CssPropertyBag style, IWindow window, IElement element)
 {
     foreach (var rule in _rules)
     {
         rule.ComputeStyle(style, window, element);
     }
 }
Example #3
0
 internal override void ComputeStyle(CssPropertyBag style, IWindow window, IElement element)
 {
     if (_selector.Match(element))
     {
         style.ExtendWith(_style, _selector.Specifity);
     }
 }
Example #4
0
 /// <summary>
 /// Computes the style for the given element within the specified window
 /// context. Writes the properties into the specified style declaration.
 /// </summary>
 /// <param name="style">The declaration that is used.</param>
 /// <param name="window">The given window context.</param>
 /// <param name="element">The element that is computed.</param>
 internal virtual void ComputeStyle(CssPropertyBag style, IWindow window, IElement element)
 {
     //By default nothing gets computed.
 }
Example #5
0
 internal override void ComputeStyle(CssPropertyBag style, IWindow window, IElement element)
 {
     _rules.ComputeStyle(style, window, element);
 }