From: Glen Mazza Date: Sun, 14 Sep 2003 19:32:44 +0000 (+0000) Subject: Change to have the fo:region-body display "on top" in cases of overlap with the other... X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1098 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3bb144d8740599c1a41ca5cef06d519e726822d5;p=xmlgraphics-fop.git Change to have the fo:region-body display "on top" in cases of overlap with the other fo:regions. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196908 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java index 3609fbeeb..52e07a71e 100644 --- a/src/java/org/apache/fop/render/AbstractRenderer.java +++ b/src/java/org/apache/fop/render/AbstractRenderer.java @@ -276,17 +276,21 @@ public abstract class AbstractRenderer extends AbstractLogEnabled * @param page The page whos page areas are to be rendered */ protected void renderPageAreas(Page page) { + /* Spec does not appear to specify whether fo:region-body should + appear above or below side regions in cases of overlap. FOP + decision is to have fo:region-body on top, hence it is rendered + last here. */ RegionViewport viewport; viewport = page.getRegion(Region.BEFORE_CODE); renderRegionViewport(viewport); viewport = page.getRegion(Region.START_CODE); renderRegionViewport(viewport); - viewport = page.getRegion(Region.BODY_CODE); - renderRegionViewport(viewport); viewport = page.getRegion(Region.END_CODE); renderRegionViewport(viewport); viewport = page.getRegion(Region.AFTER_CODE); renderRegionViewport(viewport); + viewport = page.getRegion(Region.BODY_CODE); + renderRegionViewport(viewport); } /**