Home | History | Annotate | Download | only in scrolling

Lines Matching defs:scrollableArea

233 void ScrollingCoordinator::willDestroyScrollableArea(ScrollableArea* scrollableArea)
235 removeWebScrollbarLayer(scrollableArea, HorizontalScrollbar);
236 removeWebScrollbarLayer(scrollableArea, VerticalScrollbar);
239 void ScrollingCoordinator::removeWebScrollbarLayer(ScrollableArea* scrollableArea, ScrollbarOrientation orientation)
242 if (OwnPtr<WebScrollbarLayer> scrollbarLayer = scrollbars.take(scrollableArea))
288 WebScrollbarLayer* ScrollingCoordinator::addWebScrollbarLayer(ScrollableArea* scrollableArea, ScrollbarOrientation orientation, PassOwnPtr<blink::WebScrollbarLayer> scrollbarLayer)
291 return scrollbars.add(scrollableArea, scrollbarLayer).storedValue->value.get();
294 WebScrollbarLayer* ScrollingCoordinator::getWebScrollbarLayer(ScrollableArea* scrollableArea, ScrollbarOrientation orientation)
297 return scrollbars.get(scrollableArea);
300 void ScrollingCoordinator::scrollableAreaScrollbarLayerDidChange(ScrollableArea* scrollableArea, ScrollbarOrientation orientation)
316 bool isMainFrame = isForMainFrame(scrollableArea);
321 ? scrollableArea->layerForHorizontalScrollbar()
322 : scrollableArea->layerForVerticalScrollbar();
325 Scrollbar* scrollbar = orientation == HorizontalScrollbar ? scrollableArea->horizontalScrollbar() : scrollableArea->verticalScrollbar();
331 WebScrollbarLayer* scrollbarLayer = getWebScrollbarLayer(scrollableArea, orientation);
338 webScrollbarLayer = createSolidColorScrollbarLayer(orientation, scrollbar->theme()->thumbThickness(scrollbar), scrollbar->theme()->trackPosition(scrollbar), scrollableArea->shouldPlaceVerticalScrollbarOnLeft());
342 scrollbarLayer = addWebScrollbarLayer(scrollableArea, orientation, webScrollbarLayer.release());
352 WebLayer* scrollLayer = toWebLayer(scrollableArea->layerForScrolling());
353 WebLayer* containerLayer = toWebLayer(scrollableArea->layerForContainer());
356 removeWebScrollbarLayer(scrollableArea, orientation);
359 bool ScrollingCoordinator::scrollableAreaScrollLayerDidChange(ScrollableArea* scrollableArea)
361 GraphicsLayer* scrollLayer = scrollableArea->layerForScrolling();
367 bool layerScrollShouldFireGraphicsLayerDidScroll = isForMainFrame(scrollableArea) && !pinchVirtualViewportEnabled;
368 scrollLayer->setScrollableArea(scrollableArea, layerScrollShouldFireGraphicsLayerDidScroll);
371 WebLayer* webLayer = toWebLayer(scrollableArea->layerForScrolling());
372 WebLayer* containerLayer = toWebLayer(scrollableArea->layerForContainer());
375 webLayer->setScrollPosition(IntPoint(scrollableArea->scrollPosition() - scrollableArea->minimumScrollPosition()));
376 webLayer->setBounds(scrollableArea->contentsSize());
377 bool canScrollX = scrollableArea->userInputScrollable(HorizontalScrollbar);
378 bool canScrollY = scrollableArea->userInputScrollable(VerticalScrollbar);
381 if (WebScrollbarLayer* scrollbarLayer = getWebScrollbarLayer(scrollableArea, HorizontalScrollbar)) {
382 GraphicsLayer* horizontalScrollbarLayer = scrollableArea->layerForHorizontalScrollbar();
386 if (WebScrollbarLayer* scrollbarLayer = getWebScrollbarLayer(scrollableArea, VerticalScrollbar)) {
387 GraphicsLayer* verticalScrollbarLayer = scrollableArea->layerForVerticalScrollbar();
752 ScrollableArea* scrollableArea = *it;
754 if (scrollableArea->usesCompositedScrolling())
756 IntRect box = scrollableArea->scrollableAreaBoundingBox();
770 IntRect corner = box->layer()->scrollableArea()->touchResizerCornerRect(bounds);
896 bool ScrollingCoordinator::isForMainFrame(ScrollableArea* scrollableArea) const
898 return m_page->mainFrame()->isLocalFrame() ? scrollableArea == m_page->deprecatedLocalMainFrame()->view() : false;