Bug 832341 - Use the correct border area (rather than the canvas area) when computing the bounds of an nsDisplayCanvasBackgroundImage. r=roc

This commit is contained in:
Matt Woodrow 2013-01-30 18:07:29 +13:00
parent caf94abdb6
commit f18c00bb62

View File

@ -2179,10 +2179,6 @@ nsDisplayBackgroundImage::GetBoundsInternal() {
}
nsRect borderBox = nsRect(ToReferenceFrame(), mFrame->GetSize());
if (mFrame->GetType() == nsGkAtoms::canvasFrame) {
nsCanvasFrame* frame = static_cast<nsCanvasFrame*>(mFrame);
borderBox = frame->CanvasArea() + ToReferenceFrame();
}
const nsStyleBackground::Layer& layer = mBackgroundStyle->mLayers[mLayer];
return nsCSSRendering::GetBackgroundLayerRect(presContext, mFrame,
borderBox, *mBackgroundStyle, layer);