Lines Matching refs:scrollbar
39 void RenderScrollbarTheme::buttonSizesAlongTrackAxis(Scrollbar* scrollbar, int& beforeSize, int& af… in buttonSizesAlongTrackAxis() argument
41 IntRect firstButton = backButtonRect(scrollbar, BackButtonStartPart); in buttonSizesAlongTrackAxis()
42 IntRect secondButton = forwardButtonRect(scrollbar, ForwardButtonStartPart); in buttonSizesAlongTrackAxis()
43 IntRect thirdButton = backButtonRect(scrollbar, BackButtonEndPart); in buttonSizesAlongTrackAxis()
44 IntRect fourthButton = forwardButtonRect(scrollbar, ForwardButtonEndPart); in buttonSizesAlongTrackAxis()
45 if (scrollbar->orientation() == HorizontalScrollbar) { in buttonSizesAlongTrackAxis()
54 bool RenderScrollbarTheme::hasButtons(Scrollbar* scrollbar) in hasButtons() argument
58 buttonSizesAlongTrackAxis(scrollbar, startSize, endSize); in hasButtons()
59 …return (startSize + endSize) <= (scrollbar->orientation() == HorizontalScrollbar ? scrollbar->widt… in hasButtons()
62 bool RenderScrollbarTheme::hasThumb(Scrollbar* scrollbar) in hasThumb() argument
64 return trackLength(scrollbar) - thumbLength(scrollbar) >= 0; in hasThumb()
67 int RenderScrollbarTheme::minimumThumbLength(Scrollbar* scrollbar) in minimumThumbLength() argument
69 return toRenderScrollbar(scrollbar)->minimumThumbLength(); in minimumThumbLength()
72 IntRect RenderScrollbarTheme::backButtonRect(Scrollbar* scrollbar, ScrollbarPart partType, bool) in backButtonRect() argument
74 return toRenderScrollbar(scrollbar)->buttonRect(partType); in backButtonRect()
77 IntRect RenderScrollbarTheme::forwardButtonRect(Scrollbar* scrollbar, ScrollbarPart partType, bool) in forwardButtonRect() argument
79 return toRenderScrollbar(scrollbar)->buttonRect(partType); in forwardButtonRect()
82 IntRect RenderScrollbarTheme::trackRect(Scrollbar* scrollbar, bool) in trackRect() argument
84 if (!hasButtons(scrollbar)) in trackRect()
85 return scrollbar->frameRect(); in trackRect()
89 buttonSizesAlongTrackAxis(scrollbar, startLength, endLength); in trackRect()
91 return toRenderScrollbar(scrollbar)->trackRect(startLength, endLength); in trackRect()
94 IntRect RenderScrollbarTheme::constrainTrackRectToTrackPieces(Scrollbar* scrollbar, const IntRect& … in constrainTrackRectToTrackPieces() argument
96 IntRect backRect = toRenderScrollbar(scrollbar)->trackPieceRectWithMargins(BackTrackPart, rect); in constrainTrackRectToTrackPieces()
97 …IntRect forwardRect = toRenderScrollbar(scrollbar)->trackPieceRectWithMargins(ForwardTrackPart, re… in constrainTrackRectToTrackPieces()
99 if (scrollbar->orientation() == HorizontalScrollbar) { in constrainTrackRectToTrackPieces()
115 void RenderScrollbarTheme::paintScrollbarBackground(GraphicsContext* context, Scrollbar* scrollbar) in paintScrollbarBackground() argument
117 toRenderScrollbar(scrollbar)->paintPart(context, ScrollbarBGPart, scrollbar->frameRect()); in paintScrollbarBackground()
120 void RenderScrollbarTheme::paintTrackBackground(GraphicsContext* context, Scrollbar* scrollbar, con… in paintTrackBackground() argument
122 toRenderScrollbar(scrollbar)->paintPart(context, TrackBGPart, rect); in paintTrackBackground()
125 void RenderScrollbarTheme::paintTrackPiece(GraphicsContext* context, Scrollbar* scrollbar, const In… in paintTrackPiece() argument
127 toRenderScrollbar(scrollbar)->paintPart(context, part, rect); in paintTrackPiece()
130 void RenderScrollbarTheme::paintButton(GraphicsContext* context, Scrollbar* scrollbar, const IntRec… in paintButton() argument
132 toRenderScrollbar(scrollbar)->paintPart(context, part, rect); in paintButton()
135 void RenderScrollbarTheme::paintThumb(GraphicsContext* context, Scrollbar* scrollbar, const IntRect… in paintThumb() argument
137 toRenderScrollbar(scrollbar)->paintPart(context, ThumbPart, rect); in paintThumb()