Beispiel #1
0
void CachedImage::load(CachedResourceLoader& cachedResourceLoader, const ResourceLoaderOptions& options)
{
    if (cachedResourceLoader.shouldPerformImageLoad(url()))
        CachedResource::load(cachedResourceLoader, options);
    else
        setLoading(false);
}
Beispiel #2
0
void CachedImage::load(CachedResourceLoader& loader)
{
    if (loader.shouldPerformImageLoad(url()))
        CachedResource::load(loader);
    else
        setLoading(false);

    if (m_loader) {
        m_allowSubsampling = m_loader->frameLoader()->frame().settings().imageSubsamplingEnabled();
        m_allowAsyncImageDecoding = m_loader->frameLoader()->frame().settings().asyncImageDecodingEnabled();
        m_showDebugBackground = m_loader->frameLoader()->frame().settings().showDebugBorders();
    }
}