Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: Source/WebCore/bindings/dart/DartController.cpp

Issue 9837116: DOM wrappers that are not retained from Dart should be collected. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Address comments. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/bindings/dart/DartController.cpp
diff --git a/Source/WebCore/bindings/dart/DartController.cpp b/Source/WebCore/bindings/dart/DartController.cpp
index ec81237b7758786271ba771f24f7deeb885f7415..ceee333c51eec62f13de33288b3b617b2edc1aa6 100644
--- a/Source/WebCore/bindings/dart/DartController.cpp
+++ b/Source/WebCore/bindings/dart/DartController.cpp
@@ -135,9 +135,7 @@ void DartController::clearWindowShell()
for (size_t i = 0; i < m_isolates.size(); ++i) {
DartIsolate::Scope scope(m_isolates[i]);
- DartDOMMap* domMap = DartUtilities::domMapForCurrentIsolate();
- for (DartDOMMap::iterator it = domMap->begin(); it != domMap->end(); ++it)
- DartDOMWrapper::derefDOMObject(it->second, it->first);
+ DartUtilities::disposeWeakPersistentHandles();
}
for (size_t i = 0; i < m_isolates.size(); ++i) {
« no previous file with comments | « no previous file | Source/WebCore/bindings/dart/DartDOMData.h » ('j') | Source/WebCore/bindings/dart/DartUtilities.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698