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

Side by Side Diff: Source/core/dom/ChildListMutationScope.cpp

Issue 1006723003: Fix template angle bracket syntax in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/ChildListMutationScope.h ('k') | Source/core/dom/ClientRectList.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 25 matching lines...) Expand all
36 #include "core/dom/StaticNodeList.h" 36 #include "core/dom/StaticNodeList.h"
37 #include "wtf/HashMap.h" 37 #include "wtf/HashMap.h"
38 #include "wtf/StdLibExtras.h" 38 #include "wtf/StdLibExtras.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 // The accumulator map is used to make sure that there is only one mutation 42 // The accumulator map is used to make sure that there is only one mutation
43 // accumulator for a given node even if there are multiple ChildListMutationScop es 43 // accumulator for a given node even if there are multiple ChildListMutationScop es
44 // on the stack. The map is always empty when there are no ChildListMutationScop es 44 // on the stack. The map is always empty when there are no ChildListMutationScop es
45 // on the stack. 45 // on the stack.
46 typedef WillBeHeapHashMap<RawPtrWillBeMember<Node>, RawPtrWillBeMember<ChildList MutationAccumulator> > AccumulatorMap; 46 typedef WillBeHeapHashMap<RawPtrWillBeMember<Node>, RawPtrWillBeMember<ChildList MutationAccumulator>> AccumulatorMap;
47 47
48 static AccumulatorMap& accumulatorMap() 48 static AccumulatorMap& accumulatorMap()
49 { 49 {
50 DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<AccumulatorMap>, map, (adoptPtrWi llBeNoop(new AccumulatorMap()))); 50 DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<AccumulatorMap>, map, (adoptPtrWi llBeNoop(new AccumulatorMap())));
51 return *map; 51 return *map;
52 } 52 }
53 53
54 ChildListMutationAccumulator::ChildListMutationAccumulator(PassRefPtrWillBeRawPt r<Node> target, PassOwnPtrWillBeRawPtr<MutationObserverInterestGroup> observers) 54 ChildListMutationAccumulator::ChildListMutationAccumulator(PassRefPtrWillBeRawPt r<Node> target, PassOwnPtrWillBeRawPtr<MutationObserverInterestGroup> observers)
55 : m_target(target) 55 : m_target(target)
56 , m_lastAdded(nullptr) 56 , m_lastAdded(nullptr)
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 visitor->trace(m_target); 162 visitor->trace(m_target);
163 visitor->trace(m_removedNodes); 163 visitor->trace(m_removedNodes);
164 visitor->trace(m_addedNodes); 164 visitor->trace(m_addedNodes);
165 visitor->trace(m_previousSibling); 165 visitor->trace(m_previousSibling);
166 visitor->trace(m_nextSibling); 166 visitor->trace(m_nextSibling);
167 visitor->trace(m_lastAdded); 167 visitor->trace(m_lastAdded);
168 visitor->trace(m_observers); 168 visitor->trace(m_observers);
169 } 169 }
170 170
171 } // namespace blink 171 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/ChildListMutationScope.h ('k') | Source/core/dom/ClientRectList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698