Home | History | Annotate | Download | only in mac

Lines Matching refs:controlSize

160     WKScrollbarPainterRef scrollbarPainter = wkMakeScrollbarPainter(scrollbar->controlSize(), isHorizontal);
208 int ScrollbarThemeMac::scrollbarThickness(ScrollbarControlSize controlSize)
211 return wkScrollbarThickness(controlSize);
213 return cScrollbarThickness[controlSize];
246 : scrollbar->height()) >= 2 * (cRealButtonLength[scrollbar->controlSize()] - cButtonHitInset[scrollbar->controlSize()]);
255 minLengthForThumb = 2 * cButtonInset[scrollbar->controlSize()] + cThumbMinLength[scrollbar->controlSize()] + 1;
262 static IntRect buttonRepaintRect(const IntRect& buttonRect, ScrollbarOrientation orientation, ScrollbarControlSize controlSize, bool start)
268 paintRect.setWidth(cRealButtonLength[controlSize]);
270 paintRect.setX(buttonRect.x() - (cRealButtonLength[controlSize] - buttonRect.width()));
272 paintRect.setHeight(cRealButtonLength[controlSize]);
274 paintRect.setY(buttonRect.y() - (cRealButtonLength[controlSize] - buttonRect.height()));
290 int thickness = scrollbarThickness(scrollbar->controlSize());
294 result = IntRect(scrollbar->x(), scrollbar->y(), cOuterButtonLength[scrollbar->controlSize()] + painting ? cOuterButtonOverlap : 0, thickness);
296 result = IntRect(scrollbar->x(), scrollbar->y(), thickness, cOuterButtonLength[scrollbar->controlSize()] + painting ? cOuterButtonOverlap : 0);
302 int start = part == BackButtonStartPart ? scrollbar->x() : scrollbar->x() + scrollbar->width() - cOuterButtonLength[scrollbar->controlSize()] - cButtonLength[scrollbar->controlSize()];
303 result = IntRect(start, scrollbar->y(), cButtonLength[scrollbar->controlSize()], thickness);
305 int start = part == BackButtonStartPart ? scrollbar->y() : scrollbar->y() + scrollbar->height() - cOuterButtonLength[scrollbar->controlSize()] - cButtonLength[scrollbar->controlSize()];
306 result = IntRect(scrollbar->x(), start, thickness, cButtonLength[scrollbar->controlSize()]);
310 return buttonRepaintRect(result, scrollbar->orientation(), scrollbar->controlSize(), part == BackButtonStartPart);
324 int thickness = scrollbarThickness(scrollbar->controlSize());
325 int outerButtonLength = cOuterButtonLength[scrollbar->controlSize()];
326 int buttonLength = cButtonLength[scrollbar->controlSize()];
350 return buttonRepaintRect(result, scrollbar->orientation(), scrollbar->controlSize(), part == ForwardButtonStartPart);
360 int thickness = scrollbarThickness(scrollbar->controlSize());
363 int outerButtonLength = cOuterButtonLength[scrollbar->controlSize()];
364 int buttonLength = cButtonLength[scrollbar->controlSize()];
396 return cThumbMinLength[scrollbar->controlSize()];
471 trackInfo.kind = scrollbar->controlSize() == RegularScrollbar ? kThemeMediumScrollBar : kThemeSmallScrollBar;