Bug 198839 Hide element on master page works only for PDF output
1. Insert any element (grid, label, image, text) in the header or footer of the master page. 2. Use the Visibility property to hide the element for all outputs. Expected result: Element does not appear in any of the output formats. Actual result: The element is hidden only in PDF.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/ReportDocumentBuilder.java
{
					return offset;
				}
				return docExt.getPrevious( );
			}
			return -1;
		}
		private InstanceIndex[] createInstanceIndexes( IContent content )
		{
			LinkedList indexes = new LinkedList( );
			while ( content != null
					&& content != content.getReportContent( ).getRoot( ) )
			{
				InstanceID id = content.getInstanceID( );
				long offset = getContentIndex( content );
				indexes.addFirst( new InstanceIndex( id, offset ) );
				content = (IContent) content.getParent( );
			}
			return (InstanceIndex[]) indexes.toArray( new InstanceIndex[]{} );
		}
		private PageSection createPageSection( IContent start, IContent end )
		{
			PageSection section = new PageSection( );
			section.starts = createInstanceIndexes( start );
			section.ends = createInstanceIndexes( end );
			return section;
		}
		public void onPage( long pageNumber, Object context )
		{
			if ( context instanceof HTMLLayoutContext )