Bug 322689 - ASSERTION: Wrapping frame should be block-level: aLastRS->frame->GetStyl, r+sr=bzbarsky, a=dbaron
authormartijn.martijn@gmail.com
Tue, 14 Aug 2007 13:52:21 -0700
changeset 4642 a9da2d9d01fa1624dde6e36db5815dfaec0c3da1
parent 4641 66052ebe1c348996cc655357c840ef98e3299a3e
child 4643 ef94956c154c8758d1de52bd79f07e91f230c2a3
push idunknown
push userunknown
push dateunknown
reviewersdbaron
bugs322689
milestone1.9a8pre
Bug 322689 - ASSERTION: Wrapping frame should be block-level: aLastRS->frame->GetStyl, r+sr=bzbarsky, a=dbaron
layout/generic/nsBlockFrame.cpp
--- a/layout/generic/nsBlockFrame.cpp
+++ b/layout/generic/nsBlockFrame.cpp
@@ -790,20 +790,16 @@ CalculateContainingBlockSizeForAbsolutes
     const nsHTMLReflowState* aLastRS = &aReflowState;
     const nsHTMLReflowState* lastButOneRS = &aReflowState;
     while (aLastRS->parentReflowState &&
            aLastRS->parentReflowState->frame->GetContent() == frame->GetContent()) {
       lastButOneRS = aLastRS;
       aLastRS = aLastRS->parentReflowState;
     }
     if (aLastRS != &aReflowState) {
-      // The wrapper frame should be block-level. If it isn't, how the
-      // heck did it end up wrapping this block frame?
-      NS_ASSERTION(aLastRS->frame->GetStyleDisplay()->IsBlockOutside(),
-                   "Wrapping frame should be block-level");
       // Scrollbars need to be specifically excluded, if present, because they are outside the
       // padding-edge. We need better APIs for getting the various boxes from a frame.
       nsIScrollableFrame* scrollFrame;
       CallQueryInterface(aLastRS->frame, &scrollFrame);
       nsMargin scrollbars(0,0,0,0);
       if (scrollFrame) {
         nsBoxLayoutState dummyState(aLastRS->frame->PresContext(),
                                     aLastRS->rendContext);