fTextLayout.setStyle(sr, sr.start, sr.start + sr.length - 1);
if (sr.fontStyle == SWT.BOLD) fTextLayout.setStyle(fBoldStyle, sr.start, sr.start + sr.length - 1);
	protected void pack() {		TextPresentation presentation= new TextPresentation();		HTML2TextReader reader= new HTML2TextReader(new StringReader(fInputText), presentation);		String text;		try {			text= reader.getString();		} catch (IOException e) {			text= ""; //$NON-NLS-1$		}				fTextLayout.setText(text);		Iterator iter= presentation.getAllStyleRangeIterator();		while (iter.hasNext()) {			StyleRange sr= (StyleRange)iter.next();			fTextLayout.setStyle(sr, sr.start, sr.start + sr.length - 1);		}		Font font= fBrowser.getFont();		fTextLayout.setFont(font);		fTextLayout.setWidth(-1);		Rectangle bounds= fTextLayout.getBounds();				bounds.width= bounds.width + 10; 		bounds.height= bounds.height + 10; 				if (fStatusFieldText != null) {			fTextLayout.setText(fStatusFieldText);			Rectangle statusBounds= fTextLayout.getBounds();			bounds.width= Math.max(statusBounds.width, bounds.width);			bounds.height= Math.max(statusBounds.height, bounds.height);		}				// Apply size constraints		bounds.width= Math.min(fMaxWidth, bounds.width);		bounds.height= Math.min(fMaxHeight, bounds.height);				// Ensure minimal size		bounds.width= Math.max(MIN_WIDTH, bounds.width);		bounds.height= Math.max(MIN_HEIGHT, bounds.height);				setSize(bounds.width, bounds.height);	}