* Adds EventListeners to the DOM and CSSEngineListener to the
* CSSEngine to handle any modifications on the DOM tree or style
* properties and update the GVT tree in response.
*/
public void addDOMListeners() {
EventTarget evtTarget = (EventTarget)document;
domAttrModifiedEventListener = new DOMAttrModifiedEventListener();
evtTarget.addEventListener("DOMAttrModified",
domAttrModifiedEventListener,
true);
domNodeInsertedEventListener = new DOMNodeInsertedEventListener();
evtTarget.addEventListener("DOMNodeInserted",
domNodeInsertedEventListener,
true);
domNodeRemovedEventListener = new DOMNodeRemovedEventListener();
evtTarget.addEventListener("DOMNodeRemoved",
domNodeRemovedEventListener,
true);
domCharacterDataModifiedListener =
new DOMCharacterDataModifiedListener();
evtTarget.addEventListener("DOMCharacterDataModified",
domCharacterDataModifiedListener,
true);
focusManager = new FocusManager(document);