Index: Source/core/dom/MutationRecord.h |
diff --git a/Source/core/dom/MutationRecord.h b/Source/core/dom/MutationRecord.h |
index 2c9812e0e05d2dff58f30f61b45ff701ae874f8f..d4293198ebe4a92a22804e3bf3e7f4f5d57b02b4 100644 |
--- a/Source/core/dom/MutationRecord.h |
+++ b/Source/core/dom/MutationRecord.h |
@@ -32,6 +32,7 @@ |
#define MutationRecord_h |
#include "bindings/v8/ScriptWrappable.h" |
+#include "platform/heap/Handle.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
#include "wtf/text/WTFString.h" |
@@ -42,12 +43,12 @@ class Node; |
class NodeList; |
class QualifiedName; |
-class MutationRecord : public RefCounted<MutationRecord>, public ScriptWrappable { |
+class MutationRecord : public RefCountedWillBeGarbageCollectedFinalized<MutationRecord>, public ScriptWrappable { |
public: |
- static PassRefPtr<MutationRecord> createChildList(PassRefPtr<Node> target, PassRefPtr<NodeList> added, PassRefPtr<NodeList> removed, PassRefPtr<Node> previousSibling, PassRefPtr<Node> nextSibling); |
- static PassRefPtr<MutationRecord> createAttributes(PassRefPtr<Node> target, const QualifiedName&, const AtomicString& oldValue); |
- static PassRefPtr<MutationRecord> createCharacterData(PassRefPtr<Node> target, const String& oldValue); |
- static PassRefPtr<MutationRecord> createWithNullOldValue(PassRefPtr<MutationRecord>); |
+ static PassRefPtrWillBeRawPtr<MutationRecord> createChildList(PassRefPtr<Node> target, PassRefPtr<NodeList> added, PassRefPtr<NodeList> removed, PassRefPtr<Node> previousSibling, PassRefPtr<Node> nextSibling); |
+ static PassRefPtrWillBeRawPtr<MutationRecord> createAttributes(PassRefPtr<Node> target, const QualifiedName&, const AtomicString& oldValue); |
+ static PassRefPtrWillBeRawPtr<MutationRecord> createCharacterData(PassRefPtr<Node> target, const String& oldValue); |
+ static PassRefPtrWillBeRawPtr<MutationRecord> createWithNullOldValue(PassRefPtrWillBeRawPtr<MutationRecord>); |
MutationRecord() |
{ |
@@ -68,6 +69,9 @@ public: |
virtual const AtomicString& attributeNamespace() { return nullAtom; } |
virtual String oldValue() { return String(); } |
+ |
+ virtual void trace(Visitor*) { } |
+ |
}; |
} // namespace WebCore |