diff options
author | Finn Bock <bckfnn@apache.org> | 2004-10-20 11:55:32 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-10-20 11:55:32 +0000 |
commit | d5a7a89f11b2d6a4251cf9826d8cc71c1574fe3e (patch) | |
tree | a9bf86a3ca8d674f0ecaa009417a12992500bd66 /src/java/org/apache/fop/fo/pagination | |
parent | abf59e19e944ece15e8daa8c46f25e45c6f614bf (diff) | |
download | xmlgraphics-fop-d5a7a89f11b2d6a4251cf9826d8cc71c1574fe3e.tar.gz xmlgraphics-fop-d5a7a89f11b2d6a4251cf9826d8cc71c1574fe3e.zip |
Third phase of performance improvement.
- Use the new CommonXXX fields.
PR: 31699
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198078 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/RegionBody.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/RegionBody.java b/src/java/org/apache/fop/fo/pagination/RegionBody.java index 4b732fb67..483c28b0c 100644 --- a/src/java/org/apache/fop/fo/pagination/RegionBody.java +++ b/src/java/org/apache/fop/fo/pagination/RegionBody.java @@ -94,10 +94,13 @@ public class RegionBody extends Region { * writing-mode on the page (not on the region-body!). If that's not * set but indent is explicitly set, it will return that. */ - CommonMarginBlock mProps = propMgr.getMarginProps(); - return new Rectangle(mProps.startIndent, mProps.spaceBefore, - reldims.ipd - mProps.startIndent - mProps.endIndent, - reldims.bpd - mProps.spaceBefore - mProps.spaceAfter); + int start = commonMarginBlock.startIndent.getValue(); + int end = commonMarginBlock.endIndent.getValue(); + int before = commonMarginBlock.spaceBefore.getOptimum().getLength().getValue(); + int after = commonMarginBlock.spaceAfter.getOptimum().getLength().getValue(); + return new Rectangle(start, before, + reldims.ipd - start - end, + reldims.bpd - before - after); } /** |