Home | History | Annotate | Download | only in rendering

Lines Matching defs:scrollbar

168 void RenderLayerScrollableArea::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
173 if (scrollbar == m_vBar.get()) {
190 if (scrollbar == m_vBar.get())
193 scrollRect.move(horizontalScrollbarStart(0), box().height() - box().borderBottom() - scrollbar->height());
204 if (scrollbar == m_vBar.get()) {
248 static IntRect cornerRect(const RenderStyle* style, const Scrollbar* horizontalScrollbar, const Scrollbar* verticalScrollbar, const IntRect& bounds)
275 // We have a scrollbar corner when a scrollbar is visible and not filling the entire length of the box.
277 // (a) A resizer is present and at least one scrollbar is present
287 IntRect RenderLayerScrollableArea::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect& scrollbarRect) const
294 rect.move(scrollbarOffset(scrollbar));
299 IntRect RenderLayerScrollableArea::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRect& parentRect) const
306 rect.move(-scrollbarOffset(scrollbar));
310 IntPoint RenderLayerScrollableArea::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntPoint& scrollbarPoint) const
317 point.move(scrollbarOffset(scrollbar));
321 IntPoint RenderLayerScrollableArea::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& parentPoint) const
329 point.move(-scrollbarOffset(scrollbar));
651 if (Scrollbar* horizontalScrollbar = this->horizontalScrollbar()) {
655 if (Scrollbar* verticalScrollbar = this->verticalScrollbar()) {
714 // To avoid doing a relayout in updateScrollbarsAfterLayout, we try to keep any automatic scrollbar that was already present.
751 if (Scrollbar* horizontalScrollbar = this->horizontalScrollbar()) {
755 if (Scrollbar* verticalScrollbar = this->verticalScrollbar()) {
819 IntSize RenderLayerScrollableArea::scrollbarOffset(const Scrollbar* scrollbar) const
821 if (scrollbar == m_vBar.get())
824 if (scrollbar == m_hBar.get())
825 return IntSize(horizontalScrollbarStart(0), box().height() - box().borderBottom() - scrollbar->height());
843 PassRefPtr<Scrollbar> RenderLayerScrollableArea::createScrollbar(ScrollbarOrientation orientation)
845 RefPtr<Scrollbar> widget;
847 bool hasCustomScrollbarStyle = actualRenderer->isBox() && actualRenderer->style()->hasPseudoStyle(SCROLLBAR);
851 widget = Scrollbar::create(this, orientation, RegularScrollbar);
863 Scrollbar>& scrollbar = orientation == HorizontalScrollbar ? m_hBar : m_vBar;
864 if (!scrollbar)
867 if (!scrollbar->isCustomScrollbar())
868 willRemoveScrollbar(scrollbar.get(), orientation);
870 scrollbar->removeFromParent();
871 scrollbar->disconnectFromScrollableArea();
872 scrollbar = nullptr;
889 // Destroying or creating one bar can cause our scrollbar corner to come and go. We need to update the opposite scrollbar's style.
913 // Destroying or creating one bar can cause our scrollbar corner to come and go. We need to update the opposite scrollbar's style.
944 if (Scrollbar* verticalScrollbar = this->verticalScrollbar()) {
950 if (Scrollbar* horizontalScrollbar = this->horizontalScrollbar()) {
1001 // Move the scrollbar widgets if necessary. We normally move and resize widgets during layout,
1045 // We fill our scroll corner with white if we have a scrollbar that doesn't run all the way up to the