From 6c1dcb8a76af7fd9dd3654cd81ba9d2e5ea7374a Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Sun, 25 Jul 2004 01:00:35 +0000 Subject: [PATCH] reverted change in PropertySets; unnecessary. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197836 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/PropertySets.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/java/org/apache/fop/fo/PropertySets.java b/src/java/org/apache/fop/fo/PropertySets.java index d959e2997..8f4c12ef4 100644 --- a/src/java/org/apache/fop/fo/PropertySets.java +++ b/src/java/org/apache/fop/fo/PropertySets.java @@ -969,7 +969,7 @@ public class PropertySets { - // Merge the attributes from the child nodes into the parent. + // Merge the attributes from the children into the parent. for (boolean dirty = true; dirty; ) { dirty = false; for (int i = 1; i < elements.length; i++) { @@ -1017,7 +1017,7 @@ public class PropertySets { BitSet relevant = new BitSet(); BitSet valid = new BitSet(); int elementId; - ArrayList childNodes; + ArrayList children; Element(int elementId) { this.elementId = elementId; @@ -1043,14 +1043,14 @@ public class PropertySets { * Add a single fo element as a content child. */ public void addContent(int elementId) { - if (childNodes == null) { - childNodes = new ArrayList(); + if (children == null) { + children = new ArrayList(); } - childNodes.add(elements[elementId]); + children.add(elements[elementId]); } /** - * Add a set of fo elements as content child nodes. + * Add a set of fo elements as content children. */ public void addContent(BitSet elements) { for (int i = 0; i < elements.size(); i++) { @@ -1061,16 +1061,16 @@ public class PropertySets { } /** - * Merge the properties from the child nodes into the set of valid + * Merge the properties from the children into the set of valid * properties. Return true if at least one property could be added. */ public boolean merge() { - if (childNodes == null) { + if (children == null) { return false; } boolean dirty = false; - for (int i = 0; i < childNodes.size(); i++) { - Element child = (Element) childNodes.get(i); + for (int i = 0; i < children.size(); i++) { + Element child = (Element) children.get(i); BitSet childValid = child.valid; int n = childValid.length(); for (int j = 0; j < n; j++) { -- 2.39.5