From: Jeremias Maerki Date: Tue, 25 Jan 2005 12:29:57 +0000 (+0000) Subject: Removed unnecessary parameter X-Git-Tag: Root_Temp_KnuthStylePageBreaking~192 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9ac7fb576b1bccf85d564f4f024ec9f117ae70a;p=xmlgraphics-fop.git Removed unnecessary parameter git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198315 13f79535-47bb-0310-9956-ffa450edef68 --- 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();