Home | History | Annotate | Download | only in rendering

Lines Matching full:width

126     IntSize imageSize(image->width(), image->height());
146 double totalPixels = static_cast<double>(image->width()) * static_cast<double>(image->height());
312 // Objects that shrink to avoid floats normally use available line width when computing containing block width. However
314 // available width of the containing block. Therefore we don't use containingBlockWidthForContent() here, but instead explicitly
492 int width = w - bLeft - bRight - (includePadding ? pLeft + pRight : 0);
495 context->clip(IntRect(x, y, width, height));
633 int w = positioningAreaSize.width();
635 Length layerWidth = fillLayer->size().size.width();
641 w = layerWidth.calcValue(positioningAreaSize.width());
651 w = image->imageSize(this, style()->effectiveZoom()).width() * h / image->imageSize(this, style()->effectiveZoom()).height();
653 h = image->imageSize(this, style()->effectiveZoom()).height() * w / image->imageSize(this, style()->effectiveZoom()).width();
655 // If both width and height are auto, we just want to use the image's
657 w = image->imageSize(this, style()->effectiveZoom()).width();
666 float horizontalScaleFactor = static_cast<float>(positioningAreaSize.width()) / imageIntrinsicSize.width();
670 return IntSize(max<int>(1, imageIntrinsicSize.width() * scaleFactor), max<int>(1, imageIntrinsicSize.height() * scaleFactor));
722 positioningAreaSize = IntSize(toRenderBox(this)->width() - left - right, toRenderBox(this)->height() - top - bottom);
737 int xPosition = fillLayer->xPosition().calcMinValue(positioningAreaSize.width() - tileSize.width(), true);
739 phase.setX(tileSize.width() ? tileSize.width() - (xPosition + left) % tileSize.width() : 0);
743 destRect.setWidth(tileSize.width() + min(xPosition + left, 0));
822 int imageWidth = imageSize.width();
976 bool ignore_left = (renderRadii && topLeft.width() > 0) ||
980 bool ignore_right = (renderRadii && topRight.width() > 0) ||
987 x += topLeft.width();
988 x2 -= topRight.width();
1002 if (topLeft.width()) {
1005 bool applyLeftInnerClip = (style->borderLeftWidth() < topLeft.width())
1010 graphicsContext->addInnerRoundedRectClip(IntRect(leftX, leftY, topLeft.width() * 2, topLeft.height() * 2),
1024 if (topRight.width()) {
1025 int rightX = tx + w - topRight.width() * 2;
1026 bool applyRightInnerClip = (style->borderRightWidth() < topRight.width())
1031 graphicsContext->addInnerRoundedRectClip(IntRect(rightX, leftY, topRight.width() * 2, topRight.height() * 2),
1053 bool ignore_left = (renderRadii && bottomLeft.width() > 0) ||
1057 bool ignore_right = (renderRadii && bottomRight.width() > 0) ||
1064 x += bottomLeft.width();
1065 x2 -= bottomRight.width();
1074 if (bottomLeft.width()) {
1077 bool applyLeftInnerClip = (style->borderLeftWidth() < bottomLeft.width())
1082 graphicsContext->addInnerRoundedRectClip(IntRect(leftX, leftY, bottomLeft.width() * 2, bottomLeft.height() * 2),
1101 if (bottomRight.width()) {
1103 int rightX = tx + w - bottomRight.width() * 2;
1104 bool applyRightInnerClip = (style->borderRightWidth() < bottomRight.width())
1109 graphicsContext->addInnerRoundedRectClip(IntRect(rightX, rightY, bottomRight.width() * 2, bottomRight.height() * 2),
1148 if (!upperLeftBorderStylesMatch && topLeft.width()) {
1150 bool applyTopInnerClip = (style->borderLeftWidth() < topLeft.width())
1155 graphicsContext->addInnerRoundedRectClip(IntRect(topX, topY, topLeft.width() * 2, topLeft.height() * 2),
1169 if (!lowerLeftBorderStylesMatch && bottomLeft.width()) {
1171 bool applyBottomInnerClip = (style->borderLeftWidth() < bottomLeft.width())
1176 graphicsContext->addInnerRoundedRectClip(IntRect(topX, bottomY, bottomLeft.width() * 2, bottomLeft.height() * 2),
1216 if (!upperRightBorderStylesMatch && topRight.width()) {
1217 int topX = tx + w - topRight.width() * 2;
1219 bool applyTopInnerClip = (style->borderRightWidth() < topRight.width())
1224 graphicsContext->addInnerRoundedRectClip(IntRect(topX, topY, topRight.width() * 2, topRight.height() * 2),
1238 if (!lowerRightBorderStylesMatch && bottomRight.width()) {
1239 int bottomX = tx + w - bottomRight.width() * 2;
1241 bool applyBottomInnerClip = (style->borderRightWidth() < bottomRight.width())
1246 graphicsContext->addInnerRoundedRectClip(IntRect(bottomX, bottomY, bottomRight.width() * 2, bottomRight.height() * 2),
1308 rect.setWidth(rect.width() - (begin ? borderLeft() : 0) - (end ? borderRight() : 0));
1337 IntSize extraOffset(w + max(0, shadowOffset.width()) + shadowBlur + 2 * shadowSpread + 1, 0);
1418 holeRect.move(-max(shadowOffset.width(), 0) - shadowBlur, 0);
1419 holeRect.setWidth(holeRect.width() + max(shadowOffset.width(), 0) + shadowBlur);
1422 holeRect.setWidth(holeRect.width() - min(shadowOffset.width(), 0) + shadowBlur);
1437 IntSize extraOffset(2 * w + max(0, shadowOffset.width()) + shadowBlur - 2 * shadowSpread + 1, 0);
1438 context->translate(extraOffset.width(), extraOffset.height());