From d8c440090479220900463bf45b9b3f6f17b40e9f Mon Sep 17 00:00:00 2001 From: Botond Ballo Date: Fri, 28 Aug 2015 15:21:01 -0400 Subject: [PATCH] Bug 1166301 - Update an old comment in AsyncCompositionManager::AlignFixedAndStickyLayers. r=kats --- gfx/layers/composite/AsyncCompositionManager.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gfx/layers/composite/AsyncCompositionManager.cpp b/gfx/layers/composite/AsyncCompositionManager.cpp index 70bc2a10a2e..9ab31b44833 100644 --- a/gfx/layers/composite/AsyncCompositionManager.cpp +++ b/gfx/layers/composite/AsyncCompositionManager.cpp @@ -284,13 +284,10 @@ AsyncCompositionManager::AlignFixedAndStickyLayers(Layer* aLayer, bool isFixedOrSticky = (isRootFixedForSubtree || isStickyForSubtree); // We want to process all the fixed and sticky children of - // aTransformedSubtreeRoot. Also, once we do encounter such a child, we don't - // need to recurse any deeper because the fixed layers are relative to their - // nearest scrollable layer. + // aTransformedSubtreeRoot. Once we do encounter such a child, we don't + // need to recurse any deeper because the adjustment to the fixed or sticky + // layer will apply to its subtree. if (!isFixedOrSticky) { - // ApplyAsyncContentTransformToTree will call this function again for - // nested scrollable layers, so we don't need to recurse if the layer is - // scrollable. for (Layer* child = aLayer->GetFirstChild(); child; child = child->GetNextSibling()) { AlignFixedAndStickyLayers(child, aTransformedSubtreeRoot, aTransformScrollId, aPreviousTransformForRoot,