/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 | 73 void RenderReplica::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 75 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 77 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseMask) 82 if (paintInfo.phase == PaintPhaseForeground) { 86 LayerPaintingInfo paintingInfo(rootPaintingLayer, paintInfo.rect, PaintBehaviorNormal, LayoutSize(), 0); 88 layer()->parent()->paintLayer(paintInfo.context, paintingInfo, flags); 89 } else if (paintInfo.phase == PaintPhaseMask) 90 paintMask(paintInfo, adjustedPaintOffset) [all...] |
RenderWidget.cpp | 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 [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...] |
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;
|
RenderDetailsMarker.cpp | 27 #include "core/rendering/PaintInfo.h" 115 void RenderDetailsMarker::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 117 if (paintInfo.phase != PaintPhaseForeground || style()->visibility() != VISIBLE) { 118 RenderBlock::paint(paintInfo, paintOffset); 126 if (!paintInfo.rect.intersects(pixelSnappedIntRect(overflowRect))) 130 paintInfo.context->setStrokeColor(color); 131 paintInfo.context->setStrokeStyle(SolidStroke); 132 paintInfo.context->setStrokeThickness(1.0f); 133 paintInfo.context->setFillColor(color) [all...] |
RenderReplaced.cpp | 108 void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 110 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 112 if (!shouldPaint(paintInfo, paintOffset)) 117 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection)) 118 paintBoxDecorations(paintInfo, adjustedPaintOffset); 120 if (paintInfo.phase == PaintPhaseMask) { 121 paintMask(paintInfo, adjustedPaintOffset); 125 if (paintInfo.phase == PaintPhaseClippingMask && (!hasLayer() || !layer()->hasCompositedClippingMask()) [all...] |
RenderThemeChromiumSkia.cpp | 28 #include "core/rendering/PaintInfo.h" 185 bool RenderThemeChromiumSkia::paintTextArea(RenderObject* o, const PaintInfo& i, const IntRect& r) 196 bool RenderThemeChromiumSkia::paintSearchField(RenderObject* o, const PaintInfo& i, const IntRect& r) 222 bool RenderThemeChromiumSkia::paintSearchFieldCancelButton(RenderObject* cancelButtonObject, const PaintInfo& paintInfo, const IntRect& r) 246 paintInfo.context->drawImage(isPressed(cancelButtonObject) ? cancelPressedImage : cancelImage, paintingRect); 267 bool RenderThemeChromiumSkia::paintSearchFieldResultsDecoration(RenderObject* magnifierObject, const PaintInfo& paintInfo, const IntRect& r) 290 paintInfo.context->drawImage(magnifierImage, paintingRect); 294 bool RenderThemeChromiumSkia::paintMediaSliderTrack(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect [all...] |
RenderFieldset.cpp | 30 #include "core/rendering/PaintInfo.h" 139 void RenderFieldset::paintBoxDecorations(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 141 if (!paintInfo.shouldPaintWithinRoot(this)) 147 return RenderBlockFlow::paintBoxDecorations(paintInfo, paintOffset); 162 if (!boxShadowShouldBeAppliedToBackground(determineBackgroundBleedAvoidance(paintInfo.context))) 163 paintBoxShadow(paintInfo, paintRect, style(), Normal); 164 paintFillLayers(paintInfo, resolveColor(CSSPropertyBackgroundColor), style()->backgroundLayers(), paintRect); 165 paintBoxShadow(paintInfo, paintRect, style(), Inset); 171 GraphicsContext* graphicsContext = paintInfo.context [all...] |
RenderThemeChromiumMac.mm | 37 #import "core/rendering/PaintInfo.h" 760 bool RenderThemeChromiumMac::paintTextField(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) 762 LocalCurrentGraphicsContext localContext(paintInfo.context); 781 GraphicsContextStateSaver stateSaver(*paintInfo.context); 791 bool RenderThemeChromiumMac::paintCapsLockIndicator(RenderObject*, const PaintInfo& paintInfo, const IntRect& r) 793 if (paintInfo.context->paintingDisabled()) 797 LocalCurrentGraphicsContext localContext(paintInfo.context); [all...] |
RenderHTMLCanvas.cpp | 34 #include "core/rendering/PaintInfo.h" 52 void RenderHTMLCanvas::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 54 GraphicsContext* context = paintInfo.context; 64 paintInfo.context->save(); 65 paintInfo.context->clip(pixelSnappedIntRect(contentRect));
|
RenderScrollbarPart.cpp | 29 #include "core/rendering/PaintInfo.h" 185 PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBlockBackground, PaintBehaviorNormal); 186 paint(paintInfo, paintOffset); 187 paintInfo.phase = PaintPhaseChildBlockBackgrounds; 188 paint(paintInfo, paintOffset); 189 paintInfo.phase = PaintPhaseFloat; 190 paint(paintInfo, paintOffset); 191 paintInfo.phase = PaintPhaseForeground; 192 paint(paintInfo, paintOffset) [all...] |
RenderTableRow.cpp | 33 #include "core/rendering/PaintInfo.h" 221 void RenderTableRow::paintOutlineForRowIfNeeded(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 224 PaintPhase paintPhase = paintInfo.phase; 226 paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, size())); 229 void RenderTableRow::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 232 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 234 paintOutlineForRowIfNeeded(paintInfo, paintOffset); 237 if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == PaintPhaseChildBlockBackground [all...] |
RenderLineBoxList.cpp | 34 #include "core/rendering/PaintInfo.h" 187 bool RenderLineBoxList::lineIntersectsDirtyRect(RenderBoxModelObject* renderer, InlineFlowBox* box, const PaintInfo& paintInfo, const LayoutPoint& offset) const 193 return rangeIntersectsRect(renderer, logicalTop, logicalBottom, paintInfo.rect, offset); 196 void RenderLineBoxList::paint(RenderBoxModelObject* renderer, PaintInfo& paintInfo, const LayoutPoint& paintOffset) const 199 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection && paintInfo.phase != PaintPhaseOutline 200 && paintInfo.phase != PaintPhaseSelfOutline && paintInfo.phase != PaintPhaseChildOutlines && paintInfo.phase != (…) [all...] |
RenderFileUploadControl.cpp | 29 #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) { 138 paintInfo.context->setFillColor(resolveColor(CSSPropertyColor)); 141 paintInfo.context->drawBidiText(font, textRunPaintInfo, IntPoint(roundToInt(textX), roundToInt(textY))) [all...] |
RenderEmbeddedObject.cpp | 35 #include "core/rendering/PaintInfo.h" 106 void RenderEmbeddedObject::paintContents(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 112 RenderPart::paintContents(paintInfo, paintOffset); 115 void RenderEmbeddedObject::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 118 RenderReplaced::paint(paintInfo, paintOffset); 122 RenderPart::paint(paintInfo, paintOffset); 125 void RenderEmbeddedObject::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOffset [all...] |
RenderTheme.cpp | 47 #include "core/rendering/PaintInfo.h" 230 bool RenderTheme::paint(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) 235 if (paintInfo.context->updatingControlTints()) { 243 return paintUsingFallbackTheme(o, paintInfo, r); 253 m_platformTheme->paint(part, controlStatesForRenderer(o), const_cast<GraphicsContext*>(paintInfo.context), r, o->style()->effectiveZoom(), o->view()->frameView()); 264 return paintCheckbox(o, paintInfo, r); 266 return paintRadio(o, paintInfo, r); 270 return paintButton(o, paintInfo, r); 272 return paintInnerSpinButton(o, paintInfo, r) [all...] |
EllipsisBox.cpp | 25 #include "core/rendering/PaintInfo.h" 36 void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom) 38 GraphicsContext* context = paintInfo.context; 60 Color foreground = paintInfo.forceBlackText() ? Color::black : renderer().selectionForegroundColor(); 94 paintMarkupBox(paintInfo, paintOffset, lineTop, lineBottom, style); 116 void EllipsisBox::paintMarkupBox(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom, RenderStyle* style) 125 markupBox->paint(paintInfo, adjustedPaintOffset, lineTop, lineBottom);
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
SVGInlineFlowBox.cpp | 34 void SVGInlineFlowBox::paintSelectionBackground(PaintInfo& paintInfo) 36 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection); 37 ASSERT(!paintInfo.context->paintingDisabled()); 39 PaintInfo childPaintInfo(paintInfo); 48 void SVGInlineFlowBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit, LayoutUnit) 50 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection) [all...] |
RenderSVGForeignObject.cpp | 53 void RenderSVGForeignObject::paint(PaintInfo& paintInfo, const LayoutPoint&) 55 if (paintInfo.context->paintingDisabled() 56 || (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection)) 59 PaintInfo childPaintInfo(paintInfo); 68 if (paintInfo.phase == PaintPhaseForeground) { 76 bool preservePhase = paintInfo.phase == PaintPhaseSelection || paintInfo.phase == PaintPhaseTextClip [all...] |
RenderSVGViewportContainer.cpp | 26 #include "core/rendering/PaintInfo.h" 51 void RenderSVGViewportContainer::applyViewportClip(PaintInfo& paintInfo) 54 paintInfo.context->clip(m_viewport); 106 void RenderSVGViewportContainer::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 113 RenderSVGContainer::paint(paintInfo, paintOffset);
|
RenderSVGImage.cpp | 124 void RenderSVGImage::paint(PaintInfo& paintInfo, const LayoutPoint&) 126 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 128 if (paintInfo.context->paintingDisabled() 129 || paintInfo.phase != PaintPhaseForeground 135 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTransform, paintInfo)) 138 PaintInfo childPaintInfo(paintInfo); 162 void RenderSVGImage::paintForeground(PaintInfo& paintInfo) [all...] |
RenderSVGContainer.cpp | 109 void RenderSVGContainer::paint(PaintInfo& paintInfo, const LayoutPoint&) 111 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 113 if (paintInfo.context->paintingDisabled()) 121 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(repaintRect, localToParentTransform(), paintInfo)) 124 PaintInfo childPaintInfo(paintInfo); 156 if (paintInfo.phase == PaintPhaseForeground && style()->outlineWidth() && style()->visibility() == VISIBLE) { 158 paintOutline(paintInfo, paintRectInParent);
|
RenderSVGResourceMarker.cpp | 26 #include "core/rendering/PaintInfo.h" 73 void RenderSVGResourceMarker::applyViewportClip(PaintInfo& paintInfo) 76 paintInfo.context->clip(m_viewport); 133 void RenderSVGResourceMarker::draw(PaintInfo& paintInfo, const AffineTransform& transform) 143 PaintInfo info(paintInfo);
|
/frameworks/base/libs/hwui/ |
PathTessellator.cpp | 97 struct PaintInfo { 99 PaintInfo(const SkPaint* paint, const mat4& transform) : 207 void getStrokeVerticesFromPerimeter(const PaintInfo& paintInfo, const Vector<Vertex>& perimeter, 222 paintInfo.scaleOffsetForStrokeWidth(totalOffset); 244 static inline void storeBeginEnd(const PaintInfo& paintInfo, const Vertex& center, 247 paintInfo.scaleOffsetForStrokeWidth(strokeOffset); 250 if (paintInfo.cap == SkPaint::kSquare_Cap) { 266 void getStrokeVerticesFromUnclosedVertices(const PaintInfo& paintInfo [all...] |