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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h

Issue 2690943002: Revert of binding: Changes the association among global-proxy/global/window-instance. (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h
index 6bf1f7582b9831153f5329f79df4999d48d1bdc4..3cbbca9e3d2c3e8d1546a782bdc88aec111e1ea1 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h
+++ b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h
@@ -79,11 +79,12 @@
return true;
}
- void removeIfAny(KeyType* key) {
+ void clear() { m_map.Clear(); }
+
+ void removeAndDispose(KeyType* key) {
+ ASSERT(containsKey(key));
m_map.Remove(key);
}
-
- void clear() { m_map.Clear(); }
void markWrapper(KeyType* object) {
m_map.RegisterExternallyReferencedObject(object);

Powered by Google App Engine
This is Rietveld 408576698