Home | History | Annotate | Download | only in scroll

Lines Matching refs:scrollbar

37 bool ScrollbarThemeNonMacCommon::hasThumb(ScrollbarThemeClient* scrollbar)
41 return thumbLength(scrollbar) > 0;
44 IntRect ScrollbarThemeNonMacCommon::backButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart part, bool)
50 IntSize size = buttonSize(scrollbar);
51 return IntRect(scrollbar->x(), scrollbar->y(), size.width(), size.height());
54 IntRect ScrollbarThemeNonMacCommon::forwardButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart part, bool)
60 IntSize size = buttonSize(scrollbar);
62 if (scrollbar->orientation() == HorizontalScrollbar) {
63 x = scrollbar->x() + scrollbar->width() - size.width();
64 y = scrollbar->y();
66 x = scrollbar->x();
67 y = scrollbar->y() + scrollbar->height() - size.height();
72 IntRect ScrollbarThemeNonMacCommon::trackRect(ScrollbarThemeClient* scrollbar, bool)
74 IntSize bs = buttonSize(scrollbar);
75 int thickness = scrollbarThickness(scrollbar->controlSize());
76 if (scrollbar->orientation() == HorizontalScrollbar) {
77 // Once the scrollbar becomes smaller than the size of the
79 if (scrollbar->width() <= 2 * bs.width() + 1)
81 return IntRect(scrollbar->x() + bs.width(), scrollbar->y(), scrollbar->width() - 2 * bs.width(), thickness);
83 if (scrollbar->height() <= 2 * bs.height() + 1)
85 return IntRect(scrollbar->x(), scrollbar->y() + bs.height(), thickness, scrollbar->height() - 2 * bs.height());
88 void ScrollbarThemeNonMacCommon::paintTrackBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect)
91 if (!hasThumb(scrollbar))
92 paintTrackPiece(context, scrollbar, rect, ForwardTrackPart);
95 void ScrollbarThemeNonMacCommon::paintTickmarks(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect)
97 if (scrollbar->orientation() != VerticalScrollbar)
105 scrollbar->getTickmarks(tickmarks);
114 const float percent = static_cast<float>(i->y()) / scrollbar->totalSize();