Changeset 158665 in webkit
- Timestamp:
- Nov 5, 2013, 6:35:47 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r158663 r158665 1 2013-11-05 Antti Koivisto <antti@apple.com> 2 3 Make it compile. 4 5 * dom/LiveNodeList.h: 6 (WebCore::LiveNodeList::LiveNodeList): 7 (WebCore::LiveNodeList::~LiveNodeList): 8 * dom/NodeRareData.h: 9 (WebCore::NodeListsNodeData::adoptDocument): 10 * html/HTMLCollection.cpp: 11 (WebCore::HTMLCollection::HTMLCollection): 12 (WebCore::HTMLCollection::~HTMLCollection): 13 1 14 2013-11-05 Antti Koivisto <antti@apple.com> 2 15 -
trunk/Source/WebCore/dom/LiveNodeList.h
r158663 r158665 67 67 ASSERT(m_type == static_cast<unsigned>(type)); 68 68 69 document().registerNodeList( this);69 document().registerNodeList(*this); 70 70 } 71 71 virtual Node* namedItem(const AtomicString&) const OVERRIDE; … … 74 74 virtual ~LiveNodeList() 75 75 { 76 document().unregisterNodeList( this);76 document().unregisterNodeList(*this); 77 77 } 78 78 -
trunk/Source/WebCore/dom/NodeRareData.h
r158663 r158665 230 230 if (oldDocument != newDocument) { 231 231 for (auto it = m_atomicNameCaches.begin(), end = m_atomicNameCaches.end(); it != end; ++it) { 232 LiveNodeList * list =it->value;232 LiveNodeList& list = *it->value; 233 233 oldDocument->unregisterNodeList(list); 234 234 newDocument->registerNodeList(list); … … 236 236 237 237 for (auto it = m_nameCaches.begin(), end = m_nameCaches.end(); it != end; ++it) { 238 LiveNodeList * list =it->value;238 LiveNodeList& list = *it->value; 239 239 oldDocument->unregisterNodeList(list); 240 240 newDocument->registerNodeList(list); … … 242 242 243 243 for (auto it = m_tagNodeListCacheNS.begin(), end = m_tagNodeListCacheNS.end(); it != end; ++it) { 244 LiveNodeList * list =it->value;245 ASSERT(!list ->isRootedAtDocument());244 LiveNodeList& list = *it->value; 245 ASSERT(!list.isRootedAtDocument()); 246 246 oldDocument->unregisterNodeList(list); 247 247 newDocument->registerNodeList(list); … … 249 249 250 250 for (auto it = m_cachedCollections.begin(), end = m_cachedCollections.end(); it != end; ++it) { 251 HTMLCollection * collection =it->value;251 HTMLCollection& collection = *it->value; 252 252 oldDocument->unregisterCollection(collection); 253 253 newDocument->registerCollection(collection); -
trunk/Source/WebCore/html/HTMLCollection.cpp
r158663 r158665 149 149 ASSERT(m_collectionType == static_cast<unsigned>(type)); 150 150 151 document().registerCollection( this);151 document().registerCollection(*this); 152 152 } 153 153 … … 159 159 HTMLCollection::~HTMLCollection() 160 160 { 161 document().unregisterCollection( this);161 document().unregisterCollection(*this); 162 162 // HTMLNameCollection removes cache by itself. 163 163 if (type() != WindowNamedItems && type() != DocumentNamedItems)
Note:
See TracChangeset
for help on using the changeset viewer.