diff options
author | Steve Coffman <gears@apache.org> | 2001-08-01 22:12:54 +0000 |
---|---|---|
committer | Steve Coffman <gears@apache.org> | 2001-08-01 22:12:54 +0000 |
commit | eeb2adff569057e2b6deb089ba9dffb21fb3a00b (patch) | |
tree | c8968573d60b496aa17befb1afbec840ddc1b355 /src/org/apache/fop/fo/pagination/PageSequence.java | |
parent | a5bc30d4a3977d60f0e70c2792bc4e3a37913a3d (diff) | |
download | xmlgraphics-fop-eeb2adff569057e2b6deb089ba9dffb21fb3a00b.tar.gz xmlgraphics-fop-eeb2adff569057e2b6deb089ba9dffb21fb3a00b.zip |
Adds Mark Lillywhite's performance and memory patch in all it's glory.
Unfortunately breaks marker support.
(AreaTree getNextPage and getPreviousPage return the current page)
XSL-FO with markers is not a good idea until it is fixed.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194385 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/pagination/PageSequence.java')
-rw-r--r-- | src/org/apache/fop/fo/pagination/PageSequence.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/org/apache/fop/fo/pagination/PageSequence.java b/src/org/apache/fop/fo/pagination/PageSequence.java index 0c9beaca2..0020836e8 100644 --- a/src/org/apache/fop/fo/pagination/PageSequence.java +++ b/src/org/apache/fop/fo/pagination/PageSequence.java @@ -4,6 +4,11 @@ * For details on use and redistribution please refer to the * LICENSE file included with these sources. */ +/* + Modified by Mark Lillywhite mark-fop@inomial.com. Does not add + itself to the root any more. Does not hang onto currentPage + pointer, which caused GC issues. + */ package org.apache.fop.fo.pagination; @@ -137,7 +142,7 @@ public class PageSequence extends FObj { if (parent.getName().equals("fo:root")) { this.root = (Root)parent; - this.root.addPageSequence(this); + // this.root.addPageSequence(this); } else { throw new FOPException("page-sequence must be child of root, not " + parent.getName()); @@ -206,6 +211,7 @@ public class PageSequence extends FObj { * Runs the formatting of this page sequence into the given area tree */ public void format(AreaTree areaTree) throws FOPException { + Status status = new Status(Status.OK); this.layoutMasterSet.resetPageMasters(); @@ -301,6 +307,8 @@ public class PageSequence extends FObj { // handle the 'force-page-count' forcePage(areaTree, firstAvailPageNumber); + currentPage = null; + MessageHandler.logln(""); } |