[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: More fixes for DefaultStyledDocument
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] Patch: More fixes for DefaultStyledDocument |
Date: |
Thu, 22 Dec 2005 15:03:50 -0500 |
Here come some more changes for DefaultStyledDocument. These fix an NPE
and improve performance.
2005-12-22 Anthony Balkissoon <address@hidden>
* javax/swing/text/DefaultStyledDocument.java:
(ElementBuffer.insertContentTag): Get the attributes from the tag.
Return early if direction is JoinNextDirection but there is no next
Element.
(createDefaultRoot): Don't call createBranchElement here just
instantiate a new BranchElement.
(insertUpdate): Removed unneeded fields newElement, newElement2. When
building the buffer ElementSpecs, no need to check each time if we
should join to the previous or next Element, just check the first and
last ElementSpecs after the buffer has been completely built.
--Tony
DefaultStyledDocumentFixes4.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: More fixes for DefaultStyledDocument,
Anthony Balkissoon <=