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

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

Issue 2574773002: Migrate WTF::Vector::append() to ::push_back() [part 4 of N] (Closed)
Patch Set: rebase Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 m_transientRegistry.add( 53 m_transientRegistry.add(
54 TraceWrapperMember<MutationObserverRegistration>(this, registration)); 54 TraceWrapperMember<MutationObserverRegistration>(this, registration));
55 } 55 }
56 56
57 void removeTransientRegistration(MutationObserverRegistration* registration) { 57 void removeTransientRegistration(MutationObserverRegistration* registration) {
58 DCHECK(m_transientRegistry.contains(registration)); 58 DCHECK(m_transientRegistry.contains(registration));
59 m_transientRegistry.remove(registration); 59 m_transientRegistry.remove(registration);
60 } 60 }
61 61
62 void addRegistration(MutationObserverRegistration* registration) { 62 void addRegistration(MutationObserverRegistration* registration) {
63 m_registry.append( 63 m_registry.push_back(
64 TraceWrapperMember<MutationObserverRegistration>(this, registration)); 64 TraceWrapperMember<MutationObserverRegistration>(this, registration));
65 } 65 }
66 66
67 void removeRegistration(MutationObserverRegistration* registration) { 67 void removeRegistration(MutationObserverRegistration* registration) {
68 DCHECK(m_registry.contains(registration)); 68 DCHECK(m_registry.contains(registration));
69 m_registry.remove(m_registry.find(registration)); 69 m_registry.remove(m_registry.find(registration));
70 } 70 }
71 71
72 DEFINE_INLINE_TRACE() { 72 DEFINE_INLINE_TRACE() {
73 visitor->trace(m_registry); 73 visitor->trace(m_registry);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 unsigned m_elementFlags : NumberOfElementFlags; 176 unsigned m_elementFlags : NumberOfElementFlags;
177 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; 177 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags;
178 178
179 protected: 179 protected:
180 unsigned m_isElementRareData : 1; 180 unsigned m_isElementRareData : 1;
181 }; 181 };
182 182
183 } // namespace blink 183 } // namespace blink
184 184
185 #endif // NodeRareData_h 185 #endif // NodeRareData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/PresentationAttributeStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698