Bug 1166301 - Update an old comment in AsyncCompositionManager::AlignFixedAndStickyLayers. r=kats

This commit is contained in:
Botond Ballo 2015-08-28 15:21:01 -04:00
parent a5a6088b91
commit d8c4400904

View File

@ -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,