[wk2] Page overlays should use the accelerated drawing setting instead of hardcoding...
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Mar 2013 05:54:16 +0000 (05:54 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Mar 2013 05:54:16 +0000 (05:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111654
<rdar://problem/13364085>

Reviewed by Simon Fraser.

* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
(WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm

index 8a18011..8b0bad6 100644 (file)
@@ -1,3 +1,15 @@
+2013-03-06  Tim Horton  <timothy_horton@apple.com>
+
+        [wk2] Page overlays should use the accelerated drawing setting instead of hardcoding it on
+        https://bugs.webkit.org/show_bug.cgi?id=111654
+        <rdar://problem/13364085>
+
+        Reviewed by Simon Fraser.
+
+        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
+        (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
+        (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
+
 2013-03-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
 
         [EFL][WK2] Enable interactive form validation for email and url input type validation
index e7ade12..0e45f7b 100644 (file)
@@ -210,6 +210,7 @@ void TiledCoreAnimationDrawingArea::updatePreferences(const WebPreferencesStore&
         tiledBacking->setAggressivelyRetainsTiles(settings->aggressiveTileRetentionEnabled());
     
     if (m_pageOverlayLayer) {
+        m_pageOverlayLayer->setAcceleratesDrawing(settings->acceleratedDrawingEnabled());
         m_pageOverlayLayer->setShowDebugBorder(settings->showDebugBorders());
         m_pageOverlayLayer->setShowRepaintCounter(settings->showRepaintCounter());
     }
@@ -501,7 +502,7 @@ void TiledCoreAnimationDrawingArea::createPageOverlayLayer()
     m_pageOverlayLayer->setName("page overlay content");
 #endif
 
-    m_pageOverlayLayer->setAcceleratesDrawing(true);
+    m_pageOverlayLayer->setAcceleratesDrawing(m_webPage->corePage()->settings()->acceleratedDrawingEnabled());
     m_pageOverlayLayer->setDrawsContent(true);
     m_pageOverlayLayer->setSize(expandedIntSize(FloatSize(m_rootLayer.get().frame.size)));
     m_pageOverlayLayer->setShowDebugBorder(m_webPage->corePage()->settings()->showDebugBorders());