From 2393e093c86a66d9e30d12ab27b4e5429f753979 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 26 Jul 2005 13:25:15 +0000 Subject: [PATCH] Small improvements. Fix for missing image areas. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225302 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/xml/XMLRenderer.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/fop/render/xml/XMLRenderer.java b/src/java/org/apache/fop/render/xml/XMLRenderer.java index 60b4ee4a8..e072fade3 100644 --- a/src/java/org/apache/fop/render/xml/XMLRenderer.java +++ b/src/java/org/apache/fop/render/xml/XMLRenderer.java @@ -524,19 +524,21 @@ public class XMLRenderer extends AbstractRenderer { protected void renderViewport(Viewport viewport) { atts.clear(); addAreaAttributes(viewport); + addTraitAttributes(viewport); startElement("viewport", atts); super.renderViewport(viewport); endElement("viewport"); } /** - * Renders an image - * @param image the image + * @see org.apache.fop.render.AbstractRenderer */ - public void renderImage(Image image) { + public void renderImage(Image image, Rectangle2D pos) { atts.clear(); addAreaAttributes(image); + addTraitAttributes(image); addAttribute("url", image.getURL()); + addAttribute("pos", pos); startElement("image", atts); endElement("image"); } @@ -557,6 +559,7 @@ public class XMLRenderer extends AbstractRenderer { public void renderForeignObject(ForeignObject fo, Rectangle2D pos) { atts.clear(); addAreaAttributes(fo); + addTraitAttributes(fo); startElement("foreignObject", atts); Document doc = fo.getDocument(); String ns = fo.getNameSpace(); -- 2.39.5