Home | History | Annotate | Download | only in frame

Lines Matching full:srcrect

43     IntRect srcRect = intersection(cropRect, IntRect(0, 0, image->width(), image->height()));
44 m_bitmapRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size());
45 m_bitmapOffset = srcRect.location();
47 if (!srcRect.width() || !srcRect.height())
64 IntRect srcRect = intersection(cropRect, videoRect);
65 IntRect dstRect(IntPoint(), srcRect.size());
72 c->translate(-srcRect.x(), -srcRect.y());
75 m_bitmapRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size());
87 IntRect srcRect = intersection(cropRect, IntRect(IntPoint(), canvas->size()));
88 m_bitmapRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size());
97 IntRect srcRect = intersection(cropRect, IntRect(IntPoint(), data->size()));
102 if (srcRect.width() > 0 && srcRect.height() > 0)
103 buf->putByteArray(Premultiplied, data->data(), data->size(), srcRect, IntPoint(std::min(0, -cropRect.x()), std::min(0, -cropRect.y())));
106 m_bitmapRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size());
116 IntRect srcRect = intersection(cropRect, oldBitmapRect);
117 m_bitmapRect = IntRect(IntPoint(std::max(0, oldBitmapRect.x() - cropRect.x()), std::max(0, oldBitmapRect.y() - cropRect.y())), srcRect.size());
121 m_bitmapOffset = srcRect.location();
132 IntRect srcRect = intersection(cropRect, IntRect(IntPoint(), image->size()));
134 m_bitmapRect = IntRect(IntPoint(std::max(0, -cropRect.x()), std::max(0, -cropRect.y())), srcRect.size());
202 void ImageBitmap::adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const
204 FloatRect intersectRect = intersection(m_bitmapRect, *srcRect);
207 FloatRect newDstRect(FloatPoint(intersectRect.location() - srcRect->location()), m_bitmapRect.size());
208 newDstRect.scale(dstRect->width() / srcRect->width() * intersectRect.width() / m_bitmapRect.width(),
209 dstRect->height() / srcRect->height() * intersectRect.height() / m_bitmapRect.height());
211 *srcRect = newSrcRect;