Bug 774388 - Patch 6: fix a silly double negation - r=nical
authorBenoit Jacob <bjacob@mozilla.com>
Fri, 06 Jun 2014 09:51:27 -0400
changeset 188951 0033c281d90d6bcde616011a70589591bf52902a
parent 188950 d61342b2da5e0cd38349a6ad0d363e800cdca345
child 188952 3d405f960e94e79b07f3720683d3a04829af176b
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersnical
bugs774388
milestone33.0a1
Bug 774388 - Patch 6: fix a silly double negation - r=nical
gfx/layers/ipc/CompositorParent.cpp
--- a/gfx/layers/ipc/CompositorParent.cpp
+++ b/gfx/layers/ipc/CompositorParent.cpp
@@ -784,17 +784,19 @@ CompositorParent::ForceComposeToTarget(D
   mOverrideComposeReadiness = true;
 
   CompositeToTarget(aTarget, aRect);
 }
 
 bool
 CompositorParent::CanComposite()
 {
-  return !(mPaused || !mLayerManager || !mLayerManager->GetRoot());
+  return mLayerManager &&
+         mLayerManager->GetRoot() &&
+         !mPaused;
 }
 
 // Go down the composite layer tree, setting properties to match their
 // content-side counterparts.
 static void
 SetShadowProperties(Layer* aLayer)
 {
   // FIXME: Bug 717688 -- Do these updates in LayerTransactionParent::RecvUpdate.