summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/dom/MutationRecord.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/dom/MutationRecord.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/dom/MutationRecord.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/chromium/third_party/WebKit/Source/core/dom/MutationRecord.h b/chromium/third_party/WebKit/Source/core/dom/MutationRecord.h
index 2c9812e0e05..de7cb5b3fcc 100644
--- a/chromium/third_party/WebKit/Source/core/dom/MutationRecord.h
+++ b/chromium/third_party/WebKit/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"
@@ -39,15 +40,15 @@
namespace WebCore {
class Node;
-class NodeList;
class QualifiedName;
+class StaticNodeList;
-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(PassRefPtrWillBeRawPtr<Node> target, PassRefPtrWillBeRawPtr<StaticNodeList> added, PassRefPtrWillBeRawPtr<StaticNodeList> removed, PassRefPtrWillBeRawPtr<Node> previousSibling, PassRefPtrWillBeRawPtr<Node> nextSibling);
+ static PassRefPtrWillBeRawPtr<MutationRecord> createAttributes(PassRefPtrWillBeRawPtr<Node> target, const QualifiedName&, const AtomicString& oldValue);
+ static PassRefPtrWillBeRawPtr<MutationRecord> createCharacterData(PassRefPtrWillBeRawPtr<Node> target, const String& oldValue);
+ static PassRefPtrWillBeRawPtr<MutationRecord> createWithNullOldValue(PassRefPtrWillBeRawPtr<MutationRecord>);
MutationRecord()
{
@@ -59,8 +60,8 @@ public:
virtual const AtomicString& type() = 0;
virtual Node* target() = 0;
- virtual NodeList* addedNodes() = 0;
- virtual NodeList* removedNodes() = 0;
+ virtual StaticNodeList* addedNodes() = 0;
+ virtual StaticNodeList* removedNodes() = 0;
virtual Node* previousSibling() { return 0; }
virtual Node* nextSibling() { return 0; }
@@ -68,6 +69,9 @@ public:
virtual const AtomicString& attributeNamespace() { return nullAtom; }
virtual String oldValue() { return String(); }
+
+ virtual void trace(Visitor*) { }
+
};
} // namespace WebCore