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:
Kartikaya Gupta 2018-03-28 06:32:06 -04:00
parent 1ad07c54db
commit 373c7f9cd5

View File

@ -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);
}