Lines Matching refs:destRect
170 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& destRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp)
179 fillWithSolidColor(ctxt, destRect, solidColor(), styleColorSpace, compositeOp);
194 FloatRect adjustedDestRect = destRect;
202 shouldUseSubimage = (interpolationQuality != kCGInterpolationNone) && (srcRect.size() != destRect.size() || !ctxt->getCTM().isIdentityOrTranslationOrFlipped());
203 float xScale = srcRect.width() / destRect.width();
204 float yScale = srcRect.height() / destRect.height();
225 adjustedDestRect.setLocation(FloatPoint(destRect.x() - srcRect.x() / xScale, destRect.y() - srcRect.y() / yScale));
229 CGContextClipToRect(context, destRect);
261 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect)
278 CGContextClipToRect(context, destRect);
280 CGContextTranslateCTM(context, destRect.x(), destRect.y() + destRect.height());
286 // We have to adjust the phase to deal with the fact we're in Cartesian space now (with the bottom left corner of destRect being
288 float adjustedX = phase.x() - destRect.x() + tileRect.x() * narrowPrecisionToFloat(patternTransform.a()); // We translated the context so that destRect.x() is the origin, so subtract it out.
289 float adjustedY = destRect.height() - (phase.y() - destRect.y() + tileRect.y() * narrowPrecisionToFloat(patternTransform.d()) + scaledTileHeight);