webengine/osswebengine/WebCore/dom/QualifiedName.cpp
changeset 5 10e98eab6f85
parent 0 dd21522fd290
child 11 c8a366e56285
equal deleted inserted replaced
1:7c90e6132015 5:10e98eab6f85
   137 #ifdef QNAME_DEFAULT_CONSTRUCTOR
   137 #ifdef QNAME_DEFAULT_CONSTRUCTOR
   138     if (!m_impl)
   138     if (!m_impl)
   139         return;
   139         return;
   140 #endif
   140 #endif
   141 
   141 
   142     if (m_impl->hasOneRef())
   142     if (m_impl->hasOneRef() && gNameCache )
   143         gNameCache->remove(m_impl);
   143         gNameCache->remove(m_impl);
   144     m_impl->deref();
   144     m_impl->deref();
   145 }
   145 }
   146 
   146 
   147 void QualifiedName::setPrefix(const AtomicString& prefix)
   147 void QualifiedName::setPrefix(const AtomicString& prefix)
   171         new ((void*)&anyName) QualifiedName(nullAtom, starAtom, starAtom);
   171         new ((void*)&anyName) QualifiedName(nullAtom, starAtom, starAtom);
   172         initialized = true;
   172         initialized = true;
   173     }
   173     }
   174 }
   174 }
   175 
   175 
       
   176 void QualifiedName::cleanup() 
       
   177 {
       
   178     if( gNameCache ) {
       
   179         gNameCache->clear();
       
   180         delete gNameCache;
       
   181         gNameCache=NULL;
       
   182     }
   176 }
   183 }
       
   184 
       
   185 }