Bug 190141 Could not view img with height/width in doc
Build ID: RC0-0518 Steps To Reproduce: 1. create a report design 2. insert a text with <IMG src="C:\WINDOWS\Blue Lace 16.bmp" height="100"> result: view as html or pdf is ok view as doc, exception occurs: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report; nested exception is: java.lang.IllegalArgumentException: "fromUnits"must be one of the absolute units(CM, IN, MM, PT). More information: It should accept the default unit in html the whole report will fail once this exception occurs. Appreciate it could be fixed as soon as possible. Thanks!
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/HTML2Content.java
ILabelContent label = new LabelContent((ReportContent)content.getReportContent());
			addChild(content, label);
			label.setText("\n"); 
			StyleDeclaration inlineStyle = new StyleDeclaration(content.getCSSEngine());
			inlineStyle.setProperty( IStyle.STYLE_DISPLAY, CSSValueConstants.INLINE_VALUE );
			label.setInlineStyle( inlineStyle );
		}
		else if (tagName.toLowerCase().equals("li") 
				&& ele.getParentNode().getNodeType() == Node.ELEMENT_NODE)
		{
			StyleDeclaration style = new StyleDeclaration(content.getCSSEngine());
			style.setProperty( IStyle.STYLE_DISPLAY, CSSValueConstants.BLOCK_VALUE );
			style.setProperty( IStyle.STYLE_VERTICAL_ALIGN, CSSValueConstants.MIDDLE_VALUE );
			IContainerContent container = new ContainerContent((ReportContent)content.getReportContent());
			container.setInlineStyle(style);
			addChild(content, container);
			handleStyle(ele, cssStyles, container);
			
			
			
			style = new StyleDeclaration(content.getCSSEngine());
			style.setProperty( IStyle.STYLE_DISPLAY, CSSValueConstants.INLINE_VALUE );
			style.setProperty( IStyle.STYLE_VERTICAL_ALIGN, CSSValueConstants.TOP_VALUE );
			
			IContainerContent orderContainer = new ContainerContent((ReportContent)content.getReportContent());
			CSSValue fontSizeValue = content.getComputedStyle( ).getProperty( IStyle.STYLE_FONT_SIZE ); 
			orderContainer.setWidth( new DimensionType(2.1*PropertyUtil.getDimensionValue( fontSizeValue )/1000.0, EngineIRConstants.UNITS_PT) );
			orderContainer.setInlineStyle( style );
			addChild(container, orderContainer);