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 976baead321bc2f7a1fe8609d813c60039240247..a413b2e8be534c126db2ed33d38ecaab849d1dcf 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h |
@@ -80,6 +80,11 @@ class DOMWrapperMap { |
return true; |
} |
+ void RemoveIfAny(KeyType* key) { |
+ if (ContainsKey(key)) |
+ map_.Remove(key); |
+ } |
+ |
void Clear() { map_.Clear(); } |
void RemoveAndDispose(KeyType* key) { |