Index: Source/modules/crypto/DOMWindowCrypto.cpp |
diff --git a/Source/modules/crypto/DOMWindowCrypto.cpp b/Source/modules/crypto/DOMWindowCrypto.cpp |
index 3e3e0274303de313ac086fbe62ff95752ca6f490..5ba3c97db42e54d5613c00157d544c4a938f5e45 100644 |
--- a/Source/modules/crypto/DOMWindowCrypto.cpp |
+++ b/Source/modules/crypto/DOMWindowCrypto.cpp |
@@ -52,10 +52,10 @@ const char* DOMWindowCrypto::supplementName() |
DOMWindowCrypto& DOMWindowCrypto::from(DOMWindow& window) |
{ |
- DOMWindowCrypto* supplement = static_cast<DOMWindowCrypto*>(Supplement<DOMWindow>::from(window, supplementName())); |
+ DOMWindowCrypto* supplement = static_cast<DOMWindowCrypto*>(WillBeHeapSupplement<DOMWindow>::from(window, supplementName())); |
if (!supplement) { |
supplement = new DOMWindowCrypto(window); |
- provideTo(window, supplementName(), adoptPtr(supplement)); |
+ provideTo(window, supplementName(), adoptPtrWillBeNoop(supplement)); |
} |
return *supplement; |
} |
@@ -72,4 +72,9 @@ Crypto* DOMWindowCrypto::crypto() const |
return m_crypto.get(); |
} |
+void DOMWindowCrypto::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_crypto); |
+} |
+ |
} // namespace WebCore |