Lines Matching defs:scrollbar
181 void RenderLayerScrollableArea::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
186 if (scrollbar == m_vBar.get()) {
203 if (scrollbar == m_vBar.get())
206 scrollRect.move(horizontalScrollbarStart(0), box().height() - box().borderBottom() - scrollbar->height());
217 addScrollbarDamage(scrollbar, intRect);
253 static IntRect cornerRect(const RenderStyle* style, const Scrollbar* horizontalScrollbar, const Scrollbar* verticalScrollbar, const IntRect& bounds)
280 // We have a scrollbar corner when a scrollbar is visible and not filling the entire length of the box.
282 // (a) A resizer is present and at least one scrollbar is present
292 IntRect RenderLayerScrollableArea::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect& scrollbarRect) const
299 rect.move(scrollbarOffset(scrollbar));
304 IntRect RenderLayerScrollableArea::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRect& parentRect) const
311 rect.move(-scrollbarOffset(scrollbar));
315 IntPoint RenderLayerScrollableArea::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntPoint& scrollbarPoint) const
322 point.move(scrollbarOffset(scrollbar));
326 IntPoint RenderLayerScrollableArea::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& parentPoint) const
334 point.move(-scrollbarOffset(scrollbar));
645 if (Scrollbar* horizontalScrollbar = this->horizontalScrollbar()) {
649 if (Scrollbar* verticalScrollbar = this->verticalScrollbar()) {
719 // To avoid doing a relayout in updateScrollbarsAfterLayout, we try to keep any automatic scrollbar that was already present.
760 if (Scrollbar* horizontalScrollbar = this->horizontalScrollbar()) {
764 if (Scrollbar* verticalScrollbar = this->verticalScrollbar()) {
828 IntSize RenderLayerScrollableArea::scrollbarOffset(const Scrollbar* scrollbar) const
830 if (scrollbar == m_vBar.get())
833 if (scrollbar == m_hBar.get())
834 return IntSize(horizontalScrollbarStart(0), box().height() - box().borderBottom() - scrollbar->height());
852 PassRefPtr<Scrollbar> RenderLayerScrollableArea::createScrollbar(ScrollbarOrientation orientation)
854 RefPtr<Scrollbar> widget;
856 bool hasCustomScrollbarStyle = actualRenderer->isBox() && actualRenderer->style()->hasPseudoStyle(SCROLLBAR);
863 widget = Scrollbar::create(this, orientation, scrollbarSize);
875 RefPtr<Scrollbar>& scrollbar = orientation == HorizontalScrollbar ? m_hBar : m_vBar;
876 if (!scrollbar)
879 if (!scrollbar->isCustomScrollbar())
880 willRemoveScrollbar(scrollbar.get(), orientation);
882 scrollbar->removeFromParent();
883 scrollbar->disconnectFromScrollableArea();
884 scrollbar = nullptr;
901 // Destroying or creating one bar can cause our scrollbar corner to come and go. We need to update the opposite scrollbar's style.
925 // Destroying or creating one bar can cause our scrollbar corner to come and go. We need to update the opposite scrollbar's style.
956 if (Scrollbar* verticalScrollbar = this->verticalScrollbar()) {
962 if (Scrollbar* horizontalScrollbar = this->horizontalScrollbar()) {
1013 // Move the scrollbar widgets if necessary. We normally move and resize widgets during layout,
1057 // We fill our scroll corner with white if we have a scrollbar that doesn't run all the way up to the