diff options
Diffstat (limited to 'Source/WebCore/dom/MutationRecord.h')
-rw-r--r-- | Source/WebCore/dom/MutationRecord.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/WebCore/dom/MutationRecord.h b/Source/WebCore/dom/MutationRecord.h index 6cbb493b5..60bbfab1a 100644 --- a/Source/WebCore/dom/MutationRecord.h +++ b/Source/WebCore/dom/MutationRecord.h @@ -28,10 +28,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef MutationRecord_h -#define MutationRecord_h +#pragma once -#include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> #include <wtf/RefPtr.h> #include <wtf/text/WTFString.h> @@ -47,11 +45,11 @@ class QualifiedName; class MutationRecord : public RefCounted<MutationRecord> { public: - static PassRefPtr<MutationRecord> createChildList(ContainerNode& target, PassRefPtr<NodeList> added, PassRefPtr<NodeList> removed, PassRefPtr<Node> previousSibling, PassRefPtr<Node> nextSibling); - static PassRefPtr<MutationRecord> createAttributes(Element& target, const QualifiedName&, const AtomicString& oldValue); - static PassRefPtr<MutationRecord> createCharacterData(CharacterData& target, const String& oldValue); + static Ref<MutationRecord> createChildList(ContainerNode& target, Ref<NodeList>&& added, Ref<NodeList>&& removed, RefPtr<Node>&& previousSibling, RefPtr<Node>&& nextSibling); + static Ref<MutationRecord> createAttributes(Element& target, const QualifiedName&, const AtomicString& oldValue); + static Ref<MutationRecord> createCharacterData(CharacterData& target, const String& oldValue); - static PassRefPtr<MutationRecord> createWithNullOldValue(PassRefPtr<MutationRecord>); + static Ref<MutationRecord> createWithNullOldValue(MutationRecord&); virtual ~MutationRecord(); @@ -70,5 +68,3 @@ public: }; } // namespace WebCore - -#endif // MutationRecord_h |