Bug 1166301 - When applying an async adjustment to a fixed layer, only adjust its mask layer under the same circumstances as its clip rect. r=mattwoodrow

--HG--
extra : rebase_source : 711ec4146313ffa80e52303449d2529bde2c00d0
extra : source : 1981f6bcae100a38af7dc3aa9038f74390e6ef04
This commit is contained in:
Botond Ballo 2015-08-28 13:57:00 -04:00
parent 4f8f6ce552
commit 1f87f52eb8

View File

@ -209,12 +209,12 @@ TranslateShadowLayer(Layer* aLayer,
if (aAdjustClipRect) {
TransformClipRect(aLayer, Matrix4x4::Translation(aTranslation.x, aTranslation.y, 0));
}
// If a fixed- or sticky-position layer has a mask layer, that mask should
// move along with the layer, so apply the translation to the mask layer too.
if (Layer* maskLayer = aLayer->GetMaskLayer()) {
TranslateShadowLayer(maskLayer, aTranslation, false);
// If a fixed- or sticky-position layer has a mask layer, that mask should
// move along with the layer, so apply the translation to the mask layer too.
if (Layer* maskLayer = aLayer->GetMaskLayer()) {
TranslateShadowLayer(maskLayer, aTranslation, false);
}
}
}