Bug 1520664 - Bug 1498639 - Cleanup ReferenceFrame so that each of them has a single matrix. r=kvark

The only thing using both was perspective, but that's not really needed with the current setup.

This more closely matches Gecko, too.

Differential Revision: https://phabricator.services.mozilla.com/D16764
This commit is contained in:
Emilio Cobos Álvarez
2019-01-17 16:08:35 +00:00
parent 5651f46171
commit bbecfdf57d
13 changed files with 73 additions and 71 deletions

View File

@@ -403,8 +403,8 @@ void AsyncImagePipelineManager::ApplyAsyncImageForPipeline(
wr::ToRoundedLayoutRect(aPipeline->mScBounds),
wr::WrStackingContextClip::None(), nullptr, &opacity,
aPipeline->mScTransform.IsIdentity() ? nullptr : &aPipeline->mScTransform,
wr::TransformStyle::Flat, nullptr, aPipeline->mMixBlendMode,
nsTArray<wr::FilterOp>(), true,
wr::TransformStyle::Flat, wr::ReferenceFrameKind::Transform,
aPipeline->mMixBlendMode, nsTArray<wr::FilterOp>(), true,
// This is fine to do unconditionally because we only push images here.
wr::RasterSpace::Screen());