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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 Element* DocumentOrderedMap::getElementByLowercasedMapName(const AtomicString& k ey, const TreeScope* scope) const 172 Element* DocumentOrderedMap::getElementByLowercasedMapName(const AtomicString& k ey, const TreeScope* scope) const
173 { 173 {
174 return get<keyMatchesLowercasedMapName>(key, scope); 174 return get<keyMatchesLowercasedMapName>(key, scope);
175 } 175 }
176 176
177 Element* DocumentOrderedMap::getElementByLabelForAttribute(const AtomicString& k ey, const TreeScope* scope) const 177 Element* DocumentOrderedMap::getElementByLabelForAttribute(const AtomicString& k ey, const TreeScope* scope) const
178 { 178 {
179 return get<keyMatchesLabelForAttribute>(key, scope); 179 return get<keyMatchesLabelForAttribute>(key, scope);
180 } 180 }
181 181
182 DocumentOrderedMap::MapEntry::MapEntry(Element* firstElement)
183 : element(firstElement)
184 , count(1)
185 {
186 }
187
182 DEFINE_TRACE(DocumentOrderedMap) 188 DEFINE_TRACE(DocumentOrderedMap)
183 { 189 {
184 #if ENABLE(OILPAN) 190 #if ENABLE(OILPAN)
185 visitor->trace(m_map); 191 visitor->trace(m_map);
186 #endif 192 #endif
187 } 193 }
188 194
189 DEFINE_TRACE(DocumentOrderedMap::MapEntry) 195 DEFINE_TRACE(DocumentOrderedMap::MapEntry)
190 { 196 {
191 visitor->trace(element); 197 visitor->trace(element);
192 #if ENABLE(OILPAN) 198 #if ENABLE(OILPAN)
193 visitor->trace(orderedList); 199 visitor->trace(orderedList);
194 #endif 200 #endif
195 } 201 }
196 202
197 } // namespace blink 203 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698