Changeset 23538 in webkit for trunk/JavaScriptCore/bindings/runtime_root.cpp
- Timestamp:
- Jun 14, 2007, 2:43:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bindings/runtime_root.cpp
r19183 r23538 24 24 */ 25 25 #include "config.h" 26 #include "runtime_root.h" 26 27 27 28 #include "object.h" 28 #include "runtime_root.h" 29 #include "runtime.h" 30 #include "runtime_object.h" 31 29 32 #include <wtf/HashCountedSet.h> 30 33 #include <wtf/HashSet.h> … … 219 222 return; 220 223 224 { 225 HashSet<RuntimeObjectImp*>::iterator end = m_runtimeObjects.end(); 226 for (HashSet<RuntimeObjectImp*>::iterator it = m_runtimeObjects.begin(); it != end; ++it) 227 (*it)->invalidate(); 228 229 m_runtimeObjects.clear(); 230 } 231 221 232 m_isValid = false; 222 233 … … 277 288 } 278 289 290 void RootObject::addRuntimeObject(RuntimeObjectImp* object) 291 { 292 ASSERT(m_isValid); 293 ASSERT(!m_runtimeObjects.contains(object)); 294 295 m_runtimeObjects.add(object); 296 } 297 298 void RootObject::removeRuntimeObject(RuntimeObjectImp* object) 299 { 300 ASSERT(m_isValid); 301 ASSERT(m_runtimeObjects.contains(object)); 302 303 m_runtimeObjects.remove(object); 304 } 305 279 306 } } // namespace KJS::Bindings
Note:
See TracChangeset
for help on using the changeset viewer.