Backout f667f6c22bed (Bug 732988) for linux Cipc orange

This commit is contained in:
Daniel Holbert 2012-03-11 16:41:39 -07:00
parent f6653e490a
commit e4efb8b1ed

View File

@ -1549,13 +1549,7 @@ nsObjectFrame::BuildLayer(nsDisplayListBuilder* aBuilder,
return nsnull;
}
gfxIntSize size;
if (mInstanceOwner->UseAsyncRendering()) {
size = container->GetCurrentSize();
} else {
size = gfxIntSize(window->width, window->height);
}
gfxIntSize size = container->GetCurrentSize();
nsRect area = GetContentRectRelativeToSelf() + aItem->ToReferenceFrame();
gfxRect r = nsLayoutUtils::RectToGfxRect(area, PresContext()->AppUnitsPerDevPixel());
@ -1578,9 +1572,6 @@ nsObjectFrame::BuildLayer(nsDisplayListBuilder* aBuilder,
ImageLayer* imglayer = static_cast<ImageLayer*>(layer.get());
UpdateImageLayer(r);
if (!mInstanceOwner->UseAsyncRendering()) {
imglayer->SetScaleToSize(size, ImageLayer::SCALE_STRETCH);
}
imglayer->SetContainer(container);
gfxPattern::GraphicsFilter filter =
nsLayoutUtils::GetGraphicsFilterForFrame(this);