Bug 642205 Followup: Remove bogus assertion r=roc a=followup-for-blocking-fennec
authorBenjamin Stover <bstover@mozilla.com>
Wed, 16 Mar 2011 14:17:25 -0700
changeset 63427 821740bc1b4d
parent 63426 54cb5591480e
child 63428 75147c0a4b89
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersroc, followup-for-blocking-fennec
bugs642205
milestone2.0b13pre
Bug 642205 Followup: Remove bogus assertion r=roc a=followup-for-blocking-fennec
layout/generic/nsGfxScrollFrame.cpp
--- a/layout/generic/nsGfxScrollFrame.cpp
+++ b/layout/generic/nsGfxScrollFrame.cpp
@@ -2040,21 +2040,16 @@ nsGfxScrollFrameInner::GetScrollbarStyle
                        result.mVertical);
     }
   } else {
     const nsStyleDisplay *disp = mOuter->GetStyleDisplay();
     result.mHorizontal = disp->mOverflowX;
     result.mVertical = disp->mOverflowY;
   }
 
-  NS_ASSERTION(result.mHorizontal != NS_STYLE_OVERFLOW_VISIBLE &&
-               result.mHorizontal != NS_STYLE_OVERFLOW_CLIP &&
-               result.mVertical != NS_STYLE_OVERFLOW_VISIBLE &&
-               result.mVertical != NS_STYLE_OVERFLOW_CLIP,
-               "scrollbars should not have been created");
   return result;
 }
 
 static nscoord
 AlignToDevPixelRoundingToZero(nscoord aVal, PRInt32 aAppUnitsPerDevPixel)
 {
   return (aVal/aAppUnitsPerDevPixel)*aAppUnitsPerDevPixel;
 }