aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/afp/AFPSVGHandler.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-12-08 11:30:11 +0000
committerJeremias Maerki <jeremias@apache.org>2008-12-08 11:30:11 +0000
commit607aeaa986fbf0ecbc55684dad0b3286613f56dd (patch)
tree2bcf43c318379e749e489ded328ed5e8995769fe /src/java/org/apache/fop/render/afp/AFPSVGHandler.java
parentf455ebac165a6b9fd8c0f58e6ddc999b7e08c3e5 (diff)
downloadxmlgraphics-fop-607aeaa986fbf0ecbc55684dad0b3286613f56dd.tar.gz
xmlgraphics-fop-607aeaa986fbf0ecbc55684dad0b3286613f56dd.zip
Batik's DOMUtilities.deepCloneDocument() doesn't propagate the document URI which makes relative image URIs fail. Fixes one of our unit tests.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@724310 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/afp/AFPSVGHandler.java')
-rw-r--r--src/java/org/apache/fop/render/afp/AFPSVGHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPSVGHandler.java b/src/java/org/apache/fop/render/afp/AFPSVGHandler.java
index ca64d6bc2..161217a54 100644
--- a/src/java/org/apache/fop/render/afp/AFPSVGHandler.java
+++ b/src/java/org/apache/fop/render/afp/AFPSVGHandler.java
@@ -28,7 +28,6 @@ import org.w3c.dom.Document;
import org.apache.batik.bridge.BridgeContext;
import org.apache.batik.dom.svg.SVGDOMImplementation;
-import org.apache.batik.dom.util.DOMUtilities;
import org.apache.batik.gvt.GraphicsNode;
import org.apache.xmlgraphics.image.loader.ImageManager;
@@ -46,6 +45,7 @@ import org.apache.fop.afp.AFPUnitConverter;
import org.apache.fop.afp.svg.AFPBridgeContext;
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.fonts.FontInfo;
+import org.apache.fop.image.loader.batik.BatikUtil;
import org.apache.fop.image.loader.batik.Graphics2DImagePainterImpl;
import org.apache.fop.render.AbstractGenericSVGHandler;
import org.apache.fop.render.Renderer;
@@ -113,7 +113,7 @@ public class AFPSVGHandler extends AbstractGenericSVGHandler {
//Cloning SVG DOM as Batik attaches non-thread-safe facilities (like the CSS engine)
//to it.
- Document clonedDoc = DOMUtilities.deepCloneDocument(doc, doc.getImplementation());
+ Document clonedDoc = BatikUtil.cloneSVGDocument(doc);
// Build the SVG DOM and provide the painter with it
GraphicsNode root = buildGraphicsNode(userAgent, bridgeContext, clonedDoc);