Paint directly into a GraphicsLayer when using accelerated compositing
[WebKit-https.git] / Source / WebKit / win / WebCoreSupport / WebChromeClient.cpp
index 3e73c626e3f8cc0754cf93f12ab9e4a82360a61f..6460b4ad02913a85dde69ff58a054ab6096634bb 100644 (file)
@@ -821,12 +821,12 @@ void WebChromeClient::setLastSetCursorToCurrentCursor()
 #if USE(ACCELERATED_COMPOSITING)
 void WebChromeClient::attachRootGraphicsLayer(Frame* frame, GraphicsLayer* graphicsLayer)
 {
-    m_webView->setRootChildLayer(graphicsLayer ? PlatformCALayer::platformCALayer(graphicsLayer->platformLayer()) : 0);
+    m_webView->setRootChildLayer(graphicsLayer);
 }
 
 void WebChromeClient::scheduleCompositingLayerSync()
 {
-    m_webView->setRootLayerNeedsDisplay(true);
+    m_webView->scheduleCompositingLayerSync();
 }
 
 #endif