Index: Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (revision 116996) |
+++ Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (working copy) |
@@ -588,6 +588,7 @@ |
m_transformLayer = LayerChromium::create(); |
m_transformLayer->setPreserves3D(true); |
m_transformLayer->setLayerAnimationDelegate(this); |
+ m_transformLayer->setLayerAnimationController(m_layer->releaseLayerAnimationController()); |
// Copy the position from this layer. |
updateLayerPosition(); |
@@ -619,6 +620,9 @@ |
if (m_transformLayer->parent()) |
m_transformLayer->parent()->replaceChild(m_transformLayer.get(), m_layer.get()); |
+ m_layer->setLayerAnimationDelegate(this); |
+ m_layer->setLayerAnimationController(m_transformLayer->releaseLayerAnimationController()); |
+ |
// Release the transform layer. |
m_transformLayer->setLayerAnimationDelegate(0); |
m_transformLayer = 0; |