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

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

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return m_transientRegistry; 49 return m_transientRegistry;
50 } 50 }
51 51
52 void addTransientRegistration(MutationObserverRegistration* registration) { 52 void addTransientRegistration(MutationObserverRegistration* registration) {
53 m_transientRegistry.insert( 53 m_transientRegistry.insert(
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.erase(registration);
60 } 60 }
61 61
62 void addRegistration(MutationObserverRegistration* registration) { 62 void addRegistration(MutationObserverRegistration* registration) {
63 m_registry.push_back( 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));
(...skipping 106 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/MutationObserver.cpp ('k') | third_party/WebKit/Source/core/dom/QualifiedName.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698