aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-20 13:19:25 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-20 13:19:25 +0000
commit3f8fd79510740cd0ab03493f58b8fdc9009beda0 (patch)
treedc0949b9eb04a556b8440354cccd0db917ca1d1f /src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
parentd6a9ce7871ce451533b59b8b83eea09de61c1318 (diff)
downloadxmlgraphics-fop-3f8fd79510740cd0ab03493f58b8fdc9009beda0.tar.gz
xmlgraphics-fop-3f8fd79510740cd0ab03493f58b8fdc9009beda0.zip
Fourth phase of performance improvement.
- Get rid of calls to FObj.getProperty() and its friends. Replace them with the property getters on the FO nodes. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198086 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java b/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
index d61d7f4d7..561ff085b 100644
--- a/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
@@ -225,7 +225,7 @@ public class LeafNodeLayoutManager extends AbstractLayoutManager {
* @param context the layout context for adding the area
*/
public void addAreas(PositionIterator posIter, LayoutContext context) {
- addID();
+ addId();
offsetArea(context);
widthAdjustArea(context);
@@ -236,6 +236,10 @@ public class LeafNodeLayoutManager extends AbstractLayoutManager {
}
}
+ protected void addId() {
+ // Do nothing here, overriden in subclasses that has a 'id' property.
+ }
+
/**
* Offset this area.
* Offset the inline area in the bpd direction when adding the