From ca40be3124a40ac9ce8d259d00dc53813951bc3e Mon Sep 17 00:00:00 2001 From: Benjamin Stover Date: Wed, 13 Apr 2011 10:45:00 -0700 Subject: [PATCH] Bug 649666 Do not create container layers for scrollboxes with (0, 0) scrollRange r=roc --- layout/generic/nsGfxScrollFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index fa4dd392d6b..8d97771df43 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -1983,6 +1983,8 @@ nsGfxScrollFrameInner::BuildDisplayList(nsDisplayListBuilder* aBuilder, (XRE_GetProcessType() == GeckoProcessType_Content && (styles.mHorizontal != NS_STYLE_OVERFLOW_HIDDEN || styles.mVertical != NS_STYLE_OVERFLOW_HIDDEN) && + (scrollRange.width > 0 || + scrollRange.height > 0) && (!mIsRoot || !mOuter->PresContext()->IsRootContentDocument())); if (ShouldBuildLayer()) {