Home
last modified time | relevance | path

Searched refs:cachedImage (Results 1 – 25 of 41) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/core/fetch/
DImageResourceTest.cpp88 ResourcePtr<ImageResource> cachedImage = new ImageResource(ResourceRequest()); in TEST() local
89 cachedImage->setLoading(true); in TEST()
92 cachedImage->addClient(&client); in TEST()
95cachedImage->responseReceived(ResourceResponse(KURL(), "multipart/x-mixed-replace", 0, nullAtom, S… in TEST()
96 ASSERT_FALSE(cachedImage->resourceBuffer()); in TEST()
97 ASSERT_FALSE(cachedImage->hasImage()); in TEST()
104cachedImage->responseReceived(ResourceResponse(KURL(), "image/svg+xml", svgDataLength, nullAtom, S… in TEST()
105 ASSERT_FALSE(cachedImage->resourceBuffer()); in TEST()
106 ASSERT_FALSE(cachedImage->hasImage()); in TEST()
111 cachedImage->appendData(svgData, svgDataLength); in TEST()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderImage.cpp160 …if (m_imageResource->cachedImage() && m_imageResource->cachedImage()->hasDevicePixelRatioHeaderVal… in imageChanged()
161 m_imageDevicePixelRatio = 1 / m_imageResource->cachedImage()->devicePixelRatioHeaderValue(); in imageChanged()
173 imageSizeChanged = setImageSizeForAltText(m_imageResource->cachedImage()); in imageChanged()
266 if (newImage == m_imageResource->cachedImage()) { in notifyFinished()
313 if (m_imageResource->cachedImage() && !m_imageResource->cachedImage()->isLoaded()) in foregroundIsKnownToBeOpaqueInRect()
332 …return m_imageResource->cachedImage() && m_imageResource->cachedImage()->currentFrameKnownToBeOpaq… in foregroundIsKnownToBeOpaqueInRect()
400 …if (!m_imageResource || !m_imageResource->cachedImage() || m_imageResource->cachedImage()->isLoade… in updateImageLoadingPriorities()
423 …oadPriorityOptimizer()->notifyImageResourceVisibility(m_imageResource->cachedImage(), status, scre… in updateImageLoadingPriorities()
461 ImageResource* cachedImage = m_imageResource->cachedImage(); in embeddedContentBox() local
462 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage()) in embeddedContentBox()
[all …]
DRenderImage.h52 …ImageResource* cachedImage() const { return m_imageResource ? m_imageResource->cachedImage() : 0; } in cachedImage() function
DRenderImageResourceStyleImage.cpp52 m_cachedImage = toStyleFetchedImage(m_styleImage)->cachedImage(); in initialize()
DHitTestResult.cpp271 if (image->cachedImage() && !image->cachedImage()->errorOccurred()) in image()
272 return image->cachedImage()->imageForRenderer(image); in image()
DRenderImageResource.h51 ImageResource* cachedImage() const { return m_cachedImage.get(); } in cachedImage() function
/external/chromium_org/third_party/WebKit/Source/core/html/
DImageDocument.cpp131 if (document()->cachedImage()) in appendBytes()
132 document()->cachedImage()->appendData(data, length); in appendBytes()
141 if (!isStopped() && document()->imageElement() && document()->cachedImage()) { in finish()
142 ImageResource* cachedImage = document()->cachedImage(); in finish() local
143 cachedImage->finish(); in finish()
144 cachedImage->setResponse(document()->frame()->loader().documentLoader()->response()); in finish()
148 …IntSize size = flooredIntSize(cachedImage->imageSizeForRenderer(document()->imageElement()->render… in finish()
227 …LayoutSize imageSize = m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->rendere… in scale()
241 …LayoutSize imageSize = m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->rendere… in resizeImageToFit()
280 …if (m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->renderer(), pageZoomFactor… in imageUpdated()
[all …]
DHTMLImageLoader.cpp66 ImageResource* cachedImage = image(); in notifyFinished() local
69 ImageLoader::notifyFinished(cachedImage); in notifyFinished()
71 … bool loadError = cachedImage->errorOccurred() || cachedImage->response().httpStatusCode() >= 400; in notifyFinished()
DHTMLImageElement.cpp346 if (!imageLoader().image() && !renderImageResource->cachedImage()) in attach()
570 if (!complete() || !cachedImage()) { in getSourceImageForCanvas()
575 if (cachedImage()->errorOccurred()) { in getSourceImageForCanvas()
580 RefPtr<Image> sourceImage = cachedImage()->imageForRenderer(renderer()); in getSourceImageForCanvas()
592 ImageResource* image = cachedImage(); in wouldTaintOrigin()
600 ImageResource* image = cachedImage(); in sourceSize()
611 ImageResource* image = cachedImage(); in defaultDestinationSize()
654 return cachedImage()->response().url(); in sourceURL()
DImageDocument.h48 ImageResource* cachedImage();
/external/chromium_org/third_party/WebKit/Source/core/frame/
DImageBitmapTest.cpp92 ASSERT_EQ(imageBitmapNoCrop->bitmapImage().get(), imageElement->cachedImage()->image()); in TEST_F()
93 ASSERT_EQ(imageBitmapInteriorCrop->bitmapImage().get(), imageElement->cachedImage()->image()); in TEST_F()
94 ASSERT_EQ(imageBitmapExteriorCrop->bitmapImage().get(), imageElement->cachedImage()->image()); in TEST_F()
97 ASSERT_NE(emptyImage.get(), imageElement->cachedImage()->image()); in TEST_F()
136 …ASSERT_EQ(memoryCache()->priority(imageNoCrop->cachedImage()), MemoryCacheLiveResourcePriorityLow); in TEST_F()
137 …ASSERT_EQ(memoryCache()->priority(imageInteriorCrop->cachedImage()), MemoryCacheLiveResourcePriori… in TEST_F()
138 …ASSERT_EQ(memoryCache()->priority(imageExteriorCrop->cachedImage()), MemoryCacheLiveResourcePriori… in TEST_F()
139 …ASSERT_EQ(memoryCache()->priority(imageOutsideCrop->cachedImage()), MemoryCacheLiveResourcePriorit… in TEST_F()
149 …ASSERT_EQ(memoryCache()->priority(imageNoCrop->cachedImage()), MemoryCacheLiveResourcePriorityHigh… in TEST_F()
150 …ASSERT_EQ(memoryCache()->priority(imageInteriorCrop->cachedImage()), MemoryCacheLiveResourcePriori… in TEST_F()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSCursorImageValue.cpp124 StyleImage* CSSCursorImageValue::cachedImage(ResourceFetcher* loader, float deviceScaleFactor) in cachedImage() function in blink::CSSCursorImageValue
141 StyleFetchedImage* cachedImage = svgImageValue->cachedImage(loader); in cachedImage() local
142 m_image = cachedImage; in cachedImage()
143 return cachedImage; in cachedImage()
148 m_image = toCSSImageValue(m_imageValue.get())->cachedImage(loader); in cachedImage()
182 return toStyleFetchedImage(m_image)->cachedImage()->url().string(); in cachedImageURL()
DCSSImageValue.cpp57 StyleFetchedImage* CSSImageValue::cachedImage(ResourceFetcher* fetcher, const ResourceLoaderOptions… in cachedImage() function in blink::CSSImageValue
70 if (ResourcePtr<ImageResource> cachedImage = fetcher->fetchImage(request)) in cachedImage() local
71 m_image = StyleFetchedImage::create(cachedImage.get()); in cachedImage()
84 ImageResource* resource = m_image->cachedImage(); in restoreCachedResourceIfNeeded()
96 if (Resource* cachedResource = toStyleFetchedImage(m_image)->cachedImage()) in hasFailedOrCanceledSubresources()
DCSSImageValue.h49 StyleFetchedImage* cachedImage(ResourceFetcher*, const ResourceLoaderOptions&);
50 …StyleFetchedImage* cachedImage(ResourceFetcher* fetcher) { return cachedImage(fetcher, ResourceFet… in cachedImage() function
DCSSImageSetValue.cpp113 if (ResourcePtr<ImageResource> cachedImage = loader->fetchImage(request)) { in cachedImageSet() local
114 … m_imageSet = StyleFetchedImageSet::create(cachedImage.get(), image.scaleFactor, this); in cachedImageSet()
177 if (Resource* cachedResource = toStyleFetchedImageSet(m_imageSet)->cachedImage()) in hasFailedOrCanceledSubresources()
DCSSCrossfadeValue.cpp69 StyleFetchedImage* styleImageResource = toCSSImageValue(value)->cachedImage(fetcher); in cachedImageForCSSValue()
73 return styleImageResource->cachedImage(); in cachedImageForCSSValue()
DCSSCursorImageValue.h54 StyleImage* cachedImage(ResourceFetcher*, float deviceScaleFactor);
/external/chromium_org/third_party/WebKit/Source/core/clipboard/
DDataTransfer.cpp224 setDragImageResource(toHTMLImageElement(*image).cachedImage(), location); in setDragImage()
272 if (image->cachedImage() && !image->cachedImage()->errorOccurred()) in getImageResource()
273 return image->cachedImage(); in getImageResource()
281 ImageResource* cachedImage = getImageResource(element); in writeImageToDataObject() local
282 …if (!cachedImage || !cachedImage->imageForRenderer(element->renderer()) || !cachedImage->isLoaded(… in writeImageToDataObject()
285 SharedBuffer* imageBuffer = cachedImage->imageForRenderer(element->renderer())->data(); in writeImageToDataObject()
289 String imageExtension = cachedImage->image()->filenameExtension(); in writeImageToDataObject()
293 String filename = cachedImage->response().suggestedFilename(); in writeImageToDataObject()
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DRenderSVGImage.cpp73 ImageResource* cachedImage = m_imageResource->cachedImage(); in forceNonUniformScaling() local
74 if (!cachedImage) in forceNonUniformScaling()
79 cachedImage->computeIntrinsicDimensions(intrinsicWidth, intrinsicHeight, intrinsicRatio); in forceNonUniformScaling()
/external/chromium_org/third_party/WebKit/Source/core/page/
DPageSerializer.cpp231 ImageResource* cachedImage = imageElement.cachedImage(); in serializeFrame() local
232 addImageToResources(cachedImage, imageElement.renderer(), url); in serializeFrame()
237 ImageResource* cachedImage = inputElement.imageLoader()->image(); in serializeFrame() local
238 addImageToResources(cachedImage, inputElement.renderer(), url); in serializeFrame()
365 addImageToResources(styleImage->cachedImage(), 0, styleImage->cachedImage()->url()); in retrieveResourcesForCSSValue()
/external/chromium_org/third_party/WebKit/Source/core/imagebitmap/
DImageBitmapFactories.cpp56 if (ImageResource* cachedImage = image->cachedImage()) in sizeFor() local
57 … return cachedImage->imageSizeForRenderer(image->renderer(), 1.0f); // FIXME: Not sure about this. in sizeFor()
91 if (!image->cachedImage()) { in createImageBitmap()
95 if (image->cachedImage()->image()->isSVGImage()) { in createImageBitmap()
103 if (!image->cachedImage()->image()->currentFrameHasSingleSecurityOrigin()) { in createImageBitmap()
107 …if (!image->cachedImage()->passesAccessControlCheck(eventTarget.toDOMWindow()->document()->securit… in createImageBitmap()
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/
DShapeValue.h74 return image()->cachedImage() && image()->cachedImage()->hasImage(); in isImageValid()
DStyleFetchedImage.h58 virtual ImageResource* cachedImage() const OVERRIDE { return m_image.get(); } in cachedImage() function
/external/chromium_org/third_party/WebKit/Source/core/loader/
DImageLoader.cpp438 ImageResource* cachedImage = imageResource->cachedImage(); in updateRenderer() local
439 if (m_image != cachedImage && (m_imageComplete || !cachedImage)) in updateRenderer()
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
DStyleResourceLoader.cpp77 return imageValue->cachedImage(fetcher, options); in doLoadPendingImage()
87 return cursorImageValue->cachedImage(fetcher, deviceScaleFactor); in doLoadPendingImage()

12