Lines Matching full:scrollbar
30 #include "platform/scroll/Scrollbar.h"
51 void ScrollbarGroup::scrollbarCreated(WebPluginScrollbarImpl* scrollbar)
54 if (scrollbar->scrollbar()->orientation() == HorizontalScrollbar) {
56 m_horizontalScrollbar = scrollbar;
57 didAddScrollbar(scrollbar->scrollbar(), HorizontalScrollbar);
60 m_verticalScrollbar = scrollbar;
61 didAddScrollbar(scrollbar->scrollbar(), VerticalScrollbar);
70 void ScrollbarGroup::scrollbarDestroyed(WebPluginScrollbarImpl* scrollbar)
72 if (scrollbar == m_horizontalScrollbar) {
73 willRemoveScrollbar(scrollbar->scrollbar(), HorizontalScrollbar);
76 ASSERT(scrollbar == m_verticalScrollbar);
77 willRemoveScrollbar(scrollbar->scrollbar(), VerticalScrollbar);
97 Scrollbar* scrollbar = webScrollbar->scrollbar();
98 return scrollbar->totalSize() - scrollbar->visibleSize();
109 void ScrollbarGroup::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
111 if (m_horizontalScrollbar && scrollbar == m_horizontalScrollbar->scrollbar())
113 else if (m_verticalScrollbar && scrollbar == m_verticalScrollbar->scrollbar())
147 IntPoint ScrollbarGroup::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& parentPoint) const
149 if (m_horizontalScrollbar && scrollbar == m_horizontalScrollbar->scrollbar())
151 if (m_verticalScrollbar && scrollbar == m_verticalScrollbar->scrollbar())
157 Scrollbar* ScrollbarGroup::horizontalScrollbar() const
159 return m_horizontalScrollbar ? m_horizontalScrollbar->scrollbar() : 0;
162 Scrollbar* ScrollbarGroup::verticalScrollbar() const
164 return m_verticalScrollbar ? m_verticalScrollbar->scrollbar() : 0;
187 return m_verticalScrollbar->scrollbar()->height();
189 return m_horizontalScrollbar->scrollbar()->height();
197 return m_horizontalScrollbar->scrollbar()->width();
199 return m_verticalScrollbar->scrollbar()->width();
208 size.setWidth(m_horizontalScrollbar->scrollbar()->totalSize());
210 size.setWidth(m_verticalScrollbar->scrollbar()->x());
211 if (m_verticalScrollbar->scrollbar()->isOverlayScrollbar())
215 size.setHeight(m_verticalScrollbar->scrollbar()->totalSize());
217 size.setHeight(m_horizontalScrollbar->scrollbar()->y());
218 if (m_horizontalScrollbar->scrollbar()->isOverlayScrollbar())
269 length = m_verticalScrollbar->scrollbar()->height();
274 length = m_horizontalScrollbar->scrollbar()->width();