From c7c6ba4f035d3f099ea3408431d3290b8bc7aae6 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 2 Jan 2009 16:08:24 +0000 Subject: [PATCH] Bugzilla #45306: Fixed fo:instream-foreign-object inside fo:marker. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@730764 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/FObj.java | 6 +++--- .../org/apache/fop/fo/flow/AbstractRetrieveMarker.java | 8 +++++--- status.xml | 3 +++ test/layoutengine/disabled-testcases.xml | 5 ----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/java/org/apache/fop/fo/FObj.java b/src/java/org/apache/fop/fo/FObj.java index e0624df69..55844e6db 100644 --- a/src/java/org/apache/fop/fo/FObj.java +++ b/src/java/org/apache/fop/fo/FObj.java @@ -215,7 +215,7 @@ public abstract class FObj extends FONode implements Constants { * @param parent the (cloned) parent node * @throws FOPException when the child could not be added to the parent */ - protected static void addChildTo(FONode child, FObj parent) + protected static void addChildTo(FONode child, FONode parent) throws FOPException { parent.addChildNode(child); } @@ -573,11 +573,11 @@ public abstract class FObj extends FONode implements Constants { } } - /** @return true if this FObj has extension attachments */ + /** @return true if this FObj has extension attachments */ public boolean hasExtensionAttachments() { return extensionAttachments != null; } - + /** * Adds a foreign attribute to this FObj. * @param attributeName the attribute name as a QName instance diff --git a/src/java/org/apache/fop/fo/flow/AbstractRetrieveMarker.java b/src/java/org/apache/fop/fo/flow/AbstractRetrieveMarker.java index ebba1fda5..1432c9381 100644 --- a/src/java/org/apache/fop/fo/flow/AbstractRetrieveMarker.java +++ b/src/java/org/apache/fop/fo/flow/AbstractRetrieveMarker.java @@ -30,8 +30,8 @@ import org.apache.fop.fo.FObj; import org.apache.fop.fo.FObjMixed; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.ValidationException; +import org.apache.fop.fo.XMLObj; import org.apache.fop.fo.flow.table.Table; -import org.apache.fop.fo.flow.table.TableFObj; /** * Abstract base class for the @@ -102,7 +102,7 @@ public abstract class AbstractRetrieveMarker extends FObjMixed { getLocator(), pList, newPropertyList); - addChildTo(newChild, (FObj) newParent); + addChildTo(newChild, newParent); if (newChild.getNameId() == FO_TABLE) { Table t = (Table) child; cloneSubtree(t.getColumns().iterator(), @@ -117,7 +117,9 @@ public abstract class AbstractRetrieveMarker extends FObjMixed { } else if (child instanceof FOText) { FOText ft = (FOText) newChild; ft.bind(parentPropertyList); - addChildTo(newChild, (FObj) newParent); + addChildTo(newChild, newParent); + } else if (child instanceof XMLObj) { + addChildTo(newChild, newParent); } // trigger end-of-node white-space handling diff --git a/status.xml b/status.xml index 6d9373a9f..e6362fb7d 100644 --- a/status.xml +++ b/status.xml @@ -53,6 +53,9 @@ + + Fixed fo:instream-foreign-object inside fo:marker. + Fixed black backgrounds occurring for transparent images in PCL output. diff --git a/test/layoutengine/disabled-testcases.xml b/test/layoutengine/disabled-testcases.xml index 7bf441d5b..ca05b156b 100644 --- a/test/layoutengine/disabled-testcases.xml +++ b/test/layoutengine/disabled-testcases.xml @@ -223,9 +223,4 @@ relaxed validation must be switched on, otherwise there is a validation exception. - - Instream foreign objects in markers - marker_instream-foreign-object.xml - Foreign objects in markers do not work. - -- 2.39.5