]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Small improvements. Fix for missing image areas.
authorJeremias Maerki <jeremias@apache.org>
Tue, 26 Jul 2005 13:25:15 +0000 (13:25 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 26 Jul 2005 13:25:15 +0000 (13:25 +0000)
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

index 60b4ee4a88d91a3901751195d2eed4cb15837cdc..e072fade345e2ac00274c1651914060e66504f60 100644 (file)
@@ -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();