void CachedScript::destroyDecodedData() { m_script = String(); setDecodedSize(0); if (!MemoryCache::shouldMakeResourcePurgeableOnEviction() && isSafeToMakePurgeable()) makePurgeable(true); }
void CachedScript::destroyDecodedData() { m_script = String(); setDecodedSize(0); if (isSafeToMakePurgeable()) makePurgeable(true); }
void CachedImage::destroyDecodedData() { bool canDeleteImage = !m_image || (m_image->hasOneRef() && m_image->isBitmapImage()); if (isSafeToMakePurgeable() && canDeleteImage && !m_loading) { // Image refs the data buffer so we should not make it purgeable while the image is alive. // Invoking addClient() will reconstruct the image object. m_image = 0; setDecodedSize(0); makePurgeable(true); } else if (m_image && !m_errorOccurred) m_image->destroyDecodedData(); }
void CachedCSSStyleSheet::destroyDecodedData() { if (!m_parsedStyleSheetCache) return; m_parsedStyleSheetCache->removedFromMemoryCache(); m_parsedStyleSheetCache.clear(); setDecodedSize(0); if (!MemoryCache::shouldMakeResourcePurgeableOnEviction() && isSafeToMakePurgeable()) makePurgeable(true); }
void CachedCSSStyleSheet::destroyDecodedData() { if (!m_parsedStyleSheetCache) return; m_parsedStyleSheetCache->removedFromMemoryCache(); m_parsedStyleSheetCache.clear(); setDecodedSize(0); if (isSafeToMakePurgeable()) makePurgeable(true); }
void CachedScript::destroyDecodedData() { m_script = String(); unsigned extraSize = 0; #if USE(JSC) if (m_sourceProviderCache && m_clients.isEmpty()) m_sourceProviderCache->clear(); extraSize = m_sourceProviderCache ? m_sourceProviderCache->byteSize() : 0; #endif setDecodedSize(extraSize); if (!MemoryCache::shouldMakeResourcePurgeableOnEviction() && isSafeToMakePurgeable()) makePurgeable(true); }
void CachedCSSStyleSheet::allClientsRemoved() { if (isSafeToMakePurgeable()) makePurgeable(true); }
void CachedCSSStyleSheet::allClientsRemoved() { if (!MemoryCache::shouldMakeResourcePurgeableOnEviction() && isSafeToMakePurgeable()) makePurgeable(true); CachedResource::allClientsRemoved(); }