Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: Source/core/dom/MutationRecord.h

Issue 465483002: Merge NamedNodesCollection and StaticNodeList classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/NamedNodesCollection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 #include "bindings/core/v8/ScriptWrappable.h" 34 #include "bindings/core/v8/ScriptWrappable.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
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 class StaticNodeList; 44 template <typename NodeType> class StaticNodeTypeList;
45 typedef StaticNodeTypeList<Node> StaticNodeList;
45 46
46 class MutationRecord : public RefCountedWillBeGarbageCollectedFinalized<Mutation Record>, public ScriptWrappable { 47 class MutationRecord : public RefCountedWillBeGarbageCollectedFinalized<Mutation Record>, public ScriptWrappable {
47 public: 48 public:
48 static PassRefPtrWillBeRawPtr<MutationRecord> createChildList(PassRefPtrWill BeRawPtr<Node> target, PassRefPtrWillBeRawPtr<StaticNodeList> added, PassRefPtrW illBeRawPtr<StaticNodeList> removed, PassRefPtrWillBeRawPtr<Node> previousSiblin g, PassRefPtrWillBeRawPtr<Node> nextSibling); 49 static PassRefPtrWillBeRawPtr<MutationRecord> createChildList(PassRefPtrWill BeRawPtr<Node> target, PassRefPtrWillBeRawPtr<StaticNodeList> added, PassRefPtrW illBeRawPtr<StaticNodeList> removed, PassRefPtrWillBeRawPtr<Node> previousSiblin g, PassRefPtrWillBeRawPtr<Node> nextSibling);
49 static PassRefPtrWillBeRawPtr<MutationRecord> createAttributes(PassRefPtrWil lBeRawPtr<Node> target, const QualifiedName&, const AtomicString& oldValue); 50 static PassRefPtrWillBeRawPtr<MutationRecord> createAttributes(PassRefPtrWil lBeRawPtr<Node> target, const QualifiedName&, const AtomicString& oldValue);
50 static PassRefPtrWillBeRawPtr<MutationRecord> createCharacterData(PassRefPtr WillBeRawPtr<Node> target, const String& oldValue); 51 static PassRefPtrWillBeRawPtr<MutationRecord> createCharacterData(PassRefPtr WillBeRawPtr<Node> target, const String& oldValue);
51 static PassRefPtrWillBeRawPtr<MutationRecord> createWithNullOldValue(PassRef PtrWillBeRawPtr<MutationRecord>); 52 static PassRefPtrWillBeRawPtr<MutationRecord> createWithNullOldValue(PassRef PtrWillBeRawPtr<MutationRecord>);
52 53
53 MutationRecord() 54 MutationRecord()
54 { 55 {
(...skipping 15 matching lines...) Expand all
70 71
71 virtual String oldValue() { return String(); } 72 virtual String oldValue() { return String(); }
72 73
73 virtual void trace(Visitor*) { } 74 virtual void trace(Visitor*) { }
74 75
75 }; 76 };
76 77
77 } // namespace blink 78 } // namespace blink
78 79
79 #endif // MutationRecord_h 80 #endif // MutationRecord_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/NamedNodesCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698