internal override void ComputeStyle(CssPropertyBag style, IWindow window, IElement element) { if (IsValid(window)) { base.ComputeStyle(style, window, element); } }
internal void ComputeStyle(CssPropertyBag style, IWindow window, IElement element) { foreach (var rule in _rules) { rule.ComputeStyle(style, window, element); } }
internal override void ComputeStyle(CssPropertyBag style, IWindow window, IElement element) { if (_selector.Match(element)) { style.ExtendWith(_style, _selector.Specifity); } }
/// <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. }
internal override void ComputeStyle(CssPropertyBag style, IWindow window, IElement element) { _rules.ComputeStyle(style, window, element); }