Home | History | Annotate | Download | only in rendering

Lines Matching refs:SCROLLBAR

79 #include "Scrollbar.h"
1511 void RenderLayer::valueChanged(Scrollbar*)
1568 // We have a scrollbar corner when a scrollbar is visible and not filling the entire length of the box.
1570 // (a) A resizer is present and at least one scrollbar is present
1594 IntRect RenderLayer::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect& scrollbarRect) const
1601 rect.move(scrollbarOffset(scrollbar));
1606 IntRect RenderLayer::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRect& parentRect) const
1613 rect.move(-scrollbarOffset(scrollbar));
1617 IntPoint RenderLayer::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntPoint& scrollbarPoint) const
1624 point.move(scrollbarOffset(scrollbar));
1628 IntPoint RenderLayer::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& parentPoint) const
1636 point.move(-scrollbarOffset(scrollbar));
1640 IntSize RenderLayer::scrollbarOffset(const Scrollbar* scrollbar) const
1644 if (scrollbar == m_vBar.get())
1645 return IntSize(box->width() - box->borderRight() - scrollbar->width(), box->borderTop());
1647 if (scrollbar == m_hBar.get())
1648 return IntSize(box->borderLeft(), box->height() - box->borderBottom() - scrollbar->height());
1654 void RenderLayer::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
1659 if (scrollbar == m_vBar.get())
1660 scrollRect.move(box->width() - box->borderRight() - scrollbar->width(), box->borderTop());
1662 scrollRect.move(box->borderLeft(), box->height() - box->borderBottom() - scrollbar->height());
1666 PassRefPtr<Scrollbar> RenderLayer::createScrollbar(ScrollbarOrientation orientation)
1668 RefPtr<Scrollbar> widget;
1670 bool hasCustomScrollbarStyle = actualRenderer->isBox() && actualRenderer->style()->hasPseudoStyle(SCROLLBAR);
1674 widget = Scrollbar::createNativeScrollbar(this, orientation, RegularScrollbar);
1681 RefPtr<Scrollbar>& scrollbar = orientation == HorizontalScrollbar ? m_hBar : m_vBar;
1682 if (scrollbar) {
1683 scrollbar->removeFromParent();
1684 scrollbar->setClient(0);
1685 scrollbar = 0;
1699 // Destroying or creating one bar can cause our scrollbar corner to come and go. We need to update the opposite scrollbar's style.
1722 // Destroying or creating one bar can cause our scrollbar corner to come and go. We need to update the opposite scrollbar's style.
1947 int pageStep = max(max<int>(clientWidth * Scrollbar::minFractionToStepWhenPaging(), clientWidth - Scrollbar::maxOverlapBetweenPages()), 1);
1948 m_hBar->setSteps(Scrollbar::pixelsPerLineStep(), pageStep);
1962 int pageStep = max(max<int>(clientHeight * Scrollbar::minFractionToStepWhenPaging(), clientHeight - Scrollbar::maxOverlapBetweenPages()), 1);
1963 m_vBar->setSteps(Scrollbar::pixelsPerLineStep(), pageStep);
1977 // Move the scrollbar widgets if necessary. We normally move and resize widgets during layout, but sometimes
1988 // We fill our scroll corner with white if we have a scrollbar that doesn't run all the way up to the
2405 // exited the WebView, and so hit testing over a scrollbar hits the content document.