Home | History | Annotate | Download | only in rendering

Lines Matching refs:visibleRect

2320 LayoutRect RenderLayer::getRectToExpose(const LayoutRect &visibleRect, const LayoutRect &exposeRect, const ScrollAlignment& alignX, const ScrollAlignment& alignY)
2324 LayoutRect exposeRectX(exposeRect.x(), visibleRect.y(), exposeRect.width(), visibleRect.height());
2325 LayoutUnit intersectWidth = intersection(visibleRect, exposeRectX).width();
2331 else if (intersectWidth == visibleRect.width()) {
2342 // than the visibleRect, and not bigger than the visible area, then align with the right.
2343 if (scrollX == alignToClosestEdge && exposeRect.maxX() > visibleRect.maxX() && exposeRect.width() < visibleRect.width())
2349 x = visibleRect.x();
2351 x = exposeRect.maxX() - visibleRect.width();
2353 x = exposeRect.x() + (exposeRect.width() - visibleRect.width()) / 2;
2359 LayoutRect exposeRectY(visibleRect.x(), exposeRect.y(), visibleRect.width(), exposeRect.height());
2360 LayoutUnit intersectHeight = intersection(visibleRect, exposeRectY).height();
2364 else if (intersectHeight == visibleRect.height()) {
2375 // than the visibleRect, and not bigger than the visible area, then align with the bottom.
2376 if (scrollY == alignToClosestEdge && exposeRect.maxY() > visibleRect.maxY() && exposeRect.height() < visibleRect.height())
2382 y = visibleRect.y();
2384 y = exposeRect.maxY() - visibleRect.height();
2386 y = exposeRect.y() + (exposeRect.height() - visibleRect.height()) / 2;
2390 return LayoutRect(LayoutPoint(x, y), visibleRect.size());