Home | History | Annotate | Download | only in rendering

Lines Matching refs:scrollbar

41 void RenderScrollbarTheme::buttonSizesAlongTrackAxis(ScrollbarThemeClient* scrollbar, int& beforeSize, int& afterSize)
43 IntRect firstButton = backButtonRect(scrollbar, BackButtonStartPart);
44 IntRect secondButton = forwardButtonRect(scrollbar, ForwardButtonStartPart);
45 IntRect thirdButton = backButtonRect(scrollbar, BackButtonEndPart);
46 IntRect fourthButton = forwardButtonRect(scrollbar, ForwardButtonEndPart);
47 if (scrollbar->orientation() == HorizontalScrollbar) {
56 bool RenderScrollbarTheme::hasButtons(ScrollbarThemeClient* scrollbar)
60 buttonSizesAlongTrackAxis(scrollbar, startSize, endSize);
61 return (startSize + endSize) <= (scrollbar->orientation() == HorizontalScrollbar ? scrollbar->width() : scrollbar->height());
64 bool RenderScrollbarTheme::hasThumb(ScrollbarThemeClient* scrollbar)
66 return trackLength(scrollbar) - thumbLength(scrollbar) >= 0;
69 int RenderScrollbarTheme::minimumThumbLength(ScrollbarThemeClient* scrollbar)
71 return toRenderScrollbar(scrollbar)->minimumThumbLength();
74 IntRect RenderScrollbarTheme::backButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart partType, bool)
76 return toRenderScrollbar(scrollbar)->buttonRect(partType);
79 IntRect RenderScrollbarTheme::forwardButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart partType, bool)
81 return toRenderScrollbar(scrollbar)->buttonRect(partType);
84 IntRect RenderScrollbarTheme::trackRect(ScrollbarThemeClient* scrollbar, bool)
86 if (!hasButtons(scrollbar))
87 return scrollbar->frameRect();
91 buttonSizesAlongTrackAxis(scrollbar, startLength, endLength);
93 return toRenderScrollbar(scrollbar)->trackRect(startLength, endLength);
96 IntRect RenderScrollbarTheme::constrainTrackRectToTrackPieces(ScrollbarThemeClient* scrollbar, const IntRect& rect)
98 IntRect backRect = toRenderScrollbar(scrollbar)->trackPieceRectWithMargins(BackTrackPart, rect);
99 IntRect forwardRect = toRenderScrollbar(scrollbar)->trackPieceRectWithMargins(ForwardTrackPart, rect);
101 if (scrollbar->orientation() == HorizontalScrollbar) {
117 void RenderScrollbarTheme::paintScrollbarBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar)
119 toRenderScrollbar(scrollbar)->paintPart(context, ScrollbarBGPart, scrollbar->frameRect());
122 void RenderScrollbarTheme::paintTrackBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect)
124 toRenderScrollbar(scrollbar)->paintPart(context, TrackBGPart, rect);
127 void RenderScrollbarTheme::paintTrackPiece(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart part)
129 toRenderScrollbar(scrollbar)->paintPart(context, part, rect);
132 void RenderScrollbarTheme::paintButton(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart part)
134 toRenderScrollbar(scrollbar)->paintPart(context, part, rect);
137 void RenderScrollbarTheme::paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect)
139 toRenderScrollbar(scrollbar)->paintPart(context, ThumbPart, rect);
142 void RenderScrollbarTheme::paintTickmarks(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect)
144 ScrollbarTheme::theme()->paintTickmarks(context, scrollbar, rect);