From: Peter Bernard West Date: Tue, 5 Nov 2002 14:28:53 +0000 (+0000) Subject: Removed event field. N.B. Important that this not be restored X-Git-Tag: Alt-Design_pre_src-java-org~178 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c5a8ae459d9b31ec88b8e676e3c3bb814011b0f2;p=xmlgraphics-fop.git Removed event field. N.B. Important that this not be restored without ensuring subclasses handle it correctly. Removed foTree and parent fields. Rely on underlying tree and parent fields. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195427 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/fo/FONode.java b/src/org/apache/fop/fo/FONode.java index 95713e0b0..b11aa51f9 100644 --- a/src/org/apache/fop/fo/FONode.java +++ b/src/org/apache/fop/fo/FONode.java @@ -52,12 +52,6 @@ public class FONode extends Node{ private static final String tag = "$Name$"; private static final String revision = "$Revision$"; - /** The FOTree of which this node is a member. */ - protected FOTree foTree; - /** The parent FONode of this node. */ - protected FONode parent; - /** The XMLEvent which triggered this node. */ - protected FoXMLEvent event; /** The buffer from which parser events are drawn. */ protected SyncedFoXmlEventsBuffer xmlevents; /** The namespaces object associated with xmlevents. */ @@ -139,17 +133,12 @@ public class FONode extends Node{ throws TreeException, FOPException, PropertyException { super(foTree, parent); - this.foTree = foTree; this.type = type; - this.parent = parent; - this.event = event; this.attrSet = attrSet; this.sparsePropsMap = sparsePropsMap; this.sparseIndices = sparseIndices; this.numProps = numProps; attrBitSet = FOPropertySets.getAttrROBitSet(attrSet); - //inheritedBitSet = FOPropertySets.getInheritedROBitSet(attrSet); - //nonInheritedBitSet = FOPropertySets.getNonInheritedROBitSet(attrSet); xmlevents = foTree.xmlevents; namespaces = xmlevents.getNamespaces(); exprParser = foTree.exprParser; @@ -240,7 +229,7 @@ public class FONode extends Node{ * @return the FOTree. */ public FOTree getFOTree() { - return foTree; + return (FOTree)tree; } /** @@ -283,7 +272,7 @@ public class FONode extends Node{ { if (parent != null) return IndirectValue.adjustedPropertyValue - (parent.getNearestSpecifiedValue(sourceProperty)); + (((FONode)parent).getNearestSpecifiedValue(sourceProperty)); else // root return IndirectValue.adjustedPropertyValue (PropertyConsts.pconsts.getInitialValue(sourceProperty)); @@ -312,7 +301,7 @@ public class FONode extends Node{ return IndirectValue.adjustedPropertyValue(propertySet[property]); if (parent != null) return IndirectValue.adjustedPropertyValue - (parent.getNearestSpecifiedValue(property)); + (((FONode)parent).getNearestSpecifiedValue(property)); else // root return IndirectValue.adjustedPropertyValue (PropertyConsts.pconsts.getInitialValue(property)); @@ -354,7 +343,7 @@ public class FONode extends Node{ { if (parent != null) return IndirectValue.adjustedPropertyValue - (parent.getPropertyValue(sourceProperty)); + (((FONode)parent).getPropertyValue(sourceProperty)); else // root return IndirectValue.adjustedPropertyValue (PropertyConsts.pconsts.getInitialValue(sourceProperty)); @@ -397,7 +386,7 @@ public class FONode extends Node{ if (parent != null && PropertyConsts.pconsts.isInherited(property)) return (propertySet[property] = IndirectValue.adjustedPropertyValue - (parent.getPropertyValue(property))); + (((FONode)parent).getPropertyValue(property))); else // root return (propertySet[property] = IndirectValue.adjustedPropertyValue