summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-20 13:17:03 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-20 13:17:03 +0000
commitd6a9ce7871ce451533b59b8b83eea09de61c1318 (patch)
tree4b21e57219a0744b18a277b111697cb72edc1ab5 /src
parente3eed68e9730df860773d6320fc256ec29fb0855 (diff)
downloadxmlgraphics-fop-d6a9ce7871ce451533b59b8b83eea09de61c1318.tar.gz
xmlgraphics-fop-d6a9ce7871ce451533b59b8b83eea09de61c1318.zip
Fourth phase of performance improvement.
- Set a better base for leader-length percentages. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198085 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fo/FOPropertyMapping.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java
index 30aa0fa39..1a04b6631 100644
--- a/src/java/org/apache/fop/fo/FOPropertyMapping.java
+++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java
@@ -1822,19 +1822,19 @@ public class FOPropertyMapping implements Constants {
sub = new LengthProperty.Maker(CP_MINIMUM);
sub.setDefault("0pt");
- sub.setPercentBase(LengthBase.CONTAINING_BOX);
+ sub.setPercentBase(LengthBase.BLOCK_WIDTH);
sub.setByShorthand(true);
m.addSubpropMaker(sub);
sub = new LengthProperty.Maker(CP_OPTIMUM);
sub.setDefault("12.0pt");
- sub.setPercentBase(LengthBase.CONTAINING_BOX);
+ sub.setPercentBase(LengthBase.BLOCK_WIDTH);
sub.setByShorthand(true);
m.addSubpropMaker(sub);
sub = new LengthProperty.Maker(CP_MAXIMUM);
sub.setDefault("100%", true);
- sub.setPercentBase(LengthBase.CONTAINING_BOX);
+ sub.setPercentBase(LengthBase.BLOCK_WIDTH);
sub.setByShorthand(true);
m.addSubpropMaker(sub);
addPropertyMaker("leader-length", m);