Bug 1288210 - Update the comment above AlignFixedAndStickyLayers(). r=mstange

MozReview-Commit-ID: ri9bJZLHYB

--HG--
extra : rebase_source : f2d084a8110944212814344fd9174b6a6efdbbe3
This commit is contained in:
Botond Ballo 2016-09-26 16:28:24 -04:00
parent a9d2b5cbba
commit ec3f9a2275

View File

@ -172,22 +172,20 @@ private:
/**
* Adds a translation to the transform of any fixed position (whose parent
* layer is not fixed) or sticky position layer descendant of
* aTransformedSubtreeRoot. The translation is chosen so that the layer's
* anchor point relative to aTransformedSubtreeRoot's parent layer is the same
* as it was when aTransformedSubtreeRoot's GetLocalTransform() was
* aPreviousTransformForRoot. aCurrentTransformForRoot is
* aTransformedSubtreeRoot's current GetLocalTransform() modulo any
* |aTransformedSubtreeRoot|. The translation is chosen so that the layer's
* anchor point relative to |aTransformedSubtreeRoot|'s parent layer is the same
* as it was when |aTransformedSubtreeRoot|'s GetLocalTransform() was
* |aPreviousTransformForRoot|. |aCurrentTransformForRoot| is
* |aTransformedSubtreeRoot|'s current GetLocalTransform() modulo any
* overscroll-related transform, which we don't want to adjust for.
* For sticky position layers, the translation is further intersected with
* the layer's sticky scroll ranges.
* This function will also adjust layers so that the given content document
* fixed position margins will be respected during asynchronous panning and
* zooming.
* aTransformAffectsLayerClip indicates whether the transform on
* aTransformedSubtreeRoot affects aLayer's clip rects, so we know
* whether we need to perform a corresponding unadjustment to keep
* the clip rect fixed.
* aClipPartsCache optionally maps layers to separate fixed and scrolled
* |aTransformScrollId| is the scroll id of the scroll frame that scrolls
* |aTransformedSubtreeRoot|.
* |aClipPartsCache| optionally maps layers to separate fixed and scrolled
* clips, so we can only adjust the fixed portion.
*/
void AlignFixedAndStickyLayers(Layer* aTransformedSubtreeRoot,