f.colors[i].color = dojox.gfx.normalizeColor(f.colors[i].color); var t = document.createElementNS(svgns, "stop"); t.setAttribute("offset",     f.colors[i].offset.toFixed(8)); t.setAttribute("stop-color", f.colors[i].color.toCss()); t.setAttribute("stop-opacity", f.colors[i].color.a); 
var c = f.colors[i], t = document.createElementNS(svgns, "stop"), cc = c.color = dojox.gfx.normalizeColor(c.color); t.setAttribute("offset",       c.offset.toFixed(8)); t.setAttribute("stop-color",   cc.toCss()); t.setAttribute("stop-opacity", cc.a); 
	_setFillObject: function(f, nodeType){		var svgns = dojox.gfx.svg.xmlns.svg;		this.fillStyle = f;		var surface = this._getParentSurface();		var defs = surface.defNode;		var fill = this.rawNode.getAttribute("fill");		var ref  = dojox.gfx.svg.getRef(fill);		if(ref){			fill = ref;			if(fill.tagName.toLowerCase() != nodeType.toLowerCase()){				var id = fill.id;				fill.parentNode.removeChild(fill);				fill = document.createElementNS(svgns, nodeType);				fill.setAttribute("id", id);				defs.appendChild(fill);			}else{				while(fill.childNodes.length){					fill.removeChild(fill.lastChild);				}			}		}else{			fill = document.createElementNS(svgns, nodeType);			fill.setAttribute("id", dojox.gfx._base._getUniqueId());			defs.appendChild(fill);		}		if(nodeType == "pattern"){			fill.setAttribute("patternUnits", "userSpaceOnUse");			var img = document.createElementNS(svgns, "image");			img.setAttribute("x", 0);			img.setAttribute("y", 0);			img.setAttribute("width",  f.width .toFixed(8));			img.setAttribute("height", f.height.toFixed(8));			img.setAttributeNS(dojox.gfx.svg.xmlns.xlink, "href", f.src);			fill.appendChild(img);		}else{			fill.setAttribute("gradientUnits", "userSpaceOnUse");			fill.setAttributeNS(svgns, "gradientUnits", "userSpaceOnUse");			for(var i = 0; i < f.colors.length; ++i){				f.colors[i].color = dojox.gfx.normalizeColor(f.colors[i].color);				var t = document.createElementNS(svgns, "stop");				t.setAttribute("offset",     f.colors[i].offset.toFixed(8));				t.setAttribute("stop-color", f.colors[i].color.toCss());				t.setAttribute("stop-opacity", f.colors[i].color.a);				fill.appendChild(t);			}		}		this.rawNode.setAttribute("fill", "url(#" + fill.getAttribute("id") +")");		this.rawNode.removeAttribute("fill-opacity");		return fill;	},
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/12b20a8ecbb2dbee914cb6c9c0083dfe673ebddd/svg.js/clean/gfx/svg.js