зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1313276
- Part 2. Add comment for bug 1323912. r=mstange
MozReview-Commit-ID: CetQxWIr1sq --HG-- extra : rebase_source : c5941bdbd076197b13f2474160b67b9923048974 extra : source : d306c622c34e8290dc22212928eed6e817f0c182
This commit is contained in:
Родитель
bedd21d45a
Коммит
df51b78be9
|
@ -7353,6 +7353,8 @@ bool nsDisplayMask::ShouldPaintOnMaskLayer(LayerManager* aManager)
|
|||
nsSVGUtils::MaskUsage maskUsage;
|
||||
nsSVGUtils::DetermineMaskUsage(mFrame, mHandleOpacity, maskUsage);
|
||||
|
||||
// XXX Bug 1323912. nsSVGIntegrationUtils::PaintMask can not handle opacity
|
||||
// correctly. Turn it off before bug fixed.
|
||||
if (maskUsage.opacity != 1.0) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -804,9 +804,10 @@ nsSVGIntegrationUtils::PaintMask(const PaintFramesParams& aParams)
|
|||
SetupContextMatrix(frame, aParams, offsetToBoundingBox,
|
||||
offsetToUserSpace);
|
||||
nsTArray<nsSVGMaskFrame *> maskFrames = effectProperties.GetMaskFrames();
|
||||
bool opacityApplied = !HasNonSVGMask(maskFrames);
|
||||
result = PaintMaskSurface(aParams, maskTarget,
|
||||
opacityApplied ? maskUsage.opacity : 1.0,
|
||||
// XXX Bug 1323912.
|
||||
MOZ_ASSERT(maskUsage.opacity == 1.0,
|
||||
"nsSVGIntegrationUtils::PaintMask can not handle opacity now.");
|
||||
result = PaintMaskSurface(aParams, maskTarget, 1.0,
|
||||
firstFrame->StyleContext(), maskFrames,
|
||||
ctx.CurrentMatrix(), offsetToUserSpace);
|
||||
if (result != DrawResult::SUCCESS) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче