aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/FObj.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fo/FObj.java')
-rw-r--r--src/java/org/apache/fop/fo/FObj.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/FObj.java b/src/java/org/apache/fop/fo/FObj.java
index 3281a4c27..87dc3bb1e 100644
--- a/src/java/org/apache/fop/fo/FObj.java
+++ b/src/java/org/apache/fop/fo/FObj.java
@@ -262,7 +262,16 @@ public abstract class FObj extends FONode implements Constants {
return null;
}
- /**
+ /**
+ * Notifies a FObj that one of it's children is removed.
+ * This method is subclassed by Block to clear the firstInlineChild variable.
+ * @param node the node that was removed
+ */
+ protected void notifyChildRemoval(FONode node) {
+ //nop
+ }
+
+ /**
* Add the marker to this formatting object.
* If this object can contain markers it checks that the marker
* has a unique class-name for this object and that it is
@@ -282,6 +291,7 @@ public abstract class FObj extends FONode implements Constants {
return;
} else {
iter.remove();
+ notifyChildRemoval(node);
}
} else {
getLogger().error("fo:marker must be an initial child: " + mcname);