Searched defs:paintInfo (Results 1 - 25 of 59) sorted by relevance

123

/external/webkit/Source/WebCore/rendering/
H A DRenderHTMLCanvas.cpp64 void RenderHTMLCanvas::paintReplaced(PaintInfo& paintInfo, int tx, int ty) argument
68 static_cast<HTMLCanvasElement*>(node())->paint(paintInfo.context, rect);
H A DRenderReplica.cpp63 void RenderReplica::paint(PaintInfo& paintInfo, int tx, int ty) argument
65 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseMask)
71 if (paintInfo.phase == PaintPhaseForeground)
75 paintInfo.context, paintInfo.rect,
78 else if (paintInfo.phase == PaintPhaseMask)
79 paintMask(paintInfo, tx, ty);
H A DRenderInputSpeech.cpp58 bool RenderInputSpeech::paintInputFieldSpeechButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) argument
97 paintInfo.context->drawImage(image, object->style()->colorSpace(), buttonRect);
H A DEllipsisBox.cpp32 void EllipsisBox::paint(PaintInfo& paintInfo, int tx, int ty, int lineTop, int lineBottom) argument
34 GraphicsContext* context = paintInfo.context;
50 Color foreground = paintInfo.forceBlackText ? Color::black : renderer()->selectionForegroundColor();
69 m_markupBox->paint(paintInfo, tx, ty, lineTop, lineBottom);
H A DRenderDetailsMarker.cpp121 void RenderDetailsMarker::paint(PaintInfo& paintInfo, int tx, int ty) argument
123 if (paintInfo.phase != PaintPhaseForeground || style()->visibility() != VISIBLE) {
124 RenderBlock::paint(paintInfo, tx, ty);
131 overflowRect.inflate(maximalOutlineSize(paintInfo.phase));
133 if (!paintInfo.rect.intersects(overflowRect))
137 paintInfo.context->setStrokeColor(color, style()->colorSpace());
138 paintInfo.context->setStrokeStyle(SolidStroke);
139 paintInfo.context->setStrokeThickness(1.0f);
140 paintInfo.context->setFillColor(color, style()->colorSpace());
142 paintInfo
[all...]
H A DRenderFieldset.cpp131 void RenderFieldset::paintBoxDecorations(PaintInfo& paintInfo, int tx, int ty) argument
133 if (!paintInfo.shouldPaintWithinRoot(this))
140 return RenderBlock::paintBoxDecorations(paintInfo, tx, ty);
155 paintBoxShadow(paintInfo.context, tx, ty, w, h, style(), Normal);
157 paintFillLayers(paintInfo, style()->visitedDependentColor(CSSPropertyBackgroundColor), style()->backgroundLayers(), tx, ty, w, h);
158 paintBoxShadow(paintInfo.context, tx, ty, w, h, style(), Inset);
164 GraphicsContext* graphicsContext = paintInfo.context;
180 paintBorder(paintInfo.context, tx, ty, w, h, style(), true, true);
185 void RenderFieldset::paintMask(PaintInfo& paintInfo, int tx, int ty) argument
187 if (style()->visibility() != VISIBLE || paintInfo
[all...]
H A DRenderMediaControls.cpp74 static FloatRect getUnzoomedRectAndAdjustCurrentContext(RenderObject* o, const PaintInfo& paintInfo, const IntRect &originalRect) argument
81 paintInfo.context->translate(unzoomedRect.x(), unzoomedRect.y());
82 paintInfo.context->scale(FloatSize(zoomLevel, zoomLevel));
83 paintInfo.context->translate(-unzoomedRect.x(), -unzoomedRect.y());
106 bool RenderMediaControls::paintMediaControlsPart(MediaControlElementType part, RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) argument
109 paintInfo.context->save();
112 wkDrawMediaUIPart(WKMediaUIPartFullscreenButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
118 wkDrawMediaUIPart(captionsVisible ? WKMediaUIPartHideClosedCaptionsButton : WKMediaUIPartShowClosedCaptionsButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
125 wkDrawMediaUIPart(audioEnabled ? WKMediaUIPartMuteButton : WKMediaUIPartUnMuteButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
132 wkDrawMediaUIPart(canPlay ? WKMediaUIPartPlayButton : WKMediaUIPartPauseButton, themeStyle, paintInfo
[all...]
H A DRenderTableRow.cpp211 void RenderTableRow::paint(PaintInfo& paintInfo, int tx, int ty) argument
219 if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == PaintPhaseChildBlockBackground) {
221 cell->paintBackgroundsBehindCell(paintInfo, tx, ty, this);
224 child->paint(paintInfo, tx, ty);
H A DRenderVideo.cpp187 void RenderVideo::paintReplaced(PaintInfo& paintInfo, int tx, int ty) argument
204 paintIntoRect(paintInfo.context, rect);
206 mediaPlayer->paintCurrentFrameInContext(paintInfo.context, rect);
208 mediaPlayer->paint(paintInfo.context, rect);
H A DInlineBox.cpp162 void InlineBox::paint(PaintInfo& paintInfo, int tx, int ty, int /* lineTop */, int /*lineBottom*/) argument
164 if (!paintInfo.shouldPaintWithinRoot(renderer()) || (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection))
174 bool preservePhase = paintInfo.phase == PaintPhaseSelection || paintInfo.phase == PaintPhaseTextClip;
175 PaintInfo info(paintInfo);
176 info.phase = preservePhase ? paintInfo.phase : PaintPhaseBlockBackground;
H A DRenderDataGrid.cpp138 void RenderDataGrid::paintObject(PaintInfo& paintInfo, int tx, int ty) argument
144 RenderBlock::paintObject(paintInfo, tx, ty);
146 if (paintInfo.phase != PaintPhaseForeground)
150 paintColumnHeaders(paintInfo, tx, ty);
153 void RenderDataGrid::paintColumnHeaders(PaintInfo& paintInfo, int tx, int ty) argument
168 if (columnRect.intersects(paintInfo.rect))
169 paintColumnHeader(column, paintInfo, tx, ty);
H A DRenderEmbeddedObject.cpp138 void RenderEmbeddedObject::paint(PaintInfo& paintInfo, int tx, int ty) argument
141 RenderReplaced::paint(paintInfo, tx, ty);
145 RenderPart::paint(paintInfo, tx, ty);
148 void RenderEmbeddedObject::paintReplaced(PaintInfo& paintInfo, int tx, int ty) argument
153 if (paintInfo.phase == PaintPhaseSelection)
156 GraphicsContext* context = paintInfo.context;
H A DRenderFileUploadControl.cpp212 void RenderFileUploadControl::paintObject(PaintInfo& paintInfo, int tx, int ty) argument
219 if (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseChildBlockBackgrounds) {
224 paintInfo.context->save();
225 paintInfo.context->clip(clipRect);
228 if (paintInfo.phase == PaintPhaseForeground) {
249 paintInfo.context->setFillColor(style()->visitedDependentColor(CSSPropertyColor), style()->colorSpace());
252 paintInfo.context->drawBidiText(style()->font(), textRun, IntPoint(textX, textY));
264 m_fileChooser->icon()->paint(paintInfo.context, IntRect(iconX, iconY, iconWidth, iconHeight));
269 RenderBlock::paintObject(paintInfo, t
[all...]
H A DRenderLineBoxList.cpp194 bool RenderLineBoxList::lineIntersectsDirtyRect(RenderBoxModelObject* renderer, InlineFlowBox* box, const PaintInfo& paintInfo, int tx, int ty) const argument
197 int logicalTop = min(box->logicalTopVisualOverflow(root->lineTop()), root->selectionTop()) - renderer->maximalOutlineSize(paintInfo.phase);
198 int logicalBottom = box->logicalBottomVisualOverflow(root->lineBottom()) + renderer->maximalOutlineSize(paintInfo.phase);
200 return rangeIntersectsRect(renderer, logicalTop, logicalBottom, paintInfo.rect, tx, ty);
203 void RenderLineBoxList::paint(RenderBoxModelObject* renderer, PaintInfo& paintInfo, int tx, int ty) const argument
206 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection && paintInfo.phase != PaintPhaseOutline
207 && paintInfo.phase != PaintPhaseSelfOutline && paintInfo
[all...]
H A DRenderMediaControlsChromium.cpp71 static bool paintMediaMuteButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) argument
82 return paintMediaButton(paintInfo.context, rect, soundDisabled);
84 return paintMediaButton(paintInfo.context, rect, mediaElement->muted() ? soundNone: soundFull);
87 static bool paintMediaPlayButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) argument
98 return paintMediaButton(paintInfo.context, rect, mediaPlayDisabled);
100 return paintMediaButton(paintInfo.context, rect, mediaElement->canPlay() ? mediaPlay : mediaPause);
109 static bool paintMediaSlider(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) argument
116 GraphicsContext* context = paintInfo.context;
168 static bool paintMediaSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) argument
181 return paintMediaButton(paintInfo
184 paintMediaVolumeSlider(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) argument
203 paintMediaVolumeSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) argument
212 paintMediaTimelineContainer(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) argument
245 paintMediaControlsPart(MediaControlElementType part, RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) argument
[all...]
/external/webkit/Source/WebCore/rendering/svg/
H A DRenderSVGViewportContainer.cpp40 void RenderSVGViewportContainer::applyViewportClip(PaintInfo& paintInfo) argument
43 paintInfo.context->clip(m_viewport);
H A DRenderSVGContainer.cpp94 void RenderSVGContainer::paint(PaintInfo& paintInfo, int, int) argument
96 if (paintInfo.context->paintingDisabled())
104 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(repaintRect, localToParentTransform(), paintInfo))
107 PaintInfo childPaintInfo(paintInfo);
125 if (paintInfo.phase == PaintPhaseForeground)
126 SVGRenderSupport::finishRenderSVGContent(this, childPaintInfo, paintInfo.context);
135 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()->outlineWidth() && style()->visibility() == VISIBLE) {
137 paintOutline(paintInfo.context, paintRectInParent.x(), paintRectInParent.y(), paintRectInParent.width(), paintRectInParent.height());
H A DRenderSVGImage.cpp106 void RenderSVGImage::paint(PaintInfo& paintInfo, int, int) argument
108 if (paintInfo.context->paintingDisabled() || style()->visibility() == HIDDEN || !m_imageResource->hasImage())
112 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTransform, paintInfo))
115 PaintInfo childPaintInfo(paintInfo);
H A DSVGInlineFlowBox.cpp37 void SVGInlineFlowBox::paintSelectionBackground(PaintInfo& paintInfo) argument
39 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection);
40 ASSERT(!paintInfo.context->paintingDisabled());
42 PaintInfo childPaintInfo(paintInfo);
51 void SVGInlineFlowBox::paint(PaintInfo& paintInfo, int, int, int, int) argument
53 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection);
54 ASSERT(!paintInfo.context->paintingDisabled());
59 PaintInfo childPaintInfo(paintInfo);
[all...]
H A DSVGMarkerLayoutInfo.cpp110 void SVGMarkerLayoutInfo::drawMarkers(PaintInfo& paintInfo) argument
120 layout.marker->draw(paintInfo, layout.matrix);
H A DRenderSVGForeignObject.cpp47 void RenderSVGForeignObject::paint(PaintInfo& paintInfo, int, int) argument
49 if (paintInfo.context->paintingDisabled())
52 PaintInfo childPaintInfo(paintInfo);
H A DRenderSVGResourceMarker.cpp71 void RenderSVGResourceMarker::applyViewportClip(PaintInfo& paintInfo) argument
74 paintInfo.context->clip(m_viewport);
130 void RenderSVGResourceMarker::draw(PaintInfo& paintInfo, const AffineTransform& transform) argument
132 PaintInfo info(paintInfo);
H A DRenderSVGPath.cpp203 void RenderSVGPath::paint(PaintInfo& paintInfo, int, int) argument
205 if (paintInfo.context->paintingDisabled() || style()->visibility() == HIDDEN || m_path.isEmpty())
209 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTransform, paintInfo))
212 PaintInfo childPaintInfo(paintInfo);
H A DRenderSVGRoot.cpp145 void RenderSVGRoot::paint(PaintInfo& paintInfo, int parentX, int parentY) argument
147 if (paintInfo.context->paintingDisabled())
154 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == PaintPhaseChildBlockBackground) && isVisible)
155 paintBoxDecorations(paintInfo, borderBoxOriginInContainer.x(), borderBoxOriginInContainer.y());
157 if (paintInfo.phase == PaintPhaseBlockBackground)
169 PaintInfo childPaintInfo(paintInfo);
187 SVGRenderSupport::finishRenderSVGContent(this, childPaintInfo, paintInfo.context);
191 if ((paintInfo.phase == PaintPhaseOutline || paintInfo
[all...]
H A DRenderSVGText.cpp232 void RenderSVGText::paint(PaintInfo& paintInfo, int, int) argument
234 if (paintInfo.context->paintingDisabled())
237 if (paintInfo.phase != PaintPhaseForeground
238 && paintInfo.phase != PaintPhaseSelfOutline
239 && paintInfo.phase != PaintPhaseSelection)
242 PaintInfo blockInfo(paintInfo);

Completed in 227 milliseconds

123