SVGFilter getFilter(string pSVGFilterID) { SVGFilter svgFilter = this.mSVGFilterMap[pSVGFilterID]; if (svgFilter == null) { return(null); // TODO Better a SVGParseException here? } else { svgFilter.ensureHrefResolved(this.mSVGFilterMap); return(svgFilter); } }
private void resolveHref(Dictionary <string, SVGFilter> pSVGFilterMap) { SVGFilter parent = pSVGFilterMap[this.mHref]; if (parent == null) { throw new SVGParseException("Could not resolve href: '" + this.mHref + "' of SVGGradient: '" + this.mID + "'."); } else { parent.ensureHrefResolved(pSVGFilterMap); this.mParent = parent; this.mSVGAttributes.setParentSVGAttributes(this.mParent.mSVGAttributes); } }