diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 13:43:30 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 13:43:30 +0000 |
commit | dc3d7d377d5e0b48b886e1c5c3d38f4da6e24311 (patch) | |
tree | c2e21ba631b362ce590f758f529c095ae7fe1325 | |
parent | 71a76d032e2f837630981952e497dfb7c9533136 (diff) | |
download | chromium_src-dc3d7d377d5e0b48b886e1c5c3d38f4da6e24311.zip chromium_src-dc3d7d377d5e0b48b886e1c5c3d38f4da6e24311.tar.gz chromium_src-dc3d7d377d5e0b48b886e1c5c3d38f4da6e24311.tar.bz2 |
Switch to useCapture in order to handle DOMNodeRemovedFromDocument events.
Review URL: http://codereview.chromium.org/48062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11857 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/glue/devtools/dom_agent_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/devtools/dom_agent_impl.cc b/webkit/glue/devtools/dom_agent_impl.cc index 166063a..4cdbf1e 100644 --- a/webkit/glue/devtools/dom_agent_impl.cc +++ b/webkit/glue/devtools/dom_agent_impl.cc @@ -83,7 +83,7 @@ void DomAgentImpl::StartListening(Document* doc) { doc->addEventListener(eventNames().DOMNodeRemovedEvent, event_listener_, false); doc->addEventListener(eventNames().DOMNodeRemovedFromDocumentEvent, - event_listener_, false); + event_listener_, true); doc->addEventListener(eventNames().DOMAttrModifiedEvent, event_listener_, false); documents_.add(doc); @@ -97,7 +97,7 @@ void DomAgentImpl::StopListening(Document* doc) { doc->removeEventListener(eventNames().DOMNodeRemovedEvent, event_listener_.get(), false); doc->removeEventListener(eventNames().DOMNodeRemovedFromDocumentEvent, - event_listener_.get(), false); + event_listener_.get(), true); doc->removeEventListener(eventNames().DOMAttrModifiedEvent, event_listener_.get(), false); documents_.remove(doc); |