Home | History | Annotate | Download | only in rendering

Lines Matching refs:image

63     RenderImageScaleData(RenderImage* image, const IntSize& size, double time, bool lowQualityScale)
67 , m_highQualityRepaintTimer(image, &RenderImage::highQualityRepaintTimerFired)
102 static void imageDestroyed(RenderImage* image)
105 RenderImageScaleData* data = gImages->take(image);
114 static void highQualityRepaintTimerFired(RenderImage* image)
116 RenderImageScaleObserver::imageDestroyed(image);
117 image->repaint();
123 bool RenderImageScaleObserver::shouldImagePaintAtLowQuality(RenderImage* image, const IntSize& size)
125 // If the image is not a bitmap image, then none of this is relevant and we just paint at high
127 if (!image->image() || !image->image()->isBitmapImage())
130 // Make sure to use the unzoomed image size, since if a full page zoom is in effect, the image
132 IntSize imageSize(image->image()->width(), image->image()->height());
137 data = gImages->get(image);
142 gImages->remove(image);
149 if (image->document()->page()->inLowQualityImageInterpolationMode()) {
150 double totalPixels = static_cast<double>(image->image()->width()) * static_cast<double>(image->image()->height());
158 data = new RenderImageScaleData(image, size, currentTime(), false);
161 gImages->set(image, data);
217 // If we'll be displaying either alt text or an image, add some padding.
226 // Sets the image height and width to fit the alt text. Returns true if the
227 // image size changed.
233 // If we'll be displaying either text or an image, add a little padding.
239 if (newImage && newImage->image()) {
240 // imageSize() returns 0 for the error image. We need the true size of the
241 // error image, so we have to get it by grabbing image() directly.
242 imageWidth += newImage->image()->width() * style()->effectiveZoom();
243 imageHeight += newImage->image()->height() * style()->effectiveZoom();
274 // Set image dimensions, taking into account the size of the alt text.
280 // Image dimensions have been changed, see what needs to be done
285 // In the case of generated image content using :before/:after, we might not be in the
311 // The image changed rect is in source image coordinates (pre-zooming),
312 // so map from the bounds of the image to the contentsBox.
323 // Tell any potential compositing layers that the image needs updating.
338 // that the image is done and they can reference it directly.
349 image()->resetAnimation();
374 // Draw an outline rect where the image should be.
390 // the ouline rect so the error image/alt text doesn't draw on it.
394 if (errorOccurred() && !image()->isNull() && (usableWidth >= image()->width()) && (usableHeight >= image()->height())) {
395 // Center the error image, accounting for border and padding.
396 int centerX = (usableWidth - image()->width()) / 2;
399 int centerY = (usableHeight - image()->height()) / 2;
404 context->drawImage(image(), style()->colorSpace(), IntPoint(tx + imageX, ty + imageY));
417 // and only if it fits above the error image.
428 Image* img = image(cWidth, cHeight);
475 // FIXME: Clip the paths to the image bounding box.
493 Image* img = image(rect.width(), rect.height());
500 context->drawImage(image(rect.width(), rect.height()), style()->colorSpace(), rect, compositeOperator, useLowQualityScaling);
598 width = 0; // If the image is relatively-sized, set the width to 0 until there is a set container size.
607 // in SSR mode, we will fit the image to its container width
627 height = 0; // If the image is relatively-sized, set the height to 0 until there is a set container size.
636 // in SSR mode, we will fit the image to its container width
698 Image* RenderImage::nullImage()
700 return Image::nullImage();