Show
Ignore:
Timestamp:
08/04/08 12:23:14 (5 months ago)
Author:
mbensi
Message:

merge with webkit revision 35534

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/WebCore/loader/appcache/ApplicationCacheGroup.cpp

    r370 r429  
    4545namespace WebCore { 
    4646 
    47 ApplicationCacheGroup::ApplicationCacheGroup(const KURL& manifestURL
     47ApplicationCacheGroup::ApplicationCacheGroup(const KURL& manifestURL, bool isCopy
    4848    : m_manifestURL(manifestURL) 
    4949    , m_status(Idle) 
     
    5151    , m_frame(0) 
    5252    , m_storageID(0) 
     53    , m_isCopy(isCopy) 
    5354{ 
    5455} 
     
    5657ApplicationCacheGroup::~ApplicationCacheGroup() 
    5758{ 
     59    if (m_isCopy) { 
     60        ASSERT(m_newestCache); 
     61        ASSERT(m_caches.size() == 1); 
     62        ASSERT(m_caches.contains(m_newestCache.get())); 
     63        ASSERT(!m_cacheBeingUpdated); 
     64        ASSERT(m_associatedDocumentLoaders.isEmpty()); 
     65        ASSERT(m_cacheCandidates.isEmpty()); 
     66        ASSERT(m_newestCache->group() == this); 
     67         
     68        return; 
     69    } 
     70                
    5871    ASSERT(!m_newestCache); 
    5972    ASSERT(m_caches.isEmpty());