Home | History | Annotate | Download | only in rendering

Lines Matching refs:visibleRect

1353 IntRect RenderLayer::getRectToExpose(const IntRect &visibleRect, const IntRect &exposeRect, const ScrollAlignment& alignX, const ScrollAlignment& alignY)
1357 IntRect exposeRectX(exposeRect.x(), visibleRect.y(), exposeRect.width(), visibleRect.height());
1358 int intersectWidth = intersection(visibleRect, exposeRectX).width();
1364 else if (intersectWidth == visibleRect.width()) {
1375 // than the visibleRect, and not bigger than the visible area, then align with the right.
1376 if (scrollX == alignToClosestEdge && exposeRect.right() > visibleRect.right() && exposeRect.width() < visibleRect.width())
1382 x = visibleRect.x();
1384 x = exposeRect.right() - visibleRect.width();
1386 x = exposeRect.x() + (exposeRect.width() - visibleRect.width()) / 2;
1392 IntRect exposeRectY(visibleRect.x(), exposeRect.y(), visibleRect.width(), exposeRect.height());
1393 int intersectHeight = intersection(visibleRect, exposeRectY).height();
1397 else if (intersectHeight == visibleRect.height()) {
1408 // than the visibleRect, and not bigger than the visible area, then align with the bottom.
1409 if (scrollY == alignToClosestEdge && exposeRect.bottom() > visibleRect.bottom() && exposeRect.height() < visibleRect.height())
1415 y = visibleRect.y();
1417 y = exposeRect.bottom() - visibleRect.height();
1419 y = exposeRect.y() + (exposeRect.height() - visibleRect.height()) / 2;
1423 return IntRect(IntPoint(x, y), visibleRect.size());