Bug 790508: SampleAnimations should walk the layer tree from the root instead of from the primary scrollable layer r=cjones
authorDavid Zbarsky <dzbarsky@gmail.com>
Mon, 01 Oct 2012 02:13:49 -0400
changeset 108826 02ba33fdf2d21d7bf43ff1f4a845a4a4f4fbdc65
parent 108825 9a88f0d57e7d6cb4a810cb007f359300ff4286f0
child 108827 13085adbbf5d1a1d6e6004d23cdf70eb57a54a8a
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewerscjones
bugs790508
milestone18.0a1
Bug 790508: SampleAnimations should walk the layer tree from the root instead of from the primary scrollable layer r=cjones
gfx/layers/ipc/CompositorParent.cpp
--- a/gfx/layers/ipc/CompositorParent.cpp
+++ b/gfx/layers/ipc/CompositorParent.cpp
@@ -753,17 +753,17 @@ CompositorParent::TransformShadowTree(Ti
   bool wantNextFrame = false;
   Layer* layer = mLayerManager->GetPrimaryScrollableLayer();
   ShadowLayer* shadow = layer->AsShadowLayer();
   ContainerLayer* container = layer->AsContainerLayer();
   Layer* root = mLayerManager->GetRoot();
 
   // NB: we must sample animations *before* sampling pan/zoom
   // transforms.
-  wantNextFrame |= SampleAnimations(layer, mLastCompose);
+  wantNextFrame |= SampleAnimations(root, mLastCompose);
 
   const FrameMetrics& metrics = container->GetFrameMetrics();
   // We must apply the resolution scale before a pan/zoom transform, so we call
   // GetTransform here.
   const gfx3DMatrix& rootTransform = root->GetTransform();
   const gfx3DMatrix& currentTransform = layer->GetTransform();
 
   // FIXME/bug 775437: unify this interface with the ~native-fennec