Home | History | Annotate | Download | only in rendering

Lines Matching refs:visibleRect

59 LayoutRect ScrollAlignment::getRectToExpose(const LayoutRect& visibleRect, const LayoutRect& exposeRect, const ScrollAlignment& alignX, const ScrollAlignment& alignY)
63 LayoutRect exposeRectX(exposeRect.x(), visibleRect.y(), exposeRect.width(), visibleRect.height());
64 LayoutUnit intersectWidth = intersection(visibleRect, exposeRectX).width();
70 } else if (intersectWidth == visibleRect.width()) {
84 // (1) exposeRect to the right of and smaller than visibleRect
85 // (2) exposeRect to the left of and larger than visibleRect
86 if ((exposeRect.maxX() > visibleRect.maxX() && exposeRect.width() < visibleRect.width())
87 || (exposeRect.maxX() < visibleRect.maxX() && exposeRect.width() > visibleRect.width())) {
95 x = visibleRect.x();
97 x = exposeRect.maxX() - visibleRect.width();
99 x = exposeRect.x() + (exposeRect.width() - visibleRect.width()) / 2;
105 LayoutRect exposeRectY(visibleRect.x(), exposeRect.y(), visibleRect.width(), exposeRect.height());
106 LayoutUnit intersectHeight = intersection(visibleRect, exposeRectY).height();
110 } else if (intersectHeight == visibleRect.height()) {
124 // (1) exposeRect below and smaller than visibleRect
125 // (2) exposeRect above and larger than visibleRect
126 if ((exposeRect.maxY() > visibleRect.maxY() && exposeRect.height() < visibleRect.height())
127 || (exposeRect.maxY() < visibleRect.maxY() && exposeRect.height() > visibleRect.height())) {
135 y = visibleRect.y();
137 y = exposeRect.maxY() - visibleRect.height();
139 y = exposeRect.y() + (exposeRect.height() - visibleRect.height()) / 2;
143 return LayoutRect(LayoutPoint(x, y), visibleRect.size());