From d9ac7fb576b1bccf85d564f4f024ec9f117ae70a Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 25 Jan 2005 12:29:57 +0000 Subject: [PATCH] Removed unnecessary parameter git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198315 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/layoutmgr/BlockContainerLayoutManager.java | 2 +- src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java | 4 ++-- src/java/org/apache/fop/layoutmgr/TraitSetter.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java index d6826a694..68517a1a4 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java @@ -481,7 +481,7 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager { TraitSetter.addBorders(viewportBlockArea, fobj.getCommonBorderPaddingBackground()); TraitSetter.addBackground(viewportBlockArea, fobj.getCommonBorderPaddingBackground()); - TraitSetter.addMargins(viewportBlockArea, null, + TraitSetter.addMargins(viewportBlockArea, fobj.getCommonBorderPaddingBackground(), fobj.getCommonMarginBlock()); diff --git a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java index 7d8c73d9e..e6949a164 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java @@ -336,14 +336,14 @@ public class BlockLayoutManager extends BlockStackingLayoutManager { curBlockArea = new Block(); // Must get dimensions from parent area - Area parentArea = parentLM.getParentArea(curBlockArea); + //Area parentArea = parentLM.getParentArea(curBlockArea); // set traits TraitSetter.addBorders(curBlockArea, fobj.getCommonBorderPaddingBackground()); TraitSetter.addBackground(curBlockArea, fobj.getCommonBorderPaddingBackground()); - TraitSetter.addMargins(curBlockArea, parentArea, + TraitSetter.addMargins(curBlockArea, fobj.getCommonBorderPaddingBackground(), fobj.getCommonMarginBlock()); TraitSetter.addBreaks(curBlockArea, diff --git a/src/java/org/apache/fop/layoutmgr/TraitSetter.java b/src/java/org/apache/fop/layoutmgr/TraitSetter.java index dd0abea60..927da246b 100644 --- a/src/java/org/apache/fop/layoutmgr/TraitSetter.java +++ b/src/java/org/apache/fop/layoutmgr/TraitSetter.java @@ -226,7 +226,7 @@ public class TraitSetter { * @param bpProps the border, padding and background properties * @param marginProps the margin properties. */ - public static void addMargins(Area area, Area parentArea, + public static void addMargins(Area area, CommonBorderPaddingBackground bpProps, CommonMarginBlock marginProps) { int startIndent = marginProps.startIndent.getValue(); -- 2.39.5