Home | History | Annotate | Download | only in paint

Lines Matching defs:newRect

1247     IntRect newRect = innerBorder.rect();
1254 overshoot = newRadii.topLeft().width() + newRadii.topRight().width() - newRect.width();
1257 newRect.setWidth(newRect.width() + overshoot);
1259 newRect.move(-overshoot, 0);
1264 if (maxRadii > newRect.height())
1265 newRect.setHeight(maxRadii);
1269 overshoot = newRadii.bottomLeft().width() + newRadii.bottomRight().width() - newRect.width();
1272 newRect.setWidth(newRect.width() + overshoot);
1274 newRect.move(-overshoot, 0);
1279 if (maxRadii > newRect.height()) {
1280 newRect.move(0, newRect.height() - maxRadii);
1281 newRect.setHeight(maxRadii);
1286 overshoot = newRadii.topLeft().height() + newRadii.bottomLeft().height() - newRect.height();
1289 newRect.setHeight(newRect.height() + overshoot);
1291 newRect.move(0, -overshoot);
1296 if (maxRadii > newRect.width())
1297 newRect.setWidth(maxRadii);
1301 overshoot = newRadii.topRight().height() + newRadii.bottomRight().height() - newRect.height();
1304 newRect.setHeight(newRect.height() + overshoot);
1306 newRect.move(0, -overshoot);
1311 if (maxRadii > newRect.width()) {
1312 newRect.move(newRect.width() - maxRadii, 0);
1313 newRect.setWidth(maxRadii);
1318 return RoundedRect(newRect, newRadii);