Skip to content

Commit

Permalink
Bug 618975 Follow-up: Fix for non-IPC builds and remove warning r=bla…
Browse files Browse the repository at this point in the history
…ssey a=fix-comm-builds
  • Loading branch information
Benjamin Stover committed Mar 16, 2011
1 parent e2473b9 commit 6fc39e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion layout/base/nsDisplayList.cpp
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions layout/generic/nsGfxScrollFrame.cpp
Expand Up @@ -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
Expand All @@ -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);
}

Expand Down

0 comments on commit 6fc39e3

Please sign in to comment.