Lines Matching defs:rects
592 static bool shouldPaintBoundsRect(const IntRect& bounds, const Vector<IntRect>& rects)
597 if (rects.size() <= 1 || rects.size() > rectThreshold)
600 // Attempt to guess whether or not we should use the region bounds rect or the individual rects.
605 for (size_t i = 0; i < rects.size(); ++i)
606 rectsArea += rects[i].width() * rects[i].height();
642 Vector<IntRect> rects = m_dirtyRegion.rects();
644 if (shouldPaintBoundsRect(bounds, rects)) {
645 rects.clear();
646 rects.append(bounds);
663 for (size_t i = 0; i < rects.size(); ++i) {
664 m_webPage.drawRect(*graphicsContext, rects[i]);
668 updateInfo.updateRects.append(rects[i]);