aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/xml
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-02-08 15:42:03 +0000
committerJeremias Maerki <jeremias@apache.org>2006-02-08 15:42:03 +0000
commit3606df4b663e7b7189a625efeec89974eed5c41d (patch)
tree5499b0e48df7522aed1446436db5c27f96e73ca9 /src/java/org/apache/fop/render/xml
parenteba245a39c726af49a85cd16f876ae6c63bd2e7e (diff)
downloadxmlgraphics-fop-3606df4b663e7b7189a625efeec89974eed5c41d.tar.gz
xmlgraphics-fop-3606df4b663e7b7189a625efeec89974eed5c41d.zip
Added missing values in area tree XML for PageViewport (simple-page-master-name and blank).
Performance improvement of about 10% for a simple document inside the AreaTreeParser (Hotspot: setTraits()) Changed the way that trait info lookup is done in Trait.java. Should be just a little faster now. Unused traits disabled. Commented unused methods. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375983 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/xml')
-rw-r--r--src/java/org/apache/fop/render/xml/XMLRenderer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/xml/XMLRenderer.java b/src/java/org/apache/fop/render/xml/XMLRenderer.java
index 1e41defd8..9ef12c4c4 100644
--- a/src/java/org/apache/fop/render/xml/XMLRenderer.java
+++ b/src/java/org/apache/fop/render/xml/XMLRenderer.java
@@ -454,6 +454,10 @@ public class XMLRenderer extends PrintRenderer {
addAttribute("bounds", page.getViewArea());
addAttribute("nr", page.getPageNumber());
addAttribute("formatted-nr", page.getPageNumberString());
+ addAttribute("simple-page-master-name", page.getSimplePageMasterName());
+ if (page.isBlank()) {
+ addAttribute("blank", "true");
+ }
startElement("pageViewport", atts);
startElement("page");