Commit 0ffba5f1 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

2009-08-17 Pavel Feldman <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        WebInspector: Discard DOM Node bindings on any document change.

        https://bugs.webkit.org/show_bug.cgi?id=28389

        * inspector/InspectorDOMAgent.cpp:
        (WebCore::InspectorDOMAgent::setDocument):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9728208d
2009-08-17 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Timothy Hatcher.
WebInspector: Discard DOM Node bindings on any document change.
https://bugs.webkit.org/show_bug.cgi?id=28389
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::setDocument):
2009-08-13 Joseph Pecoraro <joepeck02@gmail.com>
Reviewed by Timothy Hatcher.
......@@ -68,6 +68,7 @@ void InspectorDOMAgent::setDocument(Document* doc)
{
if (doc == mainFrameDocument())
return;
discardBindings();
ListHashSet<RefPtr<Document> > copy = m_documents;
for (ListHashSet<RefPtr<Document> >::iterator it = copy.begin(); it != copy.end(); ++it)
......@@ -80,8 +81,6 @@ void InspectorDOMAgent::setDocument(Document* doc)
if (doc->documentElement()) {
pushDocumentToFrontend();
}
} else {
discardBindings();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment