void StyleResourceLoader::loadPendingShapeImage(RenderStyle* renderStyle, ShapeValue* shapeValue, float deviceScaleFactor) { if (!shapeValue) return; StyleImage* image = shapeValue->image(); if (!image || !image->isPendingImage()) return; ResourceLoaderOptions options = ResourceFetcher::defaultResourceOptions(); options.allowCredentials = DoNotAllowStoredCredentials; options.corsEnabled = IsCORSEnabled; shapeValue->setImage(doLoadPendingImage(m_fetcher, toStylePendingImage(image), deviceScaleFactor, options)); }
PassRefPtr<StyleImage> StyleResourceLoader::loadPendingImage(StylePendingImage* pendingImage, float deviceScaleFactor) { return doLoadPendingImage(m_fetcher, pendingImage, deviceScaleFactor, ResourceFetcher::defaultResourceOptions()); }