diff options
author | Steve Block <steveblock@google.com> | 2010-02-02 18:52:14 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-02-04 22:48:43 +0000 |
commit | c38f6d0ecb29af3c5ff8e76fd65713121e3ba395 (patch) | |
tree | faee74bf276d94c80c184166737cfb41e56ef593 /WebCore/bindings | |
parent | 7b0800e844e66b5ec6d429b04c968b631ce8c2f3 (diff) | |
download | external_webkit-c38f6d0ecb29af3c5ff8e76fd65713121e3ba395.zip external_webkit-c38f6d0ecb29af3c5ff8e76fd65713121e3ba395.tar.gz external_webkit-c38f6d0ecb29af3c5ff8e76fd65713121e3ba395.tar.bz2 |
Merge webkit.org at r54127 : Fix missing virtual destructors in V8DOMMap
This is achieved by cherry-picking WebKit patch http://trac.webkit.org/changeset/54218
Change-Id: I953939c9ee0a478c26f0481d923595325b67f718
Diffstat (limited to 'WebCore/bindings')
-rw-r--r-- | WebCore/bindings/v8/V8DOMMap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/bindings/v8/V8DOMMap.h b/WebCore/bindings/v8/V8DOMMap.h index d42daa4..a7e03a0 100644 --- a/WebCore/bindings/v8/V8DOMMap.h +++ b/WebCore/bindings/v8/V8DOMMap.h @@ -44,10 +44,13 @@ namespace WebCore { template <class KeyType, class ValueType> class AbstractWeakReferenceMap { public: AbstractWeakReferenceMap(v8::WeakReferenceCallback callback) : m_weakReferenceCallback(callback) { } + virtual ~AbstractWeakReferenceMap() { } class Visitor { public: virtual void visitDOMWrapper(KeyType* key, v8::Persistent<ValueType> object) = 0; + protected: + virtual ~Visitor() { } }; virtual v8::Persistent<ValueType> get(KeyType* obj) = 0; |