]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Third phase of performance improvement.
authorFinn Bock <bckfnn@apache.org>
Tue, 19 Oct 2004 21:49:43 +0000 (21:49 +0000)
committerFinn Bock <bckfnn@apache.org>
Tue, 19 Oct 2004 21:49:43 +0000 (21:49 +0000)
- Use new CommonAbsolutePosition.
PR: 31699

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198073 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/PropertyManager.java

index b39fc42bc9fa18d48258a57abcc79bb0d8fe8ae1..c2cb06343fa88ec34d7d6fcfd7e8ebdb1bb353eb 100644 (file)
@@ -380,13 +380,7 @@ public class PropertyManager implements Constants {
      * @return a AbsolutePositionProps object
      */
     public CommonAbsolutePosition getAbsolutePositionProps() {
-        CommonAbsolutePosition props = new CommonAbsolutePosition();
-        props.absolutePosition =
-          this.propertyList.get(PR_ABSOLUTE_POSITION).getEnum();
-        props.top = this.propertyList.get(PR_TOP).getLength().getValue();
-        props.bottom = this.propertyList.get(PR_BOTTOM).getLength().getValue();
-        props.left = this.propertyList.get(PR_LEFT).getLength().getValue();
-        props.right = this.propertyList.get(PR_RIGHT).getLength().getValue();
+        CommonAbsolutePosition props = new CommonAbsolutePosition(propertyList);
         return props;
     }