Bug 313646 SVG chart using pattern as color or background does not work when preview in firefox for the first time.[13]
description: SVG chart using pattern as color or background does not work when preview in firefox for the first time. build id: 2.6.0 v20100520-0630 steps to reproduce: 1.New a SVG chart using pattern as color or background color. 2.Preview in firefox. Actual result: The pattern does not work when you first preview in firefox.
chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGGraphics2D.java
currentElement.setAttribute( "x", toString( arg1 ) ); 
		currentElement.setAttribute( "y", toString( arg2 ) ); 
		currentElement.setAttribute( "width", toString( arg3 ) ); 
		currentElement.setAttribute( "height", toString( arg4 ) ); 
		if ( clip != null )
			currentElement.setAttribute( "clip-path", "url(#clip" + clip.hashCode( ) + ")" ); 
		appendChild( currentElement );
		return true;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see java.awt.Graphics#drawImage(java.awt.Image, int, int,
	 * java.awt.Color, java.awt.image.ImageObserver)
	 */
	public boolean drawImage( Image arg0, int arg1, int arg2, Color arg3,
			ImageObserver arg4 )
	{
		SVGImage image = (SVGImage) arg0;
		image.getUrl( );
		Element currentElement = createElement( "image" ); 
		currentElement.setAttribute( "x", toString( arg1 ) ); 
		currentElement.setAttribute( "y", toString( arg2 ) ); 
		currentElement.setAttribute( "width", Integer.toString( arg0.getWidth( arg4 ) ) ); 
		currentElement.setAttribute( "height", Integer.toString( arg0.getHeight( arg4 ) ) ); 
		currentElement.setAttribute( "fill", serializeToString( arg3 ) ); 
		if ( clip != null )
			currentElement.setAttribute( "clip-path", "url(#clip" + clip.hashCode( ) + ")" ); 
		appendChild( currentElement );
		return true;