mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
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:
parent
4f8f6ce552
commit
1f87f52eb8
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user