From f5f74997cd0659c80fced9101086fc64bd0512fd 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 --HG-- extra : rebase_source : b69104a407c62a3f25e708b172c8e51eac7e9295 extra : source : 2a98e76921bb905d750a2e36e6057a5bb6f4fd41 --- 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 70bc2a10a2e2..9ab31b44833e 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,