/external/webkit/WebCore/rendering/ |
RenderReplica.cpp | 62 void RenderReplica::paint(PaintInfo& paintInfo, int tx, int ty) 64 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseMask) 70 if (paintInfo.phase == PaintPhaseForeground) 74 paintInfo.context, paintInfo.rect, 77 else if (paintInfo.phase == PaintPhaseMask) 78 paintMask(paintInfo, tx, ty);
|
RenderReplaced.cpp | 95 void RenderReplaced::paint(PaintInfo& paintInfo, int tx, int ty) 97 if (!shouldPaint(paintInfo, tx, ty)) 103 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection)) 104 paintBoxDecorations(paintInfo, tx, ty); 106 if (paintInfo.phase == PaintPhaseMask) { 107 paintMask(paintInfo, tx, ty); 111 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()->outlineWidth() [all...] |
RenderSVGImage.cpp | 74 void RenderSVGImage::paint(PaintInfo& paintInfo, int, int) 76 if (paintInfo.context->paintingDisabled() || style()->visibility() == HIDDEN) 79 paintInfo.context->save(); 80 paintInfo.context->concatCTM(localToParentTransform()); 82 if (paintInfo.phase == PaintPhaseForeground) { 85 PaintInfo savedInfo(paintInfo); 87 if (prepareToRenderSVGContent(this, paintInfo, m_localBounds, filter)) { 95 paintInfo.context->drawImage(image(), DeviceColorSpace, destRect, srcRect) [all...] |
RenderMediaControlsChromium.cpp | 70 static bool paintMediaMuteButton(RenderObject* object, const RenderObject::PaintInfo& paintInfo, const IntRect& rect) 81 return paintMediaButton(paintInfo.context, rect, soundDisabled); 83 return paintMediaButton(paintInfo.context, rect, mediaElement->muted() ? soundNone: soundFull); 86 static bool paintMediaPlayButton(RenderObject* object, const RenderObject::PaintInfo& paintInfo, const IntRect& rect) 97 return paintMediaButton(paintInfo.context, rect, mediaPlayDisabled); 99 return paintMediaButton(paintInfo.context, rect, mediaElement->paused() ? mediaPlay : mediaPause); 102 static bool paintMediaSlider(RenderObject* object, const RenderObject::PaintInfo& paintInfo, const IntRect& rect [all...] |
RenderWidget.cpp | 219 void RenderWidget::paint(PaintInfo& paintInfo, int tx, int ty) 221 if (!shouldPaint(paintInfo, tx, ty)) 227 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection)) 228 paintBoxDecorations(paintInfo, tx, ty); 230 if (paintInfo.phase == PaintPhaseMask) { 231 paintMask(paintInfo, tx, ty); 235 if (!m_frameView || paintInfo.phase != PaintPhaseForeground || style()->visibility() != VISIBLE) 239 if (style()->highlight() != nullAtom && !paintInfo.context->paintingDisabled() [all...] |
RenderThemeMac.mm | 675 bool RenderThemeMac::paintTextField(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 677 LocalCurrentGraphicsContext localContext(paintInfo.context); 686 bool RenderThemeMac::paintCapsLockIndicator(RenderObject*, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 688 if (paintInfo.context->paintingDisabled()) 691 LocalCurrentGraphicsContext localContext(paintInfo.context); 692 wkDrawCapsLockIndicator(paintInfo.context->platformContext(), r); 697 bool RenderThemeMac::paintTextArea(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r [all...] |
RenderScrollbarPart.cpp | 167 RenderObject::PaintInfo paintInfo(graphicsContext, rect, PaintPhaseBlockBackground, false, 0, 0); 168 paint(paintInfo, tx, ty); 169 paintInfo.phase = PaintPhaseChildBlockBackgrounds; 170 paint(paintInfo, tx, ty); 171 paintInfo.phase = PaintPhaseFloat; 172 paint(paintInfo, tx, ty); 173 paintInfo.phase = PaintPhaseForeground; 174 paint(paintInfo, tx, ty); 175 paintInfo.phase = PaintPhaseOutline [all...] |
RenderMediaControls.cpp | 85 bool RenderMediaControls::paintMediaControlsPart(MediaControlElementType part, RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 91 paintThemePart(SafariTheme::MediaFullscreenButtonPart, paintInfo.context->platformContext(), r, NSRegularControlSize, determineState(o)); 98 paintThemePart(captionsVisible ? SafariTheme::MediaHideClosedCaptionsButtonPart : SafariTheme::MediaShowClosedCaptionsButtonPart, paintInfo.context->platformContext(), r, NSRegularControlSize, determineState(o)); 106 paintThemePart(audioEnabled ? SafariTheme::MediaMuteButtonPart : SafariTheme::MediaUnMuteButtonPart, paintInfo.context->platformContext(), r, NSRegularControlSize, determineState(o)); 113 paintThemePart(canPlay ? SafariTheme::MediaPlayButtonPart : SafariTheme::MediaPauseButtonPart, paintInfo.context->platformContext(), r, NSRegularControlSize, determineState(o)); 117 paintThemePart(SafariTheme::MediaSeekBackButtonPart, paintInfo.context->platformContext(), r, NSRegularControlSize, determineState(o)); 120 paintThemePart(SafariTheme::MediaSeekForwardButtonPart, paintInfo.context->platformContext(), r, NSRegularControlSize, determineState(o)); 124 STPaintProgressIndicator(SafariTheme::MediaType, paintInfo.context->platformContext(), r, NSRegularControlSize, 0, mediaElement->percentLoaded()); 128 paintThemePart(SafariTheme::MediaSliderThumbPart, paintInfo.context->platformContext(), r, NSRegularControlSize, determineState(o)) [all...] |
SVGRenderSupport.cpp | 79 bool SVGRenderBase::prepareToRenderSVGContent(RenderObject* object, RenderObject::PaintInfo& paintInfo, const FloatRect& repaintRect, SVGResourceFilter*& filter, SVGResourceFilter* rootFilter) 100 paintInfo.context->clip(repaintRect); 101 paintInfo.context->beginTransparencyLayer(opacity); 105 paintInfo.context->clip(repaintRect); 106 paintInfo.context->setShadow(IntSize(shadow->x, shadow->y), shadow->blur, shadow->color, style->colorSpace()); 107 paintInfo.context->beginTransparencyLayer(1.0f); 135 if (!masker->applyMask(paintInfo.context, object)) 142 clipper->applyClip(paintInfo.context, object->objectBoundingBox()); 149 if (!filter->prepareFilter(paintInfo.context, object) [all...] |
RenderThemeWince.cpp | 191 bool RenderThemeWince::paintButton(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) 226 bool RenderThemeWince::paintTextField(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) 243 bool RenderThemeWince::paintMenuList(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) 250 bool RenderThemeWince::paintMenuListButton(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) 365 bool RenderThemeWince::paintSearchField(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) 370 bool RenderThemeWince::paintSearchFieldCancelButton(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 379 paintInfo.context->save(); 380 paintInfo.context->addRoundedRectClip(cancelBounds, cancelRadius, cancelRadius, cancelRadius, cancelRadius); 381 paintInfo.context->fillRect(cancelBounds, buttonColor, DeviceColorSpace) [all...] |
RenderThemeSafari.cpp | 412 bool RenderThemeSafari::paintCheckbox(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 419 paintThemePart(SafariTheme::CheckboxPart, paintInfo.context->platformContext(), inflatedRect, controlSize, determineState(o)); 451 bool RenderThemeSafari::paintRadio(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 458 paintThemePart(RadioButtonPart, paintInfo.context->platformContext(), inflatedRect, controlSize, determineState(o)); 575 bool RenderThemeSafari::paintButton(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 604 paintThemePart(part, paintInfo.context->platformContext(), inflatedRect, controlSize, determineState(o)); 608 bool RenderThemeSafari::paintTextField(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r [all...] |
RenderHTMLCanvas.cpp | 59 void RenderHTMLCanvas::paintReplaced(PaintInfo& paintInfo, int tx, int ty) 63 static_cast<HTMLCanvasElement*>(node())->paint(paintInfo.context, rect);
|
RenderSVGContainer.cpp | 80 void RenderSVGContainer::paint(PaintInfo& paintInfo, int, int) 82 if (paintInfo.context->paintingDisabled() || !drawsContents()) 89 PaintInfo childPaintInfo(paintInfo); 111 if (paintInfo.phase == PaintPhaseForeground) 112 finishRenderSVGContent(this, childPaintInfo, filter, paintInfo.context); 122 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()->outlineWidth() && style()->visibility() == VISIBLE) 123 paintOutline(paintInfo.context, paintRectInParent.x(), paintRectInParent.y(), paintRectInParent.width(), paintRectInParen (…) [all...] |
RenderThemeChromiumMac.mm | 746 bool RenderThemeChromiumMac::paintTextField(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 748 LocalCurrentGraphicsContext localContext(paintInfo.context); 757 bool RenderThemeChromiumMac::paintCapsLockIndicator(RenderObject*, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 759 if (paintInfo.context->paintingDisabled()) 762 LocalCurrentGraphicsContext localContext(paintInfo.context); 763 wkDrawCapsLockIndicator(paintInfo.context->platformContext(), r); 768 bool RenderThemeChromiumMac::paintTextArea(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r [all...] |
RenderSVGRoot.cpp | 120 void RenderSVGRoot::paint(PaintInfo& paintInfo, int parentX, int parentY) 122 if (paintInfo.context->paintingDisabled()) 128 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection)) 129 paintBoxDecorations(paintInfo, borderBoxOriginInContainer.x(), borderBoxOriginInContainer.y()); 139 // Make a copy of the PaintInfo because applyTransformToPaintInfo will modify the damage rect. 140 RenderObject::PaintInfo childPaintInfo(paintInfo); 161 finishRenderSVGContent(this, childPaintInfo, filter, paintInfo.context) [all...] |
RenderTheme.cpp | 221 bool RenderTheme::paint(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) 226 if (paintInfo.context->updatingControlTints()) { 231 if (paintInfo.context->paintingDisabled()) 247 m_theme->paint(part, controlStatesForRenderer(o), const_cast<GraphicsContext*>(paintInfo.context), r, o->style()->effectiveZoom(), o->view()->frameView()); 258 return paintCheckbox(o, paintInfo, r); 260 return paintRadio(o, paintInfo, r); 266 return paintButton(o, paintInfo, r); 268 return paintInnerSpinButton(o, paintInfo, r); 270 return paintOuterSpinButton(o, paintInfo, r) [all...] |
RenderFieldset.cpp | 120 void RenderFieldset::paintBoxDecorations(PaintInfo& paintInfo, int tx, int ty) 122 if (!shouldPaintWithinRoot(paintInfo)) 129 return RenderBlock::paintBoxDecorations(paintInfo, tx, ty); 136 paintBoxShadow(paintInfo.context, tx, ty, w, h, style(), Normal); 138 paintFillLayers(paintInfo, style()->backgroundColor(), style()->backgroundLayers(), tx, ty, w, h); 139 paintBoxShadow(paintInfo.context, tx, ty, w, h, style(), Inset); 146 return paintBorderMinusLegend(paintInfo.context, tx, ty, w, h, style(), legend->x(), legend->width(), legendBottom); 150 GraphicsContext* graphicsContext = paintInfo.context; 158 paintBorder(paintInfo.context, tx, ty, w, h, style(), true, true) [all...] |
RenderFileUploadControl.cpp | 182 void RenderFileUploadControl::paintObject(PaintInfo& paintInfo, int tx, int ty) 188 if (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseChildBlockBackgrounds) { 193 paintInfo.context->save(); 194 paintInfo.context->clip(clipRect); 197 if (paintInfo.phase == PaintPhaseForeground) { 218 paintInfo.context->setFillColor(style()->color(), style()->colorSpace()); 221 paintInfo.context->drawBidiText(style()->font(), textRun, IntPoint(textX, textY)); 233 m_fileChooser->icon()->paint(paintInfo.context, IntRect(iconX, iconY, iconWidth, iconHeight)) [all...] |
RenderLineBoxList.cpp | 147 void RenderLineBoxList::paint(RenderBoxModelObject* renderer, RenderObject::PaintInfo& paintInfo, int tx, int ty) const 150 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection && paintInfo.phase != PaintPhaseOutline 151 && paintInfo.phase != PaintPhaseSelfOutline && paintInfo.phase != PaintPhaseChildOutlines && paintInfo.phase != PaintPhaseTextClip 152 && paintInfo.phase != PaintPhaseMask) 165 int yPos = firstLineBox()->topVisibleOverflow() - renderer->maximalOutlineSize(paintInfo.phase) [all...] |
InlineFlowBox.cpp | 624 void InlineFlowBox::paint(RenderObject::PaintInfo& paintInfo, int tx, int ty) 627 overflowRect.inflate(renderer()->maximalOutlineSize(paintInfo.phase)); 630 if (!paintInfo.rect.intersects(overflowRect)) 633 if (paintInfo.phase != PaintPhaseChildOutlines) { 634 if (paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) { 658 paintInfo.outlineObjects->add(inlineFlow); 660 } else if (paintInfo.phase == PaintPhaseMask) { 661 paintMask(paintInfo, tx, ty) [all...] |
RootInlineBox.cpp | 118 void RootInlineBox::paintEllipsisBox(RenderObject::PaintInfo& paintInfo, int tx, int ty) const 120 if (m_hasEllipsisBox && renderer()->shouldPaintWithinRoot(paintInfo) && renderer()->style()->visibility() == VISIBLE && 121 paintInfo.phase == PaintPhaseForeground) 122 ellipsisBox()->paint(paintInfo, tx, ty); 143 void RootInlineBox::paintCustomHighlight(RenderObject::PaintInfo& paintInfo, int tx, int ty, const AtomicString& highlightType) 145 if (!renderer()->shouldPaintWithinRoot(paintInfo) || renderer()->style()->visibility() != VISIBLE || paintInfo.phase != PaintPhaseForeground) 158 if (inflatedRect.intersects(paintInfo.rect) [all...] |
SVGInlineTextBox.cpp | 351 void SVGInlineTextBox::paintCharacters(RenderObject::PaintInfo& paintInfo, int tx, int ty, const SVGChar& svgChar, const UChar* chars, int length, SVGTextPaintInfo& textPaintInfo) 353 if (renderer()->style()->visibility() != VISIBLE || paintInfo.phase == PaintPhaseOutline) 356 ASSERT(paintInfo.phase != PaintPhaseSelfOutline && paintInfo.phase != PaintPhaseChildOutlines); 365 if (!haveSelection && paintInfo.phase == PaintPhaseSelection) 379 paintInfo.context->concatCTM(ctm); 383 if (paintInfo.phase != PaintPhaseSelection && !isPrinting && textPaintInfo.subphase == SVGTextPaintSubphaseBackground) { 386 if (styleToUse->highlight() != nullAtom && !paintInfo.context->paintingDisabled()) 391 paintCompositionBackground(paintInfo.context, tx, ty, styleToUse, font, [all...] |
InlineBox.cpp | 162 void InlineBox::paint(RenderObject::PaintInfo& paintInfo, int tx, int ty) 164 if (!renderer()->shouldPaintWithinRoot(paintInfo) || (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection)) 170 bool preservePhase = paintInfo.phase == PaintPhaseSelection || paintInfo.phase == PaintPhaseTextClip; 171 RenderObject::PaintInfo info(paintInfo); 172 info.phase = preservePhase ? paintInfo.phase : PaintPhaseBlockBackground [all...] |
/external/webkit/WebCore/platform/android/ |
RenderThemeAndroid.h | 77 virtual bool paintCheckbox(RenderObject*, const RenderObject::PaintInfo&, const IntRect&); 84 bool paintMediaMuteButton(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r); 85 bool paintMediaPlayButton(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r); 86 bool paintMediaSeekBackButton(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r); 87 bool paintMediaSeekForwardButton(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r); 88 bool paintMediaSliderTrack(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) [all...] |
RenderThemeAndroid.cpp | 64 static SkCanvas* getCanvasFromInfo(const RenderObject::PaintInfo& info) 212 bool RenderThemeAndroid::paintCheckbox(RenderObject* obj, const RenderObject::PaintInfo& info, const IntRect& rect) 218 bool RenderThemeAndroid::paintButton(RenderObject* obj, const RenderObject::PaintInfo& info, const IntRect& rect) 262 bool RenderThemeAndroid::paintMediaMuteButton(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& rect) 264 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::MUTE); 268 bool RenderThemeAndroid::paintMediaPlayButton(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& rect) 272 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::PLAY); 274 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::PAUSE) [all...] |