/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
D | RenderWidget.cpp | 228 void RenderWidget::paintContents(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintContents() argument 237 IntRect paintRect = paintInfo.rect; in paintContents() 243 paintInfo.context->translate(widgetPaintOffset); in paintContents() 246 m_widget->paint(paintInfo.context, paintRect); in paintContents() 249 paintInfo.context->translate(-widgetPaintOffset); in paintContents() 254 if (paintInfo.overlapTestRequests && runOverlapTests) { in paintContents() 255 ASSERT(!paintInfo.overlapTestRequests->contains(this)); in paintContents() 256 paintInfo.overlapTestRequests->set(this, m_widget->frameRect()); in paintContents() 261 void RenderWidget::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paint() argument 263 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); in paint() [all …]
|
D | RenderReplica.cpp | 74 void RenderReplica::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paint() argument 76 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); in paint() 78 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseMask) in paint() 83 if (paintInfo.phase == PaintPhaseForeground) { in paint() 87 …PaintingInfo paintingInfo(rootPaintingLayer, paintInfo.rect, PaintBehaviorNormal, LayoutSize(), 0,… in paint() 89 layer()->parent()->paintLayer(paintInfo.context, paintingInfo, flags); in paint() 90 } else if (paintInfo.phase == PaintPhaseMask) in paint() 91 paintMask(paintInfo, adjustedPaintOffset); in paint()
|
D | RenderMediaControls.cpp | 69 static bool paintMediaMuteButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& r… in paintMediaMuteButton() argument 82 return paintMediaButton(paintInfo.context, rect, soundDisabled); in paintMediaMuteButton() 85 return paintMediaButton(paintInfo.context, rect, soundLevel0); in paintMediaMuteButton() 88 return paintMediaButton(paintInfo.context, rect, soundLevel1); in paintMediaMuteButton() 91 return paintMediaButton(paintInfo.context, rect, soundLevel2); in paintMediaMuteButton() 93 return paintMediaButton(paintInfo.context, rect, soundLevel3); in paintMediaMuteButton() 96 static bool paintMediaPlayButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& r… in paintMediaPlayButton() argument 107 return paintMediaButton(paintInfo.context, rect, mediaPlayDisabled); in paintMediaPlayButton() 109 …return paintMediaButton(paintInfo.context, rect, mediaElement->canPlay() ? mediaPlay : mediaPause); in paintMediaPlayButton() 112 static bool paintMediaOverlayPlayButton(RenderObject* object, const PaintInfo& paintInfo, const Int… in paintMediaOverlayPlayButton() argument [all …]
|
D | RenderReplaced.cpp | 109 void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paint() argument 111 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); in paint() 113 if (!shouldPaint(paintInfo, paintOffset)) in paint() 118 …if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPha… in paint() 119 paintBoxDecorations(paintInfo, adjustedPaintOffset); in paint() 121 if (paintInfo.phase == PaintPhaseMask) { in paint() 122 paintMask(paintInfo, adjustedPaintOffset); in paint() 126 …if (paintInfo.phase == PaintPhaseClippingMask && (!hasLayer() || !layer()->hasCompositedClippingMa… in paint() 130 …if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()-… in paint() 131 paintOutline(paintInfo, paintRect); in paint() [all …]
|
D | RenderFieldset.cpp | 138 void RenderFieldset::paintBoxDecorations(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintBoxDecorations() argument 140 if (!paintInfo.shouldPaintWithinRoot(this)) in paintBoxDecorations() 146 return RenderBlock::paintBoxDecorations(paintInfo, paintOffset); in paintBoxDecorations() 161 if (!boxShadowShouldBeAppliedToBackground(determineBackgroundBleedAvoidance(paintInfo.context))) in paintBoxDecorations() 162 paintBoxShadow(paintInfo, paintRect, style(), Normal); in paintBoxDecorations() 163 …paintFillLayers(paintInfo, resolveColor(CSSPropertyBackgroundColor), style()->backgroundLayers(), … in paintBoxDecorations() 164 paintBoxShadow(paintInfo, paintRect, style(), Inset); in paintBoxDecorations() 170 GraphicsContext* graphicsContext = paintInfo.context; in paintBoxDecorations() 186 paintBorder(paintInfo, paintRect, style()); in paintBoxDecorations() 189 void RenderFieldset::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintMask() argument [all …]
|
D | RenderDetailsMarker.cpp | 114 void RenderDetailsMarker::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paint() argument 116 if (paintInfo.phase != PaintPhaseForeground || style()->visibility() != VISIBLE) { in paint() 117 RenderBlock::paint(paintInfo, paintOffset); in paint() 124 overflowRect.inflate(maximalOutlineSize(paintInfo.phase)); in paint() 126 if (!paintInfo.rect.intersects(pixelSnappedIntRect(overflowRect))) in paint() 130 paintInfo.context->setStrokeColor(color); in paint() 131 paintInfo.context->setStrokeStyle(SolidStroke); in paint() 132 paintInfo.context->setStrokeThickness(1.0f); in paint() 133 paintInfo.context->setFillColor(color); in paint() 136 paintInfo.context->fillPath(getPath(boxOrigin)); in paint()
|
D | RenderTheme.cpp | 242 bool RenderTheme::paint(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) in paint() argument 247 if (paintInfo.context->updatingControlTints()) { in paint() 252 if (paintInfo.context->paintingDisabled()) in paint() 258 return paintUsingFallbackTheme(o, paintInfo, r); in paint() 268 …->paint(part, controlStatesForRenderer(o), const_cast<GraphicsContext*>(paintInfo.context), r, o->… in paint() 279 return paintCheckbox(o, paintInfo, r); in paint() 281 return paintRadio(o, paintInfo, r); in paint() 285 return paintButton(o, paintInfo, r); in paint() 287 return paintInnerSpinButton(o, paintInfo, r); in paint() 290 return paintMenuList(o, paintInfo, r); in paint() [all …]
|
D | RenderThemeChromiumSkia.cpp | 227 …rchFieldCancelButton(RenderObject* cancelButtonObject, const PaintInfo& paintInfo, const IntRect& … in paintSearchFieldCancelButton() argument 249 …paintInfo.context->drawImage(isPressed(cancelButtonObject) ? cancelPressedImage : cancelImage, pai… in paintSearchFieldCancelButton() 270 …hFieldResultsDecoration(RenderObject* magnifierObject, const PaintInfo& paintInfo, const IntRect& … in paintSearchFieldResultsDecoration() argument 291 paintInfo.context->drawImage(magnifierImage, paintingRect); in paintSearchFieldResultsDecoration() 295 …omiumSkia::paintMediaSliderTrack(RenderObject* object, const PaintInfo& paintInfo, const IntRect& … in paintMediaSliderTrack() argument 297 return RenderMediaControls::paintMediaControlsPart(MediaSlider, object, paintInfo, rect); in paintMediaSliderTrack() 300 …kia::paintMediaVolumeSliderTrack(RenderObject* object, const PaintInfo& paintInfo, const IntRect& … in paintMediaVolumeSliderTrack() argument 302 return RenderMediaControls::paintMediaControlsPart(MediaVolumeSlider, object, paintInfo, rect); in paintMediaVolumeSliderTrack() 310 …omiumSkia::paintMediaSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& … in paintMediaSliderThumb() argument 312 return RenderMediaControls::paintMediaControlsPart(MediaSliderThumb, object, paintInfo, rect); in paintMediaSliderThumb() [all …]
|
D | RenderScrollbarPart.cpp | 188 …PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBlockBackground, PaintBe… in paintIntoRect() local 189 paint(paintInfo, paintOffset); in paintIntoRect() 190 paintInfo.phase = PaintPhaseChildBlockBackgrounds; in paintIntoRect() 191 paint(paintInfo, paintOffset); in paintIntoRect() 192 paintInfo.phase = PaintPhaseFloat; in paintIntoRect() 193 paint(paintInfo, paintOffset); in paintIntoRect() 194 paintInfo.phase = PaintPhaseForeground; in paintIntoRect() 195 paint(paintInfo, paintOffset); in paintIntoRect() 196 paintInfo.phase = PaintPhaseOutline; in paintIntoRect() 197 paint(paintInfo, paintOffset); in paintIntoRect()
|
D | RenderThemeChromiumMac.mm | 752 bool RenderThemeChromiumMac::paintTextField(RenderObject* o, const PaintInfo& paintInfo, const IntR… 754 LocalCurrentGraphicsContext localContext(paintInfo.context); 773 GraphicsContextStateSaver stateSaver(*paintInfo.context); 783 bool RenderThemeChromiumMac::paintCapsLockIndicator(RenderObject*, const PaintInfo& paintInfo, cons… 785 if (paintInfo.context->paintingDisabled()) 789 LocalCurrentGraphicsContext localContext(paintInfo.context); 845 bool RenderThemeChromiumMac::paintTextArea(RenderObject* o, const PaintInfo& paintInfo, const IntRe… 847 LocalCurrentGraphicsContext localContext(paintInfo.context); 880 bool RenderThemeChromiumMac::paintMenuList(RenderObject* o, const PaintInfo& paintInfo, const IntRe… 882 LocalCurrentGraphicsContext localContext(paintInfo.context); [all …]
|
D | RenderLineBoxList.cpp | 189 …ct(RenderBoxModelObject* renderer, InlineFlowBox* box, const PaintInfo& paintInfo, const LayoutPoi… in lineIntersectsDirtyRect() argument 192 …alOverflow(root->lineTop()), root->selectionTop()) - renderer->maximalOutlineSize(paintInfo.phase); in lineIntersectsDirtyRect() 193 …x->logicalBottomVisualOverflow(root->lineBottom()) + renderer->maximalOutlineSize(paintInfo.phase); in lineIntersectsDirtyRect() 195 return rangeIntersectsRect(renderer, logicalTop, logicalBottom, paintInfo.rect, offset); in lineIntersectsDirtyRect() 198 void RenderLineBoxList::paint(RenderBoxModelObject* renderer, PaintInfo& paintInfo, const LayoutPoi… in paint() argument 201 …if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection && paintInfo… in paint() 202 …&& paintInfo.phase != PaintPhaseSelfOutline && paintInfo.phase != PaintPhaseChildOutlines && paint… in paint() 203 && paintInfo.phase != PaintPhaseMask) in paint() 212 LayoutUnit outlineSize = renderer->maximalOutlineSize(paintInfo.phase); in paint() 213 if (!anyLineIntersectsRect(renderer, paintInfo.rect, paintOffset, outlineSize)) in paint() [all …]
|
D | RenderTableRow.cpp | 240 void RenderTableRow::paintOutlineForRowIfNeeded(PaintInfo& paintInfo, const LayoutPoint& paintOffse… in paintOutlineForRowIfNeeded() argument 243 PaintPhase paintPhase = paintInfo.phase; in paintOutlineForRowIfNeeded() 245 paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, size())); in paintOutlineForRowIfNeeded() 248 void RenderTableRow::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paint() argument 251 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); in paint() 253 paintOutlineForRowIfNeeded(paintInfo, paintOffset); in paint() 257 …if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == PaintPhaseChildBlockBackgro… in paint() 259 cell->paintBackgroundsBehindCell(paintInfo, paintOffset, this); in paint() 262 child->paint(paintInfo, paintOffset); in paint()
|
D | RenderFileUploadControl.cpp | 89 void RenderFileUploadControl::paintObject(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintObject() argument 95 GraphicsContextStateSaver stateSaver(*paintInfo.context, false); in paintObject() 96 …if (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseChildBlockBackgrounds)… in paintObject() 102 paintInfo.context->clip(clipRect); in paintObject() 105 if (paintInfo.phase == PaintPhaseForeground) { in paintObject() 139 paintInfo.context->setFillColor(resolveColor(CSSPropertyColor)); in paintObject() 142 …paintInfo.context->drawBidiText(font, textRunPaintInfo, IntPoint(roundToInt(textX), roundToInt(tex… in paintObject() 146 RenderBlock::paintObject(paintInfo, paintOffset); in paintObject()
|
D | GraphicsContextAnnotator.cpp | 81 void GraphicsContextAnnotator::annotate(const PaintInfo& paintInfo, const RenderObject* object) in annotate() argument 85 ASSERT(paintInfo.context); in annotate() 88 AnnotationModeFlags mode = paintInfo.context->annotationMode(); in annotate() 99 paintPhase = paintPhaseName(paintInfo.phase); in annotate() 124 m_context = paintInfo.context; in annotate()
|
D | RenderEmbeddedObject.cpp | 108 void RenderEmbeddedObject::paintContents(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintContents() argument 114 RenderPart::paintContents(paintInfo, paintOffset); in paintContents() 117 void RenderEmbeddedObject::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paint() argument 120 RenderReplaced::paint(paintInfo, paintOffset); in paint() 124 RenderPart::paint(paintInfo, paintOffset); in paint() 127 void RenderEmbeddedObject::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintReplaced() argument 132 if (paintInfo.phase == PaintPhaseSelection) in paintReplaced() 135 GraphicsContext* context = paintInfo.context; in paintReplaced()
|
D | RenderHTMLCanvas.cpp | 56 void RenderHTMLCanvas::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintReplaced() argument 58 GraphicsContext* context = paintInfo.context; in paintReplaced() 68 paintInfo.context->save(); in paintReplaced() 69 paintInfo.context->clip(pixelSnappedIntRect(contentRect)); in paintReplaced()
|
D | GraphicsContextAnnotator.h | 35 #define ANNOTATE_GRAPHICS_CONTEXT(paintInfo, renderer) \ argument 37 if (UNLIKELY(paintInfo.context->annotationMode())) \ 38 scopedGraphicsContextAnnotator.annotate(paintInfo, renderer)
|
D | InlineFlowBox.cpp | 1065 void InlineFlowBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit lineTop,… in paint() argument 1068 overflowRect.inflate(renderer()->maximalOutlineSize(paintInfo.phase)); in paint() 1072 if (!paintInfo.rect.intersects(pixelSnappedIntRect(overflowRect))) in paint() 1075 if (paintInfo.phase != PaintPhaseChildOutlines) { in paint() 1076 if (paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) { in paint() 1107 paintInfo.outlineObjects()->add(inlineFlow); in paint() 1110 } else if (paintInfo.phase == PaintPhaseMask) { in paint() 1111 paintMask(paintInfo, paintOffset); in paint() 1115 paintBoxDecorations(paintInfo, paintOffset); in paint() 1119 if (paintInfo.phase == PaintPhaseMask) in paint() [all …]
|
D | RenderImage.cpp | 301 void RenderImage::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintReplaced() argument 310 GraphicsContext* context = paintInfo.context; in paintReplaced() 313 if (paintInfo.phase == PaintPhaseSelection) in paintReplaced() 397 void RenderImage::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paint() argument 399 RenderReplaced::paint(paintInfo, paintOffset); in paint() 401 if (paintInfo.phase == PaintPhaseOutline) in paint() 402 paintAreaElementFocusRing(paintInfo); in paint() 405 void RenderImage::paintAreaElementFocusRing(PaintInfo& paintInfo) in paintAreaElementFocusRing() argument 412 if (paintInfo.context->paintingDisabled() && !paintInfo.context->updatingControlTints()) in paintAreaElementFocusRing() 437 GraphicsContextStateSaver savedContext(*paintInfo.context); in paintAreaElementFocusRing() [all …]
|
D | RenderListBox.cpp | 281 void RenderListBox::paintObject(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintObject() argument 288 if (paintInfo.phase == PaintPhaseForeground) { in paintObject() 291 paintItemForeground(paintInfo, paintOffset, index); in paintObject() 297 RenderBlock::paintObject(paintInfo, paintOffset); in paintObject() 299 switch (paintInfo.phase) { in paintObject() 304 paintScrollbar(paintInfo, paintOffset); in paintObject() 308 paintScrollbar(paintInfo, paintOffset); in paintObject() 314 paintItemBackground(paintInfo, paintOffset, index); in paintObject() 360 void RenderListBox::paintScrollbar(PaintInfo& paintInfo, const LayoutPoint& paintOffset) in paintScrollbar() argument 368 m_vBar->paint(paintInfo.context, paintInfo.rect); in paintScrollbar() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
D | SVGInlineFlowBox.cpp | 36 void SVGInlineFlowBox::paintSelectionBackground(PaintInfo& paintInfo) in paintSelectionBackground() argument 38 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection); in paintSelectionBackground() 39 ASSERT(!paintInfo.context->paintingDisabled()); in paintSelectionBackground() 41 PaintInfo childPaintInfo(paintInfo); in paintSelectionBackground() 50 void SVGInlineFlowBox::paint(PaintInfo& paintInfo, const LayoutPoint&, LayoutUnit, LayoutUnit) in paint() argument 52 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection); in paint() 53 ASSERT(!paintInfo.context->paintingDisabled()); in paint() 58 …SVGRenderingContext renderingContext(boxRenderer, paintInfo, SVGRenderingContext::SaveGraphicsCont… in paint() 64 child->paint(paintInfo, LayoutPoint(), 0, 0); in paint()
|
D | RenderSVGForeignObject.cpp | 48 void RenderSVGForeignObject::paint(PaintInfo& paintInfo, const LayoutPoint&) in paint() argument 50 if (paintInfo.context->paintingDisabled() in paint() 51 || (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection)) in paint() 54 PaintInfo childPaintInfo(paintInfo); in paint() 63 if (paintInfo.phase == PaintPhaseForeground) { in paint() 71 …bool preservePhase = paintInfo.phase == PaintPhaseSelection || paintInfo.phase == PaintPhaseTextCl… in paint() 73 childPaintInfo.phase = preservePhase ? paintInfo.phase : PaintPhaseBlockBackground; in paint()
|
D | RenderSVGContainer.cpp | 108 void RenderSVGContainer::paint(PaintInfo& paintInfo, const LayoutPoint&) in paint() argument 110 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); in paint() 112 if (paintInfo.context->paintingDisabled()) in paint() 120 …SVGRenderSupport::paintInfoIntersectsRepaintRect(repaintRect, localToParentTransform(), paintInfo)) in paint() 123 PaintInfo childPaintInfo(paintInfo); in paint() 151 …if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()-… in paint() 153 paintOutline(paintInfo, paintRectInParent); in paint()
|
D | RenderSVGImage.cpp | 125 void RenderSVGImage::paint(PaintInfo& paintInfo, const LayoutPoint&) in paint() argument 127 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); in paint() 129 …if (paintInfo.context->paintingDisabled() || style()->visibility() == HIDDEN || !m_imageResource->… in paint() 133 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTransform, paintInfo)) in paint() 136 PaintInfo childPaintInfo(paintInfo); in paint() 158 void RenderSVGImage::paintForeground(PaintInfo& paintInfo) in paintForeground() argument 169 …ageQualityController::imageQualityController()->shouldPaintAtLowQuality(paintInfo.context, this, i… in paintForeground() 171 …paintInfo.context->drawImage(image.get(), destRect, srcRect, CompositeSourceOver, DoNotRespectImag… in paintForeground()
|
D | SVGInlineTextBox.cpp | 190 void SVGInlineTextBox::paintSelectionBackground(PaintInfo& paintInfo) in paintSelectionBackground() argument 192 ASSERT(paintInfo.shouldPaintWithinRoot(renderer())); in paintSelectionBackground() 193 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection); in paintSelectionBackground() 204 bool paintSelectedTextOnly = paintInfo.phase == PaintPhaseSelection; in paintSelectionBackground() 244 GraphicsContextStateSaver stateSaver(*paintInfo.context); in paintSelectionBackground() 247 paintInfo.context->concatCTM(fragmentTransform); in paintSelectionBackground() 249 paintInfo.context->setFillColor(backgroundColor); in paintSelectionBackground() 250 …paintInfo.context->fillRect(selectionRectForTextFragment(fragment, fragmentStartPosition, fragment… in paintSelectionBackground() 258 void SVGInlineTextBox::paint(PaintInfo& paintInfo, const LayoutPoint&, LayoutUnit, LayoutUnit) in paint() argument 260 ASSERT(paintInfo.shouldPaintWithinRoot(renderer())); in paint() [all …]
|