2012-05-16 Tim Horton <timothy_horton@apple.com>
+ Scrollbar layers should respect accelerated drawing setting
+ https://bugs.webkit.org/show_bug.cgi?id=86644
+ <rdar://problem/11462038>
+
+ Reviewed by Simon Fraser.
+
+ When creating scrollbar layers, pass through the accelerated drawing setting.
+
+ No new tests.
+
+ * rendering/RenderLayerCompositor.cpp:
+ (WebCore::RenderLayerCompositor::updateOverflowControlsLayers):
+
+2012-05-16 Tim Horton <timothy_horton@apple.com>
+
FrameView::scrollContentsFastPath should use painted area to determine whether to drop out of the fast path
https://bugs.webkit.org/show_bug.cgi?id=86651
<rdar://problem/11459243>
#ifndef NDEBUG
m_layerForHorizontalScrollbar->setName("horizontal scrollbar");
#endif
+ #if PLATFORM(MAC) && USE(CA)
+ m_layerForHorizontalScrollbar->setAcceleratesDrawing(acceleratedDrawingEnabled());
+ #endif
m_overflowControlsHostLayer->addChild(m_layerForHorizontalScrollbar.get());
if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator())
#ifndef NDEBUG
m_layerForVerticalScrollbar->setName("vertical scrollbar");
#endif
+ #if PLATFORM(MAC) && USE(CA)
+ m_layerForVerticalScrollbar->setAcceleratesDrawing(acceleratedDrawingEnabled());
+ #endif
m_overflowControlsHostLayer->addChild(m_layerForVerticalScrollbar.get());
if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator())
#ifndef NDEBUG
m_layerForScrollCorner->setName("scroll corner");
#endif
+ #if PLATFORM(MAC) && USE(CA)
+ m_layerForScrollCorner->setAcceleratesDrawing(acceleratedDrawingEnabled());
+ #endif
m_overflowControlsHostLayer->addChild(m_layerForScrollCorner.get());
}
} else if (m_layerForScrollCorner) {