mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1449478
- Actually prevent creating new scroll data for simple transform items. r=jrmuizel
MozReview-Commit-ID: ClRVNR1ILSg --HG-- extra : rebase_source : 25867ea31574335f89d21093149e54f7e957e78f
This commit is contained in:
parent
1ad07c54db
commit
373c7f9cd5
@ -8554,7 +8554,12 @@ bool
|
||||
nsDisplayTransform::UpdateScrollData(mozilla::layers::WebRenderScrollData* aData,
|
||||
mozilla::layers::WebRenderLayerScrollData* aLayerData)
|
||||
{
|
||||
if (aLayerData && mFrame->HasPerspective()) {
|
||||
if (!mFrame->HasPerspective()) {
|
||||
// This case is handled in CreateWebRenderCommands by stashing the transform
|
||||
// on the stacking context.
|
||||
return false;
|
||||
}
|
||||
if (aLayerData) {
|
||||
aLayerData->SetTransform(GetTransform().GetMatrix());
|
||||
aLayerData->SetTransformIsPerspective(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user