aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-02-08 15:42:03 +0000
committerJeremias Maerki <jeremias@apache.org>2006-02-08 15:42:03 +0000
commit3606df4b663e7b7189a625efeec89974eed5c41d (patch)
tree5499b0e48df7522aed1446436db5c27f96e73ca9 /src/java/org/apache/fop/layoutmgr
parenteba245a39c726af49a85cd16f876ae6c63bd2e7e (diff)
downloadxmlgraphics-fop-3606df4b663e7b7189a625efeec89974eed5c41d.tar.gz
xmlgraphics-fop-3606df4b663e7b7189a625efeec89974eed5c41d.zip
Added missing values in area tree XML for PageViewport (simple-page-master-name and blank).
Performance improvement of about 10% for a simple document inside the AreaTreeParser (Hotspot: setTraits()) Changed the way that trait info lookup is done in Trait.java. Should be just a little faster now. Unused traits disabled. Commented unused methods. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375983 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr')
-rw-r--r--src/java/org/apache/fop/layoutmgr/TraitSetter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/TraitSetter.java b/src/java/org/apache/fop/layoutmgr/TraitSetter.java
index e8790173b..78d353093 100644
--- a/src/java/org/apache/fop/layoutmgr/TraitSetter.java
+++ b/src/java/org/apache/fop/layoutmgr/TraitSetter.java
@@ -456,8 +456,10 @@ public class TraitSetter {
* @param breakAfter the value for break-after
*/
public static void addBreaks(Area area, int breakBefore, int breakAfter) {
+ /* Currently disabled as these traits are never used by the renderers
area.addTrait(Trait.BREAK_AFTER, new Integer(breakAfter));
area.addTrait(Trait.BREAK_BEFORE, new Integer(breakBefore));
+ */
}
/**