Home | History | Annotate | Download | only in rendering

Lines Matching refs:newRect

2288     IntRect newRect = innerBorder.rect();
2295 overshoot = newRadii.topLeft().width() + newRadii.topRight().width() - newRect.width();
2298 newRect.setWidth(newRect.width() + overshoot);
2300 newRect.move(-overshoot, 0);
2305 if (maxRadii > newRect.height())
2306 newRect.setHeight(maxRadii);
2310 overshoot = newRadii.bottomLeft().width() + newRadii.bottomRight().width() - newRect.width();
2313 newRect.setWidth(newRect.width() + overshoot);
2315 newRect.move(-overshoot, 0);
2320 if (maxRadii > newRect.height()) {
2321 newRect.move(0, newRect.height() - maxRadii);
2322 newRect.setHeight(maxRadii);
2327 overshoot = newRadii.topLeft().height() + newRadii.bottomLeft().height() - newRect.height();
2330 newRect.setHeight(newRect.height() + overshoot);
2332 newRect.move(0, -overshoot);
2337 if (maxRadii > newRect.width())
2338 newRect.setWidth(maxRadii);
2342 overshoot = newRadii.topRight().height() + newRadii.bottomRight().height() - newRect.height();
2345 newRect.setHeight(newRect.height() + overshoot);
2347 newRect.move(0, -overshoot);
2352 if (maxRadii > newRect.width()) {
2353 newRect.move(newRect.width() - maxRadii, 0);
2354 newRect.setWidth(maxRadii);
2359 return RoundedRect(newRect, newRadii);