mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 825808 - Fix animations by marking transforms as not fixed. r=roc
This commit is contained in:
parent
2a183d535a
commit
7cc38ffb42
@ -822,6 +822,7 @@ SampleAnimations(Layer* aLayer, TimeStamp aPoint)
|
||||
c->GetInheritedYScale(),
|
||||
1);
|
||||
}
|
||||
NS_ASSERTION(!aLayer->GetIsFixedPosition(), "Can't animate transforms on fixed-position layers");
|
||||
shadow->SetShadowTransform(matrix);
|
||||
break;
|
||||
}
|
||||
|
@ -2170,7 +2170,11 @@ ContainerState::ProcessDisplayItems(const nsDisplayList& aList,
|
||||
mParameters.mYScale);
|
||||
}
|
||||
|
||||
ownLayer->SetIsFixedPosition(isFixed);
|
||||
// If a transform layer is marked as fixed then the shadow transform gets
|
||||
// overwritten by CompositorParent when doing scroll compensation on
|
||||
// fixed layers. This means we need to make sure transform layers are not
|
||||
// marked as fixed.
|
||||
ownLayer->SetIsFixedPosition(isFixed && type != nsDisplayItem::TYPE_TRANSFORM);
|
||||
|
||||
// Update that layer's clip and visible rects.
|
||||
NS_ASSERTION(ownLayer->Manager() == mManager, "Wrong manager");
|
||||
|
Loading…
Reference in New Issue
Block a user