/external/chromium_org/third_party/WebKit/Source/core/fetch/ |
ImageResourceTest.cpp | 54 ResourcePtr<ImageResource> cachedImage = new ImageResource(ResourceRequest()); 55 cachedImage->setLoading(true); 58 cachedImage->addClient(&client); 61 cachedImage->responseReceived(ResourceResponse(KURL(), "multipart/x-mixed-replace", 0, String(), String())); 62 ASSERT_FALSE(cachedImage->resourceBuffer()); 63 ASSERT_FALSE(cachedImage->hasImage()); 70 cachedImage->responseReceived(ResourceResponse(KURL(), "image/svg+xml", svgDataLength, String(), String())); 71 ASSERT_FALSE(cachedImage->resourceBuffer()); 72 ASSERT_FALSE(cachedImage->hasImage()); 77 cachedImage->appendData(svgData, svgDataLength) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/ |
HTMLImageLoader.cpp | 64 ImageResource* cachedImage = image(); 67 ImageLoader::notifyFinished(cachedImage); 69 bool loadError = cachedImage->errorOccurred() || cachedImage->response().httpStatusCode() >= 400;
|
ImageDocument.cpp | 132 document()->cachedImage()->appendData(data, length); 139 ImageResource* cachedImage = document()->cachedImage(); 140 cachedImage->finish(); 141 cachedImage->setResponse(document()->frame()->loader().documentLoader()->response()); 145 IntSize size = flooredIntSize(cachedImage->imageSizeForRenderer(document()->imageElement()->renderer(), 1.0f)); 224 LayoutSize imageSize = m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->renderer(), pageZoomFactor(this)); 238 LayoutSize imageSize = m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->renderer(), pageZoomFactor(this)); 277 if (m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->renderer(), pageZoomFactor(this)).isEmpty()) 293 LayoutSize imageSize = m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->renderer(), 1.0f) [all...] |
ImageDocument.h | 43 ImageResource* cachedImage();
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
ImageFrameGenerator.cpp | 90 const ScaledImageFragment* cachedImage = 0; 92 cachedImage = tryToLockCompleteCache(scaledSize, index); 93 if (cachedImage) 94 return cachedImage; 98 cachedImage = tryToScale(0, scaledSize, index); 99 if (cachedImage) 100 return cachedImage; 102 cachedImage = tryToResumeDecodeAndScale(scaledSize, index); 103 if (cachedImage) 104 return cachedImage; [all...] |
ImageDecodingStoreTest.cpp | 108 const ScaledImageFragment* cachedImage = 0; 109 if (ImageDecodingStore::instance()->lockCache(m_generator.get(), size, index, &cachedImage)) 110 return cachedImage; 114 void unlockCache(const ScaledImageFragment* cachedImage) 116 ImageDecodingStore::instance()->unlockCache(m_generator.get(), cachedImage); 130 const ScaledImageFragment* cachedImage = lockCache(size); 131 if (!cachedImage) 133 ImageDecodingStore::instance()->unlockCache(m_generator.get(), cachedImage); 225 const ScaledImageFragment* cachedImage = lockCache(SkISize::Make(1, 1)); 226 ASSERT_TRUE(cachedImage); [all...] |
ImageDecodingStore.cpp | 90 bool ImageDecodingStore::lockCache(const ImageFrameGenerator* generator, const SkISize& scaledSize, size_t index, const ScaledImageFragment** cachedImage) 92 ASSERT(cachedImage); 101 return lockCacheEntryInternal(iter->value.get(), cachedImage, &cacheEntriesToDelete); 105 void ImageDecodingStore::unlockCache(const ImageFrameGenerator* generator, const ScaledImageFragment* cachedImage) 110 cachedImage->bitmap().unlockPixels(); 111 ImageCacheMap::iterator iter = m_imageCacheMap.find(ImageCacheEntry::makeCacheKey(generator, cachedImage->scaledSize(), cachedImage->index(), cachedImage->generation())); 336 bool ImageDecodingStore::lockCacheEntryInternal(ImageCacheEntry* cacheEntry, const ScaledImageFragment** cachedImage, Vector<OwnPtr<CacheEntry> >* deletionList) 338 ScaledImageFragment* image = cacheEntry->cachedImage(); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
CanvasRenderingContext.cpp | 62 ImageResource* cachedImage = image->cachedImage(); 63 if (!cachedImage->image()->currentFrameHasSingleSecurityOrigin()) 66 return wouldTaintOrigin(cachedImage->response().url()) && !cachedImage->passesAccessControlCheck(canvas()->securityOrigin());
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSImageValue.cpp | 62 StyleFetchedImage* CSSImageValue::cachedImage(ResourceFetcher* fetcher, const ResourceLoaderOptions& options, CORSEnabled corsEnabled) 74 if (ResourcePtr<ImageResource> cachedImage = fetcher->fetchImage(request)) 75 m_image = StyleFetchedImage::create(cachedImage.get()); 85 if (Resource* cachedResource = toStyleFetchedImage(m_image)->cachedImage())
|
CSSImageValue.h | 41 StyleFetchedImage* cachedImage(ResourceFetcher*, const ResourceLoaderOptions&, CORSEnabled); 42 StyleFetchedImage* cachedImage(ResourceFetcher* fetcher) { return cachedImage(fetcher, ResourceFetcher::defaultResourceOptions(), NotCORSEnabled); }
|
CSSCursorImageValue.cpp | 121 StyleImage* CSSCursorImageValue::cachedImage(ResourceFetcher* loader, float deviceScaleFactor) 137 StyleFetchedImage* cachedImage = svgImageValue->cachedImage(loader); 138 m_image = cachedImage; 139 return cachedImage; 144 m_image = toCSSImageValue(m_imageValue.get())->cachedImage(loader); 178 return toStyleFetchedImage(m_image)->cachedImage()->url().string();
|
CSSCursorImageValue.h | 54 StyleImage* cachedImage(ResourceFetcher*, float deviceScaleFactor);
|
CSSImageSetValue.cpp | 107 if (ResourcePtr<ImageResource> cachedImage = loader->fetchImage(request)) { 108 m_imageSet = StyleFetchedImageSet::create(cachedImage.get(), image.scaleFactor, this); 166 if (Resource* cachedResource = toStyleFetchedImageSet(m_imageSet)->cachedImage())
|
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
ImageBitmapTest.cpp | 96 ASSERT_EQ(imageBitmapNoCrop->bitmapImage().get(), imageElement->cachedImage()->image()); 97 ASSERT_EQ(imageBitmapInteriorCrop->bitmapImage().get(), imageElement->cachedImage()->image()); 98 ASSERT_EQ(imageBitmapExteriorCrop->bitmapImage().get(), imageElement->cachedImage()->image()); 101 ASSERT_NE(emptyImage.get(), imageElement->cachedImage()->image()); 140 ASSERT_EQ(imageNoCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResourcePriorityLow); 141 ASSERT_EQ(imageInteriorCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResourcePriorityLow); 142 ASSERT_EQ(imageExteriorCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResourcePriorityLow); 143 ASSERT_EQ(imageOutsideCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResourcePriorityLow); 153 ASSERT_EQ(imageNoCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResourcePriorityHigh); 154 ASSERT_EQ(imageInteriorCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResourcePriorityHigh) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderImage.cpp | 148 if (!m_altText.isEmpty() && setImageSizeForAltText(m_imageResource->cachedImage())) 170 if (m_imageResource->cachedImage() && m_imageResource->cachedImage()->hasDevicePixelRatioHeaderValue()) 171 m_imageDevicePixelRatio = 1 / m_imageResource->cachedImage()->devicePixelRatioHeaderValue(); 191 imageSizeChanged = setImageSizeForAltText(m_imageResource->cachedImage()); 294 if (newImage == m_imageResource->cachedImage()) { 494 if (m_imageResource->cachedImage() && !m_imageResource->cachedImage()->isLoaded()) 513 return m_imageResource->cachedImage() && m_imageResource->cachedImage()->currentFrameKnownToBeOpaque(this) [all...] |
RenderImageResourceStyleImage.cpp | 52 m_cachedImage = toStyleFetchedImage(m_styleImage)->cachedImage();
|
RenderImage.h | 47 ImageResource* cachedImage() const { return m_imageResource ? m_imageResource->cachedImage() : 0; }
|
RenderImageResource.h | 53 ImageResource* cachedImage() const { return m_cachedImage.get(); }
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/ |
StyleFetchedImage.h | 58 virtual ImageResource* cachedImage() const OVERRIDE { return m_image.get(); }
|
ShapeValue.h | 75 bool isImageValid() const { return image() && image()->cachedImage() && image()->cachedImage()->hasImage(); }
|
StyleFetchedImageSet.h | 73 virtual ImageResource* cachedImage() const OVERRIDE { return m_bestFitImage.get(); }
|
StyleImage.h | 69 virtual ImageResource* cachedImage() const { return 0; }
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
Clipboard.cpp | 225 setDragImageResource(toHTMLImageElement(image)->cachedImage(), location); 262 if (image->cachedImage() && !image->cachedImage()->errorOccurred()) 263 return image->cachedImage(); 271 ImageResource* cachedImage = getImageResource(element); 272 if (!cachedImage || !cachedImage->imageForRenderer(element->renderer()) || !cachedImage->isLoaded()) 275 SharedBuffer* imageBuffer = cachedImage->imageForRenderer(element->renderer())->data(); 279 String imageExtension = cachedImage->image()->filenameExtension() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/ |
ShapeOutsideInfo.cpp | 48 return shapeValue->isImageValid() && checkShapeImageOrigin(box->document(), *(shapeValue->image()->cachedImage()));
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
PageSerializer.cpp | 228 ImageResource* cachedImage = imageElement->cachedImage(); 229 addImageToResources(cachedImage, imageElement->renderer(), url); 234 ImageResource* cachedImage = inputElement->imageLoader()->image(); 235 addImageToResources(cachedImage, inputElement->renderer(), url); 358 addImageToResources(styleImage->cachedImage(), 0, styleImage->cachedImage()->url());
|