Bug 819915 - Fix IsSingleFixedPositionImage to actually check if we only have a single image. r=roc

This commit is contained in:
Matt Woodrow 2012-12-17 17:30:57 +13:00
parent d93bbe8be4
commit ccc6b9efe8

View File

@ -1733,6 +1733,9 @@ nsDisplayBackgroundImage::IsSingleFixedPositionImage(nsDisplayListBuilder* aBuil
if (mIsThemed || !mBackgroundStyle)
return false;
if (mBackgroundStyle->mLayers.Length() != 1)
return false;
nsPresContext* presContext = mFrame->PresContext();
uint32_t flags = aBuilder->GetBackgroundPaintFlags();
nsRect borderArea = nsRect(ToReferenceFrame(), mFrame->GetSize());