Home | History | Annotate | Download | only in rendering

Lines Matching refs:rect

63 static bool paintMediaButton(GraphicsContext* context, const IntRect& rect, Image* image)
65 IntRect imageRect = image->rect();
66 context->drawImage(image, DeviceColorSpace, rect);
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)
112 // FIXME: this should be a rounded rect but need to fix GraphicsContextSkia first.
120 context->drawRect(rect);
125 IntRect bufferedRect = rect;
150 static bool paintMediaSliderThumb(RenderObject* object, const RenderObject::PaintInfo& paintInfo, const IntRect& rect)
163 return paintMediaButton(paintInfo.context, rect, mediaSliderThumb);
166 static bool paintMediaVolumeSlider(RenderObject* object, const RenderObject::PaintInfo& paintInfo, const IntRect& rect)
177 int x = rect.x() + rect.width() / 2;
178 context->drawLine(IntPoint(x, rect.y()), IntPoint(x, rect.y() + rect.height()));
185 static bool paintMediaVolumeSliderThumb(RenderObject* object, const RenderObject::PaintInfo& paintInfo, const IntRect& rect)
191 return paintMediaButton(paintInfo.context, rect, mediaVolumeSliderThumb);
194 static bool paintMediaTimelineContainer(RenderObject* object, const RenderObject::PaintInfo& paintInfo, const IntRect& rect)
200 if (!rect.isEmpty()) {
211 context->drawLine(IntPoint(rect.x() + 1, rect.y()),
212 IntPoint(rect.x() + 1, rect.y() + rect.height()));
217 context->drawLine(IntPoint(rect.x() + rect.width() - 1, rect.y()),
218 IntPoint(rect.x() + rect.width() - 1, rect.y() + rect.height()));
249 bool RenderMediaControlsChromium::paintMediaControlsPart(MediaControlElementType part, RenderObject* object, const RenderObject::PaintInfo& paintInfo, const IntRect& rect)
254 return paintMediaMuteButton(object, paintInfo, rect);
257 return paintMediaPlayButton(object, paintInfo, rect);
259 return paintMediaSlider(object, paintInfo, rect);
261 return paintMediaSliderThumb(object, paintInfo, rect);
263 return paintMediaVolumeSlider(object, paintInfo, rect);
265 return paintMediaVolumeSliderThumb(object, paintInfo, rect);
267 return paintMediaTimelineContainer(object, paintInfo, rect);