Home | History | Annotate | Download | only in chromium

Lines Matching refs:rect

68 static void drawBox(SkCanvas* canvas, const IntRect& rect, const SkPaint& paint)
70 const int right = rect.x() + rect.width() - 1;
71 const int bottom = rect.y() + rect.height() - 1;
72 drawHorizLine(canvas, rect.x(), right, rect.y(), paint);
73 drawVertLine(canvas, right, rect.y(), bottom, paint);
74 drawHorizLine(canvas, rect.x(), right, bottom, paint);
75 drawVertLine(canvas, rect.x(), rect.y(), bottom, paint);
141 void ScrollbarThemeChromiumLinux::paintTrackPiece(GraphicsContext* gc, Scrollbar* scrollbar, const IntRect& rect, ScrollbarPart partType)
147 skrect.set(rect.x(), rect.y(), rect.x() + rect.width(), rect.y() + rect.height());
158 drawBox(canvas, rect, paint);
161 void ScrollbarThemeChromiumLinux::paintButton(GraphicsContext* gc, Scrollbar* scrollbar, const IntRect& rect, ScrollbarPart part)
166 void ScrollbarThemeChromiumLinux::paintThumb(GraphicsContext* gc, Scrollbar* scrollbar, const IntRect& rect)
169 const int midx = rect.x() + rect.width() / 2;
170 const int midy = rect.y() + rect.height() / 2;
185 skrect.set(rect.x(), rect.y(), midx + 1, rect.y() + rect.height());
187 skrect.set(rect.x(), rect.y(), rect.x() + rect.width(), midy + 1);
194 skrect.set(midx + 1, rect.y(), rect.x() + rect.width(), rect.y() + rect.height());
196 skrect.set(rect.x(), midy + 1, rect.x() + rect.width(), rect.y() + rect.height());
203 drawBox(canvas, rect, paint);
205 if (rect.height() > 10 && rect.width() > 10) {