/external/webkit/WebCore/rendering/ |
D | RenderReplaced.cpp | 108 void RenderReplaced::paint(PaintInfo& paintInfo, int tx, int ty) in paint() argument 110 if (!shouldPaint(paintInfo, tx, ty)) in paint() 116 …if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPha… in paint() 117 paintBoxDecorations(paintInfo, tx, ty); in paint() 119 if (paintInfo.phase == PaintPhaseMask) { in paint() 120 paintMask(paintInfo, tx, ty); in paint() 124 …if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()-… in paint() 125 paintOutline(paintInfo.context, tx, ty, width(), height(), style()); in paint() 127 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection) in paint() 130 if (!shouldPaintWithinRoot(paintInfo)) in paint() [all …]
|
D | RenderThemeSafari.cpp | 372 bool RenderThemeSafari::paintCheckbox(RenderObject* o, const RenderObject::PaintInfo& paintInfo, co… in paintCheckbox() argument 379 …paintThemePart(SafariTheme::CheckboxPart, paintInfo.context->platformContext(), inflatedRect, cont… in paintCheckbox() 411 bool RenderThemeSafari::paintRadio(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const… in paintRadio() argument 418 …paintThemePart(RadioButtonPart, paintInfo.context->platformContext(), inflatedRect, controlSize, d… in paintRadio() 535 bool RenderThemeSafari::paintButton(RenderObject* o, const RenderObject::PaintInfo& paintInfo, cons… in paintButton() argument 564 …paintThemePart(part, paintInfo.context->platformContext(), inflatedRect, controlSize, determineSta… in paintButton() 568 bool RenderThemeSafari::paintTextField(RenderObject* o, const RenderObject::PaintInfo& paintInfo, c… in paintTextField() argument 572 …paintThemePart(SafariTheme::TextFieldPart, paintInfo.context->platformContext(), r, (NSControlSize… in paintTextField() 580 …:paintCapsLockIndicator(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& … in paintCapsLockIndicator() argument 585 if (paintInfo.context->paintingDisabled()) in paintCapsLockIndicator() [all …]
|
D | RenderForeignObject.cpp | 47 void RenderForeignObject::paint(PaintInfo& paintInfo, int parentX, int parentY) in paint() argument 49 if (paintInfo.context->paintingDisabled()) in paint() 52 paintInfo.context->save(); in paint() 53 paintInfo.context->concatCTM(TransformationMatrix().translate(parentX, parentY)); in paint() 54 paintInfo.context->concatCTM(localTransform()); in paint() 55 paintInfo.context->concatCTM(translationForAttributes()); in paint() 56 paintInfo.context->clip(getClipRect(parentX, parentY)); in paint() 61 paintInfo.context->beginTransparencyLayer(opacity); in paint() 63 PaintInfo pi(paintInfo); in paint() 64 pi.rect = absoluteTransform().inverse().mapRect(paintInfo.rect); in paint() [all …]
|
D | RenderReplica.cpp | 56 void RenderReplica::paint(PaintInfo& paintInfo, int tx, int ty) in paint() argument 58 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseMask) in paint() 64 if (paintInfo.phase == PaintPhaseForeground) in paint() 68 paintInfo.context, paintInfo.rect, in paint() 72 else if (paintInfo.phase == PaintPhaseMask) in paint() 73 paintMask(paintInfo, tx, ty); in paint()
|
D | InlineFlowBox.cpp | 605 void InlineFlowBox::paint(RenderObject::PaintInfo& paintInfo, int tx, int ty) in paint() argument 607 int xPos = tx + m_x - object()->maximalOutlineSize(paintInfo.phase); in paint() 608 int w = width() + 2 * object()->maximalOutlineSize(paintInfo.phase); in paint() 621 bool intersectsDamageRect = xPos < paintInfo.rect.right() && xPos + w > paintInfo.rect.x(); in paint() 623 if (intersectsDamageRect && paintInfo.phase != PaintPhaseChildOutlines) { in paint() 624 if (paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) { in paint() 634 paintInfo.outlineObjects->add(flowObject()); in paint() 636 } else if (paintInfo.phase == PaintPhaseMask) { in paint() 637 paintMask(paintInfo, tx, ty); in paint() 641 paintBoxDecorations(paintInfo, tx, ty); in paint() [all …]
|
D | RenderSVGContainer.cpp | 290 void RenderSVGContainer::applyContentTransforms(PaintInfo& paintInfo) in applyContentTransforms() argument 293 paintInfo.context->concatCTM(localTransform()); in applyContentTransforms() 319 void RenderSVGContainer::paint(PaintInfo& paintInfo, int, int) in paint() argument 321 if (paintInfo.context->paintingDisabled() || !drawsContents()) in paint() 328 paintInfo.context->save(); in paint() 329 applyContentTransforms(paintInfo); in paint() 332 PaintInfo savedInfo(paintInfo); in paint() 335 if (paintInfo.phase == PaintPhaseForeground) in paint() 336 prepareToRenderSVGContent(this, paintInfo, boundingBox, filter); in paint() 338 applyAdditionalTransforms(paintInfo); in paint() [all …]
|
D | RenderTheme.cpp | 205 bool RenderTheme::paint(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& r) in paint() argument 210 if (paintInfo.context->updatingControlTints()) { in paint() 215 if (paintInfo.context->paintingDisabled()) in paint() 228 …->paint(part, controlStatesForRenderer(o), const_cast<GraphicsContext*>(paintInfo.context), r, o->… in paint() 239 return paintCheckbox(o, paintInfo, r); in paint() 241 return paintRadio(o, paintInfo, r); in paint() 246 return paintButton(o, paintInfo, r); in paint() 249 return paintMenuList(o, paintInfo, r); in paint() 252 return paintSliderTrack(o, paintInfo, r); in paint() 256 return paintSliderThumb(o, paintInfo, r); in paint() [all …]
|
D | RenderThemeMac.mm | 655 bool RenderThemeMac::paintTextField(RenderObject* o, const RenderObject::PaintInfo& paintInfo, cons… 657 LocalCurrentGraphicsContext localContext(paintInfo.context); 666 bool RenderThemeMac::paintCapsLockIndicator(RenderObject*, const RenderObject::PaintInfo& paintInfo… 668 if (paintInfo.context->paintingDisabled()) 671 LocalCurrentGraphicsContext localContext(paintInfo.context); 672 wkDrawCapsLockIndicator(paintInfo.context->platformContext(), r); 677 bool RenderThemeMac::paintTextArea(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const… 679 LocalCurrentGraphicsContext localContext(paintInfo.context); 716 bool RenderThemeMac::paintMenuList(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const… 732 paintInfo.context->save(); [all …]
|
D | RenderWidget.cpp | 171 void RenderWidget::paint(PaintInfo& paintInfo, int tx, int ty) in paint() argument 173 if (!shouldPaint(paintInfo, tx, ty)) in paint() 179 …if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPha… in paint() 180 paintBoxDecorations(paintInfo, tx, ty); in paint() 182 if (paintInfo.phase == PaintPhaseMask) { in paint() 183 paintMask(paintInfo, tx, ty); in paint() 187 if (!m_view || paintInfo.phase != PaintPhaseForeground || style()->visibility() != VISIBLE) in paint() 191 if (style()->highlight() != nullAtom && !paintInfo.context->paintingDisabled()) in paint() 203 m_widget->paint(paintInfo.context, paintInfo.rect); in paint() 208 paintInfo.context->fillRect(selectionRect(), selectionBackgroundColor()); in paint()
|
D | RenderScrollbarPart.cpp | 163 … RenderObject::PaintInfo paintInfo(graphicsContext, rect, PaintPhaseBlockBackground, false, 0, 0); in paintIntoRect() local 164 paint(paintInfo, tx, ty); in paintIntoRect() 165 paintInfo.phase = PaintPhaseChildBlockBackgrounds; in paintIntoRect() 166 paint(paintInfo, tx, ty); in paintIntoRect() 167 paintInfo.phase = PaintPhaseFloat; in paintIntoRect() 168 paint(paintInfo, tx, ty); in paintIntoRect() 169 paintInfo.phase = PaintPhaseForeground; in paintIntoRect() 170 paint(paintInfo, tx, ty); in paintIntoRect() 171 paintInfo.phase = PaintPhaseOutline; in paintIntoRect() 172 paint(paintInfo, tx, ty); in paintIntoRect()
|
D | SVGRenderSupport.cpp | 42 void prepareToRenderSVGContent(RenderObject* object, RenderObject::PaintInfo& paintInfo, const Floa… in prepareToRenderSVGContent() argument 63 paintInfo.context->clip(enclosingIntRect(boundingBox)); in prepareToRenderSVGContent() 64 paintInfo.context->beginTransparencyLayer(opacity); in prepareToRenderSVGContent() 93 filter->prepareFilter(paintInfo.context, boundingBox); in prepareToRenderSVGContent() 100 clipper->applyClip(paintInfo.context, boundingBox); in prepareToRenderSVGContent() 106 masker->applyMask(paintInfo.context, boundingBox); in prepareToRenderSVGContent() 111 void finishRenderSVGContent(RenderObject* object, RenderObject::PaintInfo& paintInfo, const FloatRe… in finishRenderSVGContent() argument 126 filter->applyFilter(paintInfo.context, boundingBox); in finishRenderSVGContent() 127 paintInfo.context = savedContext; in finishRenderSVGContent() 133 paintInfo.context->endTransparencyLayer(); in finishRenderSVGContent()
|
D | RenderSVGRoot.cpp | 123 void RenderSVGRoot::applyContentTransforms(PaintInfo& paintInfo, int parentX, int parentY) in applyContentTransforms() argument 133 paintInfo.context->concatCTM(TransformationMatrix().translate(origin.x(), origin.y())); in applyContentTransforms() 134 paintInfo.rect.move(-origin.x(), -origin.y()); in applyContentTransforms() 139 paintInfo.rect.move(static_cast<int>(ctm.e()), static_cast<int>(ctm.f())); in applyContentTransforms() 142 paintInfo.context->concatCTM(TransformationMatrix().scale(svg->currentScale())); in applyContentTransforms() 146 …paintInfo.context->clip(enclosingIntRect(viewport())); // FIXME: Eventually we'll want float-preci… in applyContentTransforms() 148 … paintInfo.context->concatCTM(TransformationMatrix().translate(viewport().x(), viewport().y())); in applyContentTransforms() 151 …paintInfo.context->concatCTM(TransformationMatrix().translate(svg->currentTranslate().x(), svg->cu… in applyContentTransforms() 154 void RenderSVGRoot::paint(PaintInfo& paintInfo, int parentX, int parentY) in paint() argument 156 if (paintInfo.context->paintingDisabled()) in paint() [all …]
|
D | RenderFieldset.cpp | 121 void RenderFieldset::paintBoxDecorations(PaintInfo& paintInfo, int tx, int ty) in paintBoxDecorations() argument 127 return RenderBlock::paintBoxDecorations(paintInfo, tx, ty); in paintBoxDecorations() 134 int my = max(ty, paintInfo.rect.y()); in paintBoxDecorations() 135 int end = min(paintInfo.rect.bottom(), ty + h); in paintBoxDecorations() 138 paintBoxShadow(paintInfo.context, tx, ty, w, h, style()); in paintBoxDecorations() 140 …paintFillLayers(paintInfo, style()->backgroundColor(), style()->backgroundLayers(), my, mh, tx, ty… in paintBoxDecorations() 147 …return paintBorderMinusLegend(paintInfo.context, tx, ty, w, h, style(), legend->x(), legend->width… in paintBoxDecorations() 151 GraphicsContext* graphicsContext = paintInfo.context; in paintBoxDecorations() 159 paintBorder(paintInfo.context, tx, ty, w, h, style(), true, true); in paintBoxDecorations() 164 void RenderFieldset::paintMask(PaintInfo& paintInfo, int tx, int ty) in paintMask() argument [all …]
|
D | RenderFileUploadControl.cpp | 174 void RenderFileUploadControl::paintObject(PaintInfo& paintInfo, int tx, int ty) in paintObject() argument 180 …if (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseChildBlockBackgrounds)… in paintObject() 185 paintInfo.context->save(); in paintObject() 186 paintInfo.context->clip(clipRect); in paintObject() 189 if (paintInfo.phase == PaintPhaseForeground) { in paintObject() 210 paintInfo.context->setFillColor(style()->color()); in paintObject() 213 paintInfo.context->drawBidiText(style()->font(), textRun, IntPoint(textX, textY)); in paintObject() 225 … m_fileChooser->icon()->paint(paintInfo.context, IntRect(iconX, iconY, iconWidth, iconHeight)); in paintObject() 230 RenderBlock::paintObject(paintInfo, tx, ty); in paintObject() 233 … if (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseChildBlockBackgrounds) in paintObject() [all …]
|
D | RootInlineBox.cpp | 131 void RootInlineBox::paintEllipsisBox(RenderObject::PaintInfo& paintInfo, int tx, int ty) const in paintEllipsisBox() argument 133 …if (m_hasEllipsisBox && object()->shouldPaintWithinRoot(paintInfo) && object()->style()->visibilit… in paintEllipsisBox() 134 paintInfo.phase == PaintPhaseForeground) in paintEllipsisBox() 135 ellipsisBox()->paint(paintInfo, tx, ty); in paintEllipsisBox() 156 void RootInlineBox::paintCustomHighlight(RenderObject::PaintInfo& paintInfo, int tx, int ty, const … in paintCustomHighlight() argument 158 …if (!object()->shouldPaintWithinRoot(paintInfo) || object()->style()->visibility() != VISIBLE || p… in paintCustomHighlight() 171 if (inflatedRect.intersects(paintInfo.rect)) in paintCustomHighlight() 177 void RootInlineBox::paint(RenderObject::PaintInfo& paintInfo, int tx, int ty) in paint() argument 179 InlineFlowBox::paint(paintInfo, tx, ty); in paint() 180 paintEllipsisBox(paintInfo, tx, ty); in paint() [all …]
|
D | RenderThemeChromiumMac.mm | 681 …omiumMac::paintCheckbox(RenderObject* o, const RenderObject::PaintInfo& paintInfo, const IntRect& … 686 paintInfo.context->save(); 701 paintInfo.context->translate(inflatedRect.x(), inflatedRect.y()); 702 paintInfo.context->scale(FloatSize(zoomLevel, zoomLevel)); 703 paintInfo.context->translate(-inflatedRect.x(), -inflatedRect.y()); 709 paintInfo.context->restore(); 760 bool RenderThemeChromiumMac::paintRadio(RenderObject* o, const RenderObject::PaintInfo& paintInfo, … 765 paintInfo.context->save(); 780 paintInfo.context->translate(inflatedRect.x(), inflatedRect.y()); 781 paintInfo.context->scale(FloatSize(zoomLevel, zoomLevel)); [all …]
|
D | RenderSVGViewportContainer.cpp | 78 void RenderSVGViewportContainer::paint(PaintInfo& paintInfo, int parentX, int parentY) in paint() argument 84 RenderSVGContainer::paint(paintInfo, parentX, parentY); in paint() 87 void RenderSVGViewportContainer::applyContentTransforms(PaintInfo& paintInfo) in applyContentTransforms() argument 91 …paintInfo.context->clip(enclosingIntRect(viewport())); // FIXME: Eventually we'll want float-preci… in applyContentTransforms() 93 … paintInfo.context->concatCTM(TransformationMatrix().translate(viewport().x(), viewport().y())); in applyContentTransforms() 96 RenderSVGContainer::applyContentTransforms(paintInfo); in applyContentTransforms() 99 void RenderSVGViewportContainer::applyAdditionalTransforms(PaintInfo& paintInfo) in applyAdditionalTransforms() argument 101 paintInfo.context->concatCTM(viewportTransform()); in applyAdditionalTransforms() 102 RenderSVGContainer::applyAdditionalTransforms(paintInfo); in applyAdditionalTransforms()
|
D | SVGInlineTextBox.cpp | 325 void SVGInlineTextBox::paintCharacters(RenderObject::PaintInfo& paintInfo, int tx, int ty, const SV… in paintCharacters() argument 327 if (object()->style()->visibility() != VISIBLE || paintInfo.phase == PaintPhaseOutline) in paintCharacters() 330 ASSERT(paintInfo.phase != PaintPhaseSelfOutline && paintInfo.phase != PaintPhaseChildOutlines); in paintCharacters() 339 if (!haveSelection && paintInfo.phase == PaintPhaseSelection) in paintCharacters() 353 paintInfo.context->concatCTM(ctm); in paintCharacters() 357 if (paintInfo.phase != PaintPhaseSelection && !isPrinting) { in paintCharacters() 360 if (styleToUse->highlight() != nullAtom && !paintInfo.context->paintingDisabled()) in paintCharacters() 365 paintCompositionBackground(paintInfo.context, tx, ty, styleToUse, font, in paintCharacters() 369 paintDocumentMarkers(paintInfo.context, tx, ty, styleToUse, font, true); in paintCharacters() 373 … paintSelection(boxStartOffset, svgChar, chars, length, paintInfo.context, styleToUse, font); in paintCharacters() [all …]
|
D | RenderPath.cpp | 227 void RenderPath::paint(PaintInfo& paintInfo, int, int) in paint() argument 229 … if (paintInfo.context->paintingDisabled() || style()->visibility() == HIDDEN || m_path.isEmpty()) in paint() 232 paintInfo.context->save(); in paint() 233 paintInfo.context->concatCTM(localTransform()); in paint() 238 if (paintInfo.phase == PaintPhaseForeground) { in paint() 239 PaintInfo savedInfo(paintInfo); in paint() 241 prepareToRenderSVGContent(this, paintInfo, boundingBox, filter); in paint() 243 paintInfo.context->setShouldAntialias(false); in paint() 244 fillAndStrokePath(m_path, paintInfo.context, style(), this); in paint() 247 m_markerBounds = drawMarkersIfNeeded(paintInfo.context, paintInfo.rect, m_path); in paint() [all …]
|
D | InlineBox.cpp | 139 void InlineBox::paint(RenderObject::PaintInfo& paintInfo, int tx, int ty) in paint() argument 141 …if (!object()->shouldPaintWithinRoot(paintInfo) || (paintInfo.phase != PaintPhaseForeground && pai… in paint() 147 …bool preservePhase = paintInfo.phase == PaintPhaseSelection || paintInfo.phase == PaintPhaseTextCl… in paint() 148 RenderObject::PaintInfo info(paintInfo); in paint() 149 info.phase = preservePhase ? paintInfo.phase : PaintPhaseBlockBackground; in paint()
|
D | RenderSVGImage.cpp | 167 void RenderSVGImage::paint(PaintInfo& paintInfo, int, int) in paint() argument 169 if (paintInfo.context->paintingDisabled() || style()->visibility() == HIDDEN) in paint() 172 paintInfo.context->save(); in paint() 173 paintInfo.context->concatCTM(localTransform()); in paint() 175 if (paintInfo.phase == PaintPhaseForeground) { in paint() 178 PaintInfo savedInfo(paintInfo); in paint() 180 prepareToRenderSVGContent(this, paintInfo, m_localBounds, filter); in paint() 189 paintInfo.context->drawImage(image(), destRect, srcRect); in paint() 191 finishRenderSVGContent(this, paintInfo, m_localBounds, filter, savedInfo.context); in paint() 194 paintInfo.context->restore(); in paint()
|
D | RenderListBox.cpp | 253 void RenderListBox::paintObject(PaintInfo& paintInfo, int tx, int ty) in paintObject() argument 260 if (paintInfo.phase == PaintPhaseForeground) { in paintObject() 263 paintItemForeground(paintInfo, tx, ty, index); in paintObject() 269 RenderBlock::paintObject(paintInfo, tx, ty); in paintObject() 271 if (paintInfo.phase == PaintPhaseBlockBackground) in paintObject() 272 paintScrollbar(paintInfo, tx, ty); in paintObject() 273 …else if (paintInfo.phase == PaintPhaseChildBlockBackground || paintInfo.phase == PaintPhaseChildBl… in paintObject() 276 paintItemBackground(paintInfo, tx, ty, index); in paintObject() 282 void RenderListBox::paintScrollbar(PaintInfo& paintInfo, int tx, int ty) in paintScrollbar() argument 290 m_vBar->paint(paintInfo.context, paintInfo.rect); in paintScrollbar() [all …]
|
D | RenderTableCell.cpp | 661 void RenderTableCell::paint(PaintInfo& paintInfo, int tx, int ty) in paint() argument 667 int os = 2 * maximalOutlineSize(paintInfo.phase); in paint() 669 if (paintInfo.phase == PaintPhaseCollapsedTableBorders && style()->visibility() == VISIBLE) { in paint() 670 if (ty - table()->outerBorderTop() >= paintInfo.rect.bottom() + os || in paint() 671 ty + height() + table()->outerBorderBottom() <= paintInfo.rect.y() - os) in paint() 673 paintCollapsedBorder(paintInfo.context, tx, ty, width(), height()); in paint() 675 …if (ty + overflowTop(false) >= paintInfo.rect.bottom() + os || ty + overflowHeight(false) <= paint… in paint() 677 RenderBlock::paintObject(paintInfo, tx, ty); in paint() 838 void RenderTableCell::paintBackgroundsBehindCell(PaintInfo& paintInfo, int tx, int ty, RenderObject… in paintBackgroundsBehindCell() argument 858 int my = max(ty, paintInfo.rect.y()); in paintBackgroundsBehindCell() [all …]
|
D | RenderBlock.cpp | 1482 void RenderBlock::paint(PaintInfo& paintInfo, int tx, int ty) in paint() argument 1487 PaintPhase phase = paintInfo.phase; in paint() 1494 overflowBox.inflate(maximalOutlineSize(paintInfo.phase)); in paint() 1496 if (!overflowBox.intersects(paintInfo.rect)) in paint() 1505 paintInfo.phase = PaintPhaseChildOutlines; in paint() 1507 paintInfo.phase = PaintPhaseBlockBackground; in paint() 1508 paintObject(paintInfo, tx, ty); in paint() 1509 paintInfo.phase = PaintPhaseChildBlockBackgrounds; in paint() 1514 paintInfo.context->save(); in paint() 1515 paintInfo.context->clip(clipRect); in paint() [all …]
|
D | RenderTable.cpp | 501 void RenderTable::paint(PaintInfo& paintInfo, int tx, int ty) in paint() argument 506 PaintPhase paintPhase = paintInfo.phase; in paint() 509 …if (ty + overflowTop(false) >= paintInfo.rect.bottom() + os || ty + overflowHeight(false) <= paint… in paint() 511 …if (tx + overflowLeft(false) >= paintInfo.rect.right() + os || tx + overflowWidth(false) <= paintI… in paint() 515 paintBoxDecorations(paintInfo, tx, ty); in paint() 518 paintMask(paintInfo, tx, ty); in paint() 529 PaintInfo info(paintInfo); in paint() 531 info.paintingRoot = paintingRootForChildren(paintInfo); in paint() 560 void RenderTable::paintBoxDecorations(PaintInfo& paintInfo, int tx, int ty) in paintBoxDecorations() argument 573 int my = max(ty, paintInfo.rect.y()); in paintBoxDecorations() [all …]
|