OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class Node; | 42 class Node; |
43 class QualifiedName; | 43 class QualifiedName; |
44 template <typename NodeType> class StaticNodeTypeList; | 44 template <typename NodeType> class StaticNodeTypeList; |
45 typedef StaticNodeTypeList<Node> StaticNodeList; | 45 typedef StaticNodeTypeList<Node> StaticNodeList; |
46 | 46 |
47 class MutationRecord : public RefCountedWillBeGarbageCollectedFinalized<Mutation
Record>, public ScriptWrappable { | 47 class MutationRecord : public RefCountedWillBeGarbageCollectedFinalized<Mutation
Record>, public ScriptWrappable { |
| 48 DEFINE_WRAPPERTYPEINFO(); |
48 public: | 49 public: |
49 static PassRefPtrWillBeRawPtr<MutationRecord> createChildList(PassRefPtrWill
BeRawPtr<Node> target, PassRefPtrWillBeRawPtr<StaticNodeList> added, PassRefPtrW
illBeRawPtr<StaticNodeList> removed, PassRefPtrWillBeRawPtr<Node> previousSiblin
g, PassRefPtrWillBeRawPtr<Node> nextSibling); | 50 static PassRefPtrWillBeRawPtr<MutationRecord> createChildList(PassRefPtrWill
BeRawPtr<Node> target, PassRefPtrWillBeRawPtr<StaticNodeList> added, PassRefPtrW
illBeRawPtr<StaticNodeList> removed, PassRefPtrWillBeRawPtr<Node> previousSiblin
g, PassRefPtrWillBeRawPtr<Node> nextSibling); |
50 static PassRefPtrWillBeRawPtr<MutationRecord> createAttributes(PassRefPtrWil
lBeRawPtr<Node> target, const QualifiedName&, const AtomicString& oldValue); | 51 static PassRefPtrWillBeRawPtr<MutationRecord> createAttributes(PassRefPtrWil
lBeRawPtr<Node> target, const QualifiedName&, const AtomicString& oldValue); |
51 static PassRefPtrWillBeRawPtr<MutationRecord> createCharacterData(PassRefPtr
WillBeRawPtr<Node> target, const String& oldValue); | 52 static PassRefPtrWillBeRawPtr<MutationRecord> createCharacterData(PassRefPtr
WillBeRawPtr<Node> target, const String& oldValue); |
52 static PassRefPtrWillBeRawPtr<MutationRecord> createWithNullOldValue(PassRef
PtrWillBeRawPtr<MutationRecord>); | 53 static PassRefPtrWillBeRawPtr<MutationRecord> createWithNullOldValue(PassRef
PtrWillBeRawPtr<MutationRecord>); |
53 | 54 |
54 MutationRecord() | 55 MutationRecord() |
55 { | 56 { |
56 ScriptWrappable::init(this); | 57 ScriptWrappable::init(this); |
57 } | 58 } |
(...skipping 13 matching lines...) Expand all Loading... |
71 | 72 |
72 virtual String oldValue() { return String(); } | 73 virtual String oldValue() { return String(); } |
73 | 74 |
74 virtual void trace(Visitor*) { } | 75 virtual void trace(Visitor*) { } |
75 | 76 |
76 }; | 77 }; |
77 | 78 |
78 } // namespace blink | 79 } // namespace blink |
79 | 80 |
80 #endif // MutationRecord_h | 81 #endif // MutationRecord_h |
OLD | NEW |