Home | History | Annotate | Download | only in graphics

Lines Matching refs:dstRect

94 void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color, CompositeOperator op)
101 ctxt->fillRect(dstRect, color);
119 void Image::draw(GraphicsContext* ctx, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator op, blink::WebBlendMode blendMode, RespectImageOrientationEnum)
121 draw(ctx, dstRect, srcRect, op, blendMode);
167 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect,
171 fillWithSolidColor(ctxt, dstRect, solidColor(), op);
187 float hRepetitions = std::max(1.0f, roundf(dstRect.width() / (tileScaleFactor.width() * srcRect.width())));
188 tileScaleFactor.setWidth(dstRect.width() / (srcRect.width() * hRepetitions));
191 float vRepetitions = std::max(1.0f, roundf(dstRect.height() / (tileScaleFactor.height() * srcRect.height())));
192 tileScaleFactor.setHeight(dstRect.height() / (srcRect.height() * vRepetitions));
208 hPhase -= (dstRect.width() - scaledTileWidth) / 2;
210 vPhase -= (dstRect.height() - scaledTileHeight) / 2;
211 FloatPoint patternPhase(dstRect.x() - hPhase, dstRect.y() - vPhase);
216 drawPattern(ctxt, srcRect, tileScaleFactor, patternPhase, op, dstRect);
219 drawPattern(ctxt, srcRect, tileScaleFactor, patternPhase, op, dstRect);