Lines Matching defs:scroll_rect

46     damaged_rect.set_y(scroll_rect.y());
47 damaged_rect.set_height(scroll_rect.height());
49 damaged_rect.set_x(scroll_rect.x());
52 damaged_rect.set_x(scroll_rect.right() + dx);
57 damaged_rect.set_x(scroll_rect.x());
58 damaged_rect.set_width(scroll_rect.width());
60 damaged_rect.set_y(scroll_rect.y());
63 damaged_rect.set_y(scroll_rect.bottom() + dy);
69 return scroll_rect.Intersect(damaged_rect);
85 return !update_.scroll_rect.IsEmpty() || !update_.paint_rects.empty();
97 ret.scroll_rect = update_.scroll_rect;
137 if (!update_.scroll_rect.IsEmpty()) {
140 } else if (update_.scroll_rect.Contains(rect)) {
160 if (!update_.scroll_rect.IsEmpty() && update_.scroll_rect != clip_rect) {
175 update_.scroll_rect = clip_rect;
180 update_.scroll_rect = Rect();
186 if (update_.scroll_rect.Contains(update_.paint_rects[i])) {
193 } else if (update_.scroll_rect.Intersects(update_.paint_rects[i])) {
210 result = update_.scroll_rect.Intersect(result);
218 if (!update_.scroll_rect.Intersects(rect))
221 if (!update_.scroll_rect.Contains(rect))
226 // rect comes too close to the area of the scroll_rect. If so, then we
232 if (update_.scroll_rect.Contains(existing_rect))
235 int scroll_area = update_.scroll_rect.size().GetArea();
243 Rect scroll_rect = update_.scroll_rect;
244 update_.scroll_rect = Rect();
246 InvalidateRect(scroll_rect);
250 // Combine paint rects down to at most two rects: one inside the scroll_rect
251 // and one outside the scroll_rect. If there is no scroll_rect, then just
259 if (update_.scroll_rect.IsEmpty()) {
267 if (update_.scroll_rect.Contains(existing_rect)) {