Lines Matching defs:slice
131 static void drawThreeSliceHorizontal(GraphicsContext* gc, const IntRect& rect, Image* img, int slice)
137 FloatRect srcRect(0, 0, slice, img->height());
145 srcRect = FloatRect(slice, 0, img->width() - 2 * slice, img->height());
150 static void drawThreeSliceVertical(GraphicsContext* gc, const IntRect& rect, Image* img, int slice)
156 FloatRect srcRect(0, 0, img->width(), slice);
164 srcRect = FloatRect(0, slice, img->width(), img->height() - 2 * slice);
169 static void drawNineSlice(GraphicsContext* gc, const IntRect& rect, double scale, Image* img, int slice)
175 FloatSize dstSlice(slice / scale, slice / scale);
176 FloatRect srcRect(0, 0, slice, slice);
189 srcRect = FloatRect(slice, 0, img->width() - 2 * slice, slice);
196 srcRect = FloatRect(0, slice, slice, img->height() - 2 * slice);
203 srcRect = FloatRect(slice, slice, img->width() - 2 * slice, img->height() - 2 * slice);