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

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

Issue 280123002: Oilpan: move LiveNodeList collections to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have NodeRareData clear out NodeListsNodeData instead. Created 6 years, 7 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 | « Source/core/dom/LiveNodeListBase.h ('k') | Source/core/dom/MutationRecord.cpp » ('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 27 matching lines...) Expand all
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class Node; 42 class Node;
43 class NodeList; 43 class NodeList;
44 class QualifiedName; 44 class QualifiedName;
45 45
46 class MutationRecord : public RefCountedWillBeGarbageCollectedFinalized<Mutation Record>, public ScriptWrappable { 46 class MutationRecord : public RefCountedWillBeGarbageCollectedFinalized<Mutation Record>, public ScriptWrappable {
47 public: 47 public:
48 static PassRefPtrWillBeRawPtr<MutationRecord> createChildList(PassRefPtr<Nod e> target, PassRefPtr<NodeList> added, PassRefPtr<NodeList> removed, PassRefPtr< Node> previousSibling, PassRefPtr<Node> nextSibling); 48 static PassRefPtrWillBeRawPtr<MutationRecord> createChildList(PassRefPtr<Nod e> target, PassRefPtrWillBeRawPtr<NodeList> added, PassRefPtrWillBeRawPtr<NodeLi st> removed, PassRefPtr<Node> previousSibling, PassRefPtr<Node> nextSibling);
49 static PassRefPtrWillBeRawPtr<MutationRecord> createAttributes(PassRefPtr<No de> target, const QualifiedName&, const AtomicString& oldValue); 49 static PassRefPtrWillBeRawPtr<MutationRecord> createAttributes(PassRefPtr<No de> target, const QualifiedName&, const AtomicString& oldValue);
50 static PassRefPtrWillBeRawPtr<MutationRecord> createCharacterData(PassRefPtr <Node> target, const String& oldValue); 50 static PassRefPtrWillBeRawPtr<MutationRecord> createCharacterData(PassRefPtr <Node> target, const String& oldValue);
51 static PassRefPtrWillBeRawPtr<MutationRecord> createWithNullOldValue(PassRef PtrWillBeRawPtr<MutationRecord>); 51 static PassRefPtrWillBeRawPtr<MutationRecord> createWithNullOldValue(PassRef PtrWillBeRawPtr<MutationRecord>);
52 52
53 MutationRecord() 53 MutationRecord()
54 { 54 {
55 ScriptWrappable::init(this); 55 ScriptWrappable::init(this);
56 } 56 }
57 57
58 virtual ~MutationRecord(); 58 virtual ~MutationRecord();
(...skipping 11 matching lines...) Expand all
70 70
71 virtual String oldValue() { return String(); } 71 virtual String oldValue() { return String(); }
72 72
73 virtual void trace(Visitor*) { } 73 virtual void trace(Visitor*) { }
74 74
75 }; 75 };
76 76
77 } // namespace WebCore 77 } // namespace WebCore
78 78
79 #endif // MutationRecord_h 79 #endif // MutationRecord_h
OLDNEW
« no previous file with comments | « Source/core/dom/LiveNodeListBase.h ('k') | Source/core/dom/MutationRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698