mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
05e5b054bb
commit
695bc44b42
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user