bool ScrollingCoordinator::coordinatesScrollingForFrameView(const FrameView& frameView) const { ASSERT(isMainThread()); ASSERT(m_page); if (!frameView.frame().isMainFrame() && !m_page->settings().scrollingTreeIncludesFrames()) return false; RenderView* renderView = m_page->mainFrame().contentRenderer(); if (!renderView) return false; return renderView->usesCompositing(); }
bool ScrollingCoordinator::coordinatesScrollingForFrameView(FrameView* frameView) const { ASSERT(isMainThread()); ASSERT(m_page); // We currently only handle the main frame. if (!frameView->frame().isMainFrame()) return false; // We currently only support composited mode. RenderView* renderView = m_page->mainFrame().contentRenderer(); if (!renderView) return false; return renderView->usesCompositing(); }
bool ScrollingCoordinator::coordinatesScrollingForFrameView(FrameView* frameView) const { ASSERT(isMainThread()); ASSERT(m_page); // We currently only handle the main frame. if (frameView->frame() != m_page->mainFrame()) return false; // We currently only support composited mode. #if USE(ACCELERATED_COMPOSITING) RenderView* renderView = m_page->mainFrame()->contentRenderer(); if (!renderView) return false; return renderView->usesCompositing(); #else return false; #endif }