Scrollbar layers should respect accelerated drawing setting
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2012 18:45:03 +0000 (18:45 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2012 18:45:03 +0000 (18:45 +0000)
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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117314 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayerCompositor.cpp

index b19612d..6062117 100644 (file)
@@ -1,5 +1,20 @@
 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>
index 79dfef2..06c62c3 100644 (file)
@@ -1982,6 +1982,9 @@ void RenderLayerCompositor::updateOverflowControlsLayers()
     #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())
@@ -2001,6 +2004,9 @@ void RenderLayerCompositor::updateOverflowControlsLayers()
     #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())
@@ -2020,6 +2026,9 @@ void RenderLayerCompositor::updateOverflowControlsLayers()
     #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) {