Bug 618975 Follow-up: Fix for non-IPC builds and remove warning r=blassey a=fix-comm-builds

This commit is contained in:
Benjamin Stover 2011-03-15 18:58:28 -07:00
Родитель 3c286c487a
Коммит 81facc43d5
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1750,7 +1750,6 @@ nsDisplayScrollLayer::ComputeVisibility(nsDisplayListBuilder* aBuilder,
const nsRect& aAllowVisibleRegionExpansion,
PRBool& aContainsRootContentDocBG)
{
nsPresContext* presContext = mFrame->PresContext();
nsRect displayport;
if (nsLayoutUtils::GetDisplayPort(mFrame->GetContent(), &displayport)) {
// The visible region for the children may be much bigger than the hole we

Просмотреть файл

@ -1937,7 +1937,6 @@ nsGfxScrollFrameInner::BuildDisplayList(nsDisplayListBuilder* aBuilder,
(scrollRange.width >= NSIntPixelsToAppUnits(20, appUnitsPerDevPixel) ||
scrollRange.height >= NSIntPixelsToAppUnits(20, appUnitsPerDevPixel))) &&
(!mIsRoot || !mOuter->PresContext()->IsRootContentDocument());
#endif
if (ShouldBuildLayer()) {
// Note that using StackingContext breaks z order, so the resulting
@ -1950,7 +1949,9 @@ nsGfxScrollFrameInner::BuildDisplayList(nsDisplayListBuilder* aBuilder,
nsDisplayScrollLayer* layerItem = new (aBuilder) nsDisplayScrollLayer(
aBuilder, &list, mScrolledFrame, mOuter);
set.Content()->AppendNewToTop(layerItem);
} else {
} else
#endif
{
rv = mOuter->BuildDisplayListForChild(aBuilder, mScrolledFrame, dirtyRect, set);
}