/// <summary>Renders the child nodes of this tag.</summary> protected void BuildChildren(RenderContext renderer) { // Render child nodes as well: if (childNodes_ == null) { return; } foreach (Node child in childNodes_) { // Render it too: SVGElement svg = (child as SVGElement); if (svg == null) { continue; } svg.BuildFilter(renderer); } }
public override void BuildFilter(RenderContext renderer) { if (Visibility == VisibilityMode.Hidden) { return; } PushTransforms(renderer); SetClip(renderer); SVGElement element = Target; if (element != null) { Node origParent = element.parentNode; element.parentNode_ = this; element.BuildFilter(renderer); element.parentNode_ = origParent; } ResetClip(renderer); PopTransforms(renderer); }