Home | History | Annotate | Download | only in paint

Lines Matching defs:topWidth

912     int topWidth = computeBorderImageSide(ninePieceImage.borderSlices().top(), style->borderTopWidth(), topSlice, borderImageRect.height());
922 int borderSideHeight = std::max(1, topWidth + bottomWidth);
925 topWidth *= borderSideScaleFactor;
932 bool drawTop = topSlice > 0 && topWidth > 0;
936 && (imageHeight - topSlice - bottomSlice) > 0 && (borderImageRect.height() - topWidth - bottomWidth) > 0;
941 float destinationHeight = borderImageRect.height() - topWidth - bottomWidth;
948 float topSideScale = drawTop ? (float)topWidth / topSlice : 1;
954 // The top left corner rect is (tx, ty, leftWidth, topWidth)
957 graphicsContext->drawImage(image.get(), IntRect(borderImageRect.location(), IntSize(leftWidth, topWidth)),
971 graphicsContext->drawTiledImage(image.get(), IntRect(borderImageRect.x(), borderImageRect.y() + topWidth, leftWidth, destinationHeight),
978 // The top right corner rect is (tx + w - rightWidth, ty, rightWidth, topWidth)
981 graphicsContext->drawImage(image.get(), IntRect(borderImageRect.maxX() - rightWidth, borderImageRect.y(), rightWidth, topWidth),
994 graphicsContext->drawTiledImage(image.get(), IntRect(borderImageRect.maxX() - rightWidth, borderImageRect.y() + topWidth, rightWidth,
1004 graphicsContext->drawTiledImage(image.get(), IntRect(borderImageRect.x() + leftWidth, borderImageRect.y(), destinationWidth, topWidth),
1041 IntRect(borderImageRect.x() + leftWidth, borderImageRect.y() + topWidth, destinationWidth, destinationHeight),
1812 LayoutUnit topWidth = edges[BSTop].usedWidth() / 2;
1818 topWidth, bottomWidth, leftWidth, rightWidth,