Home | History | Annotate | Download | only in scroll

Lines Matching refs:scrollbar

72 int ScrollbarThemeOverlay::thumbPosition(ScrollbarThemeClient* scrollbar)
74 if (!scrollbar->totalSize())
77 int trackLen = trackLength(scrollbar);
78 float proportion = static_cast<float>(scrollbar->currentPos()) / scrollbar->totalSize();
82 int ScrollbarThemeOverlay::thumbLength(ScrollbarThemeClient* scrollbar)
84 int trackLen = trackLength(scrollbar);
86 if (!scrollbar->totalSize())
89 float proportion = static_cast<float>(scrollbar->visibleSize()) / scrollbar->totalSize();
91 length = min(max(length, minimumThumbLength(scrollbar)), trackLen);
95 bool ScrollbarThemeOverlay::hasThumb(ScrollbarThemeClient* scrollbar)
110 IntRect ScrollbarThemeOverlay::trackRect(ScrollbarThemeClient* scrollbar, bool)
112 IntRect rect = scrollbar->frameRect();
113 if (scrollbar->orientation() == HorizontalScrollbar)
125 void ScrollbarThemeOverlay::paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect)
130 if (scrollbar->orientation() == HorizontalScrollbar) {
134 if (scrollbar->isLeftSideVerticalScrollbar())
144 if (scrollbar->pressedPart() == ThumbPart)
146 else if (scrollbar->hoveredPart() == ThumbPart)
152 if (scrollbar->orientation() == VerticalScrollbar)
158 ScrollbarPart ScrollbarThemeOverlay::hitTest(ScrollbarThemeClient* scrollbar, const IntPoint& position)
163 return ScrollbarTheme::hitTest(scrollbar, position);