Home | History | Annotate | Download | only in rendering

Lines Matching refs:paintInfo

154 void RenderWidget::paintContents(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
166 IntRect paintRect = paintInfo.rect;
172 paintInfo.context->translate(widgetPaintOffset.width(), widgetPaintOffset.height());
175 widget->paint(paintInfo.context, paintRect);
178 paintInfo.context->translate(-widgetPaintOffset.width(), -widgetPaintOffset.height());
183 if (paintInfo.overlapTestRequests && runOverlapTests) {
184 ASSERT(!paintInfo.overlapTestRequests->contains(this));
185 paintInfo.overlapTestRequests->set(this, widget->frameRect());
190 void RenderWidget::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
192 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this);
194 if (!shouldPaint(paintInfo, paintOffset))
199 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection))
200 paintBoxDecorations(paintInfo, adjustedPaintOffset);
202 if (paintInfo.phase == PaintPhaseMask) {
203 paintMask(paintInfo, adjustedPaintOffset);
207 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && hasOutline())
208 paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, size()));
210 if (paintInfo.phase != PaintPhaseForeground)
220 paintInfo.context->save();
223 clipRoundedInnerRect(paintInfo.context, borderRect, roundedInnerRect);
228 paintContents(paintInfo, paintOffset);
231 paintInfo.context->restore();
236 paintInfo.context->fillRect(pixelSnappedIntRect(selectionRect()), selectionBackgroundColor());
240 layer()->scrollableArea()->paintResizer(paintInfo.context, roundedIntPoint(adjustedPaintOffset), paintInfo.rect);