Bug 1301356 - Correct output of nsDisplayFilter::PrintEffects & nsDisplayMask::PrintEffects. r=mstange

MozReview-Commit-ID: LNd4OKAwxJ8

--HG--
extra : rebase_source : 2ee2e4fdc82989011a1b326b1aadfb4d51220ecc
This commit is contained in:
cku 2016-09-08 18:11:43 +08:00
parent 658b898375
commit 2cc23811aa

View File

@ -6854,7 +6854,7 @@ nsDisplayMask::PrintEffects(nsACString& aTo)
nsSVGClipPathFrame *clipPathFrame = effectProperties.GetClipPathFrame(&isOK);
bool first = true;
aTo += " effects=(";
if (mFrame->StyleEffects()->mOpacity != 1.0f) {
if (mFrame->StyleEffects()->mOpacity != 1.0f && mHandleOpacity) {
first = false;
aTo += nsPrintfCString("opacity(%f)", mFrame->StyleEffects()->mOpacity);
}
@ -7009,7 +7009,7 @@ nsDisplayFilter::PrintEffects(nsACString& aTo)
nsSVGEffects::GetEffectProperties(firstFrame);
bool first = true;
aTo += " effects=(";
if (mFrame->StyleEffects()->mOpacity != 1.0f) {
if (mFrame->StyleEffects()->mOpacity != 1.0f && mHandleOpacity) {
first = false;
aTo += nsPrintfCString("opacity(%f)", mFrame->StyleEffects()->mOpacity);
}