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

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

Issue 2317083003: Use type aliases for StaticElementList/StaticNodeList (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/SelectorQuery.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 22 matching lines...) Expand all
33 33
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/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class Node; 40 class Node;
41 class QualifiedName; 41 class QualifiedName;
42 template <typename NodeType> class StaticNodeTypeList; 42 template <typename NodeType> class StaticNodeTypeList;
43 typedef StaticNodeTypeList<Node> StaticNodeList; 43 using StaticNodeList = StaticNodeTypeList<Node>;
44 44
45 class MutationRecord : public GarbageCollectedFinalized<MutationRecord>, public ScriptWrappable { 45 class MutationRecord : public GarbageCollectedFinalized<MutationRecord>, public ScriptWrappable {
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 public: 47 public:
48 static MutationRecord* createChildList(Node* target, StaticNodeList* added, StaticNodeList* removed, Node* previousSibling, Node* nextSibling); 48 static MutationRecord* createChildList(Node* target, StaticNodeList* added, StaticNodeList* removed, Node* previousSibling, Node* nextSibling);
49 static MutationRecord* createAttributes(Node* target, const QualifiedName&, const AtomicString& oldValue); 49 static MutationRecord* createAttributes(Node* target, const QualifiedName&, const AtomicString& oldValue);
50 static MutationRecord* createCharacterData(Node* target, const String& oldVa lue); 50 static MutationRecord* createCharacterData(Node* target, const String& oldVa lue);
51 static MutationRecord* createWithNullOldValue(MutationRecord*); 51 static MutationRecord* createWithNullOldValue(MutationRecord*);
52 52
53 MutationRecord() { } 53 MutationRecord() { }
(...skipping 13 matching lines...) Expand all
67 67
68 virtual String oldValue() { return String(); } 68 virtual String oldValue() { return String(); }
69 69
70 DEFINE_INLINE_VIRTUAL_TRACE() { } 70 DEFINE_INLINE_VIRTUAL_TRACE() { }
71 71
72 }; 72 };
73 73
74 } // namespace blink 74 } // namespace blink
75 75
76 #endif // MutationRecord_h 76 #endif // MutationRecord_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/SelectorQuery.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698