/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
GraphicsContextAnnotator.h | 35 #define ANNOTATE_GRAPHICS_CONTEXT(paintInfo, renderer) \ 37 if (UNLIKELY(paintInfo.context->annotationMode())) \ 38 scopedGraphicsContextAnnotator.annotate(paintInfo, renderer) 43 struct PaintInfo; 58 void annotate(const PaintInfo&, const RenderObject*);
|
RenderReplica.cpp | 74 void RenderReplica::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 76 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 78 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseMask) 83 if (paintInfo.phase == PaintPhaseForeground) { 87 LayerPaintingInfo paintingInfo(rootPaintingLayer, paintInfo.rect, PaintBehaviorNormal, LayoutSize(), 0, paintInfo.renderRegion); 89 layer()->parent()->paintLayer(paintInfo.context, paintingInfo, flags); 90 } else if (paintInfo.phase == PaintPhaseMask [all...] |
RenderWidget.cpp | 228 void RenderWidget::paintContents(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 237 IntRect paintRect = paintInfo.rect; 243 paintInfo.context->translate(widgetPaintOffset); 246 m_widget->paint(paintInfo.context, paintRect); 249 paintInfo.context->translate(-widgetPaintOffset); 254 if (paintInfo.overlapTestRequests && runOverlapTests) { 255 ASSERT(!paintInfo.overlapTestRequests->contains(this)); 256 paintInfo.overlapTestRequests->set(this, m_widget->frameRect()); 261 void RenderWidget::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset [all...] |
RenderMediaControls.cpp | 34 #include "core/rendering/PaintInfo.h" 69 static bool paintMediaMuteButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) 82 return paintMediaButton(paintInfo.context, rect, soundDisabled); 85 return paintMediaButton(paintInfo.context, rect, soundLevel0); 88 return paintMediaButton(paintInfo.context, rect, soundLevel1); 91 return paintMediaButton(paintInfo.context, rect, soundLevel2); 93 return paintMediaButton(paintInfo.context, rect, soundLevel3); 96 static bool paintMediaPlayButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect [all...] |
RenderHTMLCanvas.cpp | 34 #include "core/rendering/PaintInfo.h" 56 void RenderHTMLCanvas::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 58 GraphicsContext* context = paintInfo.context; 68 paintInfo.context->save(); 69 paintInfo.context->clip(pixelSnappedIntRect(contentRect));
|
RenderDetailsMarker.cpp | 26 #include "core/rendering/PaintInfo.h" 114 void RenderDetailsMarker::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 116 if (paintInfo.phase != PaintPhaseForeground || style()->visibility() != VISIBLE) { 117 RenderBlock::paint(paintInfo, paintOffset); 124 overflowRect.inflate(maximalOutlineSize(paintInfo.phase)); 126 if (!paintInfo.rect.intersects(pixelSnappedIntRect(overflowRect))) 130 paintInfo.context->setStrokeColor(color); 131 paintInfo.context->setStrokeStyle(SolidStroke); 132 paintInfo.context->setStrokeThickness(1.0f) [all...] |
GraphicsContextAnnotator.cpp | 35 #include "core/rendering/PaintInfo.h" 81 void GraphicsContextAnnotator::annotate(const PaintInfo& paintInfo, const RenderObject* object) 85 ASSERT(paintInfo.context); 88 AnnotationModeFlags mode = paintInfo.context->annotationMode(); 99 paintPhase = paintPhaseName(paintInfo.phase); 124 m_context = paintInfo.context;
|
RenderReplaced.cpp | 109 void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 111 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 113 if (!shouldPaint(paintInfo, paintOffset)) 118 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection)) 119 paintBoxDecorations(paintInfo, adjustedPaintOffset); 121 if (paintInfo.phase == PaintPhaseMask) { 122 paintMask(paintInfo, adjustedPaintOffset); 126 if (paintInfo.phase == PaintPhaseClippingMask && (!hasLayer() || !layer()->hasCompositedClippingMask()) [all...] |
RenderFieldset.cpp | 29 #include "core/rendering/PaintInfo.h" 138 void RenderFieldset::paintBoxDecorations(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 140 if (!paintInfo.shouldPaintWithinRoot(this)) 146 return RenderBlock::paintBoxDecorations(paintInfo, paintOffset); 161 if (!boxShadowShouldBeAppliedToBackground(determineBackgroundBleedAvoidance(paintInfo.context))) 162 paintBoxShadow(paintInfo, paintRect, style(), Normal); 163 paintFillLayers(paintInfo, resolveColor(CSSPropertyBackgroundColor), style()->backgroundLayers(), paintRect); 164 paintBoxShadow(paintInfo, paintRect, style(), Inset); 170 GraphicsContext* graphicsContext = paintInfo.context [all...] |
RenderThemeChromiumSkia.cpp | 28 #include "core/rendering/PaintInfo.h" 190 bool RenderThemeChromiumSkia::paintTextArea(RenderObject* o, const PaintInfo& i, const IntRect& r) 201 bool RenderThemeChromiumSkia::paintSearchField(RenderObject* o, const PaintInfo& i, const IntRect& r) 227 bool RenderThemeChromiumSkia::paintSearchFieldCancelButton(RenderObject* cancelButtonObject, const PaintInfo& paintInfo, const IntRect& r) 249 paintInfo.context->drawImage(isPressed(cancelButtonObject) ? cancelPressedImage : cancelImage, paintingRect); 270 bool RenderThemeChromiumSkia::paintSearchFieldResultsDecoration(RenderObject* magnifierObject, const PaintInfo& paintInfo, const IntRect& r) 291 paintInfo.context->drawImage(magnifierImage, paintingRect); 295 bool RenderThemeChromiumSkia::paintMediaSliderTrack(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect [all...] |
RenderThemeChromiumMac.mm | 38 #import "core/rendering/PaintInfo.h" 752 bool RenderThemeChromiumMac::paintTextField(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) 754 LocalCurrentGraphicsContext localContext(paintInfo.context); 773 GraphicsContextStateSaver stateSaver(*paintInfo.context); 783 bool RenderThemeChromiumMac::paintCapsLockIndicator(RenderObject*, const PaintInfo& paintInfo, const IntRect& r) 785 if (paintInfo.context->paintingDisabled()) 789 LocalCurrentGraphicsContext localContext(paintInfo.context); [all...] |
RenderScrollbarPart.cpp | 30 #include "core/rendering/PaintInfo.h" 188 PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBlockBackground, PaintBehaviorNormal); 189 paint(paintInfo, paintOffset); 190 paintInfo.phase = PaintPhaseChildBlockBackgrounds; 191 paint(paintInfo, paintOffset); 192 paintInfo.phase = PaintPhaseFloat; 193 paint(paintInfo, paintOffset); 194 paintInfo.phase = PaintPhaseForeground; 195 paint(paintInfo, paintOffset) [all...] |
RenderTableRow.cpp | 34 #include "core/rendering/PaintInfo.h" 240 void RenderTableRow::paintOutlineForRowIfNeeded(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 243 PaintPhase paintPhase = paintInfo.phase; 245 paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, size())); 248 void RenderTableRow::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 251 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 253 paintOutlineForRowIfNeeded(paintInfo, paintOffset); 257 if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == PaintPhaseChildBlockBackground) [all...] |
RenderTheme.cpp | 47 #include "core/rendering/PaintInfo.h" 242 bool RenderTheme::paint(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) 247 if (paintInfo.context->updatingControlTints()) { 252 if (paintInfo.context->paintingDisabled()) 258 return paintUsingFallbackTheme(o, paintInfo, r); 268 m_platformTheme->paint(part, controlStatesForRenderer(o), const_cast<GraphicsContext*>(paintInfo.context), r, o->style()->effectiveZoom(), o->view()->frameView()); 279 return paintCheckbox(o, paintInfo, r); 281 return paintRadio(o, paintInfo, r); 285 return paintButton(o, paintInfo, r) [all...] |
RenderFileUploadControl.cpp | 30 #include "core/rendering/PaintInfo.h" 89 void RenderFileUploadControl::paintObject(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 95 GraphicsContextStateSaver stateSaver(*paintInfo.context, false); 96 if (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseChildBlockBackgrounds) { 102 paintInfo.context->clip(clipRect); 105 if (paintInfo.phase == PaintPhaseForeground) { 139 paintInfo.context->setFillColor(resolveColor(CSSPropertyColor)); 142 paintInfo.context->drawBidiText(font, textRunPaintInfo, IntPoint(roundToInt(textX), roundToInt(textY))) [all...] |
RenderLineBoxList.cpp | 34 #include "core/rendering/PaintInfo.h" 189 bool RenderLineBoxList::lineIntersectsDirtyRect(RenderBoxModelObject* renderer, InlineFlowBox* box, const PaintInfo& paintInfo, const LayoutPoint& offset) const 192 LayoutUnit logicalTop = min<LayoutUnit>(box->logicalTopVisualOverflow(root->lineTop()), root->selectionTop()) - renderer->maximalOutlineSize(paintInfo.phase); 193 LayoutUnit logicalBottom = box->logicalBottomVisualOverflow(root->lineBottom()) + renderer->maximalOutlineSize(paintInfo.phase); 195 return rangeIntersectsRect(renderer, logicalTop, logicalBottom, paintInfo.rect, offset); 198 void RenderLineBoxList::paint(RenderBoxModelObject* renderer, PaintInfo& paintInfo, const LayoutPoint& paintOffset) const 201 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection && paintInfo.phase != PaintPhaseOutlin [all...] |
RenderEmbeddedObject.cpp | 35 #include "core/rendering/PaintInfo.h" 108 void RenderEmbeddedObject::paintContents(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 114 RenderPart::paintContents(paintInfo, paintOffset); 117 void RenderEmbeddedObject::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 120 RenderReplaced::paint(paintInfo, paintOffset); 124 RenderPart::paint(paintInfo, paintOffset); 127 void RenderEmbeddedObject::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOffset [all...] |
RenderThemeChromiumAndroid.cpp | 32 #include "core/rendering/PaintInfo.h" 94 bool RenderThemeChromiumAndroid::paintMediaOverlayPlayButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) 96 return RenderMediaControls::paintMediaControlsPart(MediaOverlayPlayButton, object, paintInfo, rect);
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
SVGInlineFlowBox.cpp | 36 void SVGInlineFlowBox::paintSelectionBackground(PaintInfo& paintInfo) 38 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection); 39 ASSERT(!paintInfo.context->paintingDisabled()); 41 PaintInfo childPaintInfo(paintInfo); 50 void SVGInlineFlowBox::paint(PaintInfo& paintInfo, const LayoutPoint&, LayoutUnit, LayoutUnit) 52 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection) [all...] |
RenderSVGForeignObject.cpp | 48 void RenderSVGForeignObject::paint(PaintInfo& paintInfo, const LayoutPoint&) 50 if (paintInfo.context->paintingDisabled() 51 || (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection)) 54 PaintInfo childPaintInfo(paintInfo); 63 if (paintInfo.phase == PaintPhaseForeground) { 71 bool preservePhase = paintInfo.phase == PaintPhaseSelection || paintInfo.phase == PaintPhaseTextClip [all...] |
RenderSVGContainer.cpp | 108 void RenderSVGContainer::paint(PaintInfo& paintInfo, const LayoutPoint&) 110 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 112 if (paintInfo.context->paintingDisabled()) 120 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(repaintRect, localToParentTransform(), paintInfo)) 123 PaintInfo childPaintInfo(paintInfo); 151 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()->outlineWidth() && style()->visibility() == VISIBLE) { 153 paintOutline(paintInfo, paintRectInParent) [all...] |
RenderSVGImage.cpp | 125 void RenderSVGImage::paint(PaintInfo& paintInfo, const LayoutPoint&) 127 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 129 if (paintInfo.context->paintingDisabled() || style()->visibility() == HIDDEN || !m_imageResource->hasImage()) 133 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTransform, paintInfo)) 136 PaintInfo childPaintInfo(paintInfo); 158 void RenderSVGImage::paintForeground(PaintInfo& paintInfo) 169 useLowQualityScaling = ImageQualityController::imageQualityController()->shouldPaintAtLowQuality(paintInfo.context, this, image.get(), image.get(), LayoutSize(destRect.size())) [all...] |
RenderSVGResourceMarker.cpp | 78 void RenderSVGResourceMarker::applyViewportClip(PaintInfo& paintInfo) 81 paintInfo.context->clip(m_viewport); 138 void RenderSVGResourceMarker::draw(PaintInfo& paintInfo, const AffineTransform& transform) 148 PaintInfo info(paintInfo);
|
RenderSVGViewportContainer.cpp | 51 void RenderSVGViewportContainer::applyViewportClip(PaintInfo& paintInfo) 54 paintInfo.context->clip(m_viewport); 150 void RenderSVGViewportContainer::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 158 RenderSVGContainer::paint(paintInfo, paintOffset);
|
/frameworks/base/libs/hwui/ |
PathTessellator.cpp | 94 struct PaintInfo { 96 PaintInfo(const SkPaint* paint, const mat4 *transform) : 188 void getStrokeVerticesFromPerimeter(const PaintInfo& paintInfo, const Vector<Vertex>& perimeter, 205 paintInfo.scaleOffsetForStrokeWidth(totalOffset); 227 static inline void storeBeginEnd(const PaintInfo& paintInfo, const Vertex& center, 230 paintInfo.scaleOffsetForStrokeWidth(strokeOffset); 233 if (paintInfo.cap == SkPaint::kSquare_Cap) { 248 void getStrokeVerticesFromUnclosedVertices(const PaintInfo& paintInfo [all...] |