Home | History | Annotate | Download | only in rendering

Lines Matching refs:SCROLLBAR

84 #include "Scrollbar.h"
1681 Scrollbar* scrollbar = ((orientation == HorizontalScrollbar) ? m_hBar : m_vBar).get();
1682 return scrollbar ? (scrollbar->totalSize() - scrollbar->visibleSize()) : 0;
1690 int RenderLayer::scrollPosition(Scrollbar* scrollbar) const
1692 if (scrollbar->orientation() == HorizontalScrollbar)
1694 if (scrollbar->orientation() == VerticalScrollbar)
1731 // We have a scrollbar corner when a scrollbar
1733 // (a) A resizer is present and at least one scrollbar is present
1768 IntRect RenderLayer::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect& scrollbarRect) const
1775 rect.move(scrollbarOffset(scrollbar));
1780 IntRect RenderLayer::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRect& parentRect) const
1787 rect.move(-scrollbarOffset(scrollbar));
1791 IntPoint RenderLayer::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntPoint& scrollbarPoint) const
1798 point.move(scrollbarOffset(scrollbar));
1802 IntPoint RenderLayer::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& parentPoint) const
1810 point.move(-scrollbarOffset(scrollbar));
1842 IntSize RenderLayer::scrollbarOffset(const Scrollbar* scrollbar) const
1846 if (scrollbar == m_vBar.get())
1847 return IntSize(box->width() - box->borderRight() - scrollbar->width(), box->borderTop());
1849 if (scrollbar == m_hBar.get())
1850 return IntSize(box->borderLeft(), box->height() - box->borderBottom() - scrollbar->height());
1856 void RenderLayer::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
1859 if (scrollbar == m_vBar.get()) {
1874 if (scrollbar == m_vBar.get())
1875 scrollRect.move(box->width() - box->borderRight() - scrollbar->width(), box->borderTop());
1877 scrollRect.move(box->borderLeft(), box->height() - box->borderBottom() - scrollbar->height());
1895 PassRefPtr<Scrollbar> RenderLayer::createScrollbar(ScrollbarOrientation orientation)
1897 RefPtr<Scrollbar> widget;
1899 bool hasCustomScrollbarStyle = actualRenderer->isBox() && actualRenderer->style()->hasPseudoStyle(SCROLLBAR);
1903 widget = Scrollbar::createNativeScrollbar(this, orientation, RegularScrollbar);
1915 RefPtr<Scrollbar>& scrollbar = orientation == HorizontalScrollbar ? m_hBar : m_vBar;
1916 if (scrollbar) {
1917 if (scrollbar->isCustomScrollbar())
1918 static_cast<RenderScrollbar*>(scrollbar.get())->clearOwningRenderer();
1921 willRemoveHorizontalScrollbar(scrollbar.get());
1923 willRemoveVerticalScrollbar(scrollbar.get());
1926 scrollbar->removeFromParent();
1927 scrollbar->disconnectFromScrollableArea();
1928 scrollbar = 0;
1942 // Destroying or creating one bar can cause our scrollbar corner to come and go. We need to update the opposite scrollbar's style.
1965 // Destroying or creating one bar can cause our scrollbar corner to come and go. We need to update the opposite scrollbar's style.
2267 int pageStep = max(max<int>(clientWidth * Scrollbar::minFractionToStepWhenPaging(), clientWidth - Scrollbar::maxOverlapBetweenPages()), 1);
2268 m_hBar->setSteps(Scrollbar::pixelsPerLineStep(), pageStep);
2273 int pageStep = max(max<int>(clientHeight * Scrollbar::minFractionToStepWhenPaging(), clientHeight - Scrollbar::maxOverlapBetweenPages()), 1);
2274 m_vBar->setSteps(Scrollbar::pixelsPerLineStep(), pageStep);
2331 // Move the scrollbar widgets if necessary. We normally move and resize widgets during layout, but sometimes
2355 // We fill our scroll corner with white if we have a scrollbar that doesn't run all the way up to the
2893 // exited the WebView, and so hit testing over a scrollbar hits the content document.