[cp-patches] FYI: HTML fixes

Roman Kennke roman.kennke at aicas.com
Wed Dec 6 19:37:05 UTC 2006

This fixes some minor stability issues with the HTML renderer. Most
importantly it makes the renderer handle misplaced td th and tr tags
handle more gracefully. Also, this fixes the alignment of blocks.

This should be OK to go into the release branch, though not strictly

2006-12-06  Roman Kennke  <kennke at aicas.com>

	* javax/swing/text/html/BlockView.java
	(getAlignment): Align blocks horizontally by the superclass.
	* javax/swing/text/html/HTMLEditorKit.java
	(HTMLFactory.create): Replace equals comparison by == for efficiency.
	Add mapping for misplaced tr, td and th tags. Include object mapping.
	* javax/swing/text/html/TableView.java
	(RowView.replace): Invalidate grid early.
	(gridValid): Initialize with false.
	(create): Only create RowView and CellView for correctly placed
	tags. Avoid unnecessary casts.
	(getAlignment): Removed.
	(replace): Invalidate grid early.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 11389 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20061206/fcd1d0eb/patch-0001.bin

More information about the Classpath-patches mailing list