* method adds implementation event listeners, so that mutations in
* shadow trees can be caught.
*/
public void addDOMListeners() {
SVGOMDocument doc = (SVGOMDocument)document;
XBLEventSupport evtSupport
= (XBLEventSupport) doc.initializeEventSupport();
domAttrModifiedEventListener
= new EventListenerWrapper(new DOMAttrModifiedEventListener());
evtSupport.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMAttrModified",
domAttrModifiedEventListener, true);
domNodeInsertedEventListener
= new EventListenerWrapper(new DOMNodeInsertedEventListener());
evtSupport.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMNodeInserted",
domNodeInsertedEventListener, true);
domNodeRemovedEventListener
= new EventListenerWrapper(new DOMNodeRemovedEventListener());
evtSupport.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMNodeRemoved",
domNodeRemovedEventListener, true);
domCharacterDataModifiedEventListener =
new EventListenerWrapper(new DOMCharacterDataModifiedEventListener());
evtSupport.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMCharacterDataModified",
domCharacterDataModifiedEventListener, true);
animatedAttributeListener = new AnimatedAttrListener();