mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Backout f667f6c22bed (Bug 732988) for linux Cipc orange
This commit is contained in:
parent
f6653e490a
commit
e4efb8b1ed
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user