diff --git a/layout/generic/nsViewportFrame.cpp b/layout/generic/nsViewportFrame.cpp index 7ff89a806864..cf70299ff5ca 100644 --- a/layout/generic/nsViewportFrame.cpp +++ b/layout/generic/nsViewportFrame.cpp @@ -59,13 +59,12 @@ ViewportFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, BuildDisplayListForChild(aBuilder, kid, aDirtyRect, aLists); } +#ifdef DEBUG void ViewportFrame::SetInitialChildList(ChildListID aListID, nsFrameList& aChildList) { -#ifdef DEBUG nsFrame::VerifyDirtyBitSet(aChildList); -#endif nsContainerFrame::SetInitialChildList(aListID, aChildList); } @@ -73,10 +72,8 @@ void ViewportFrame::AppendFrames(ChildListID aListID, nsFrameList& aFrameList) { - NS_ASSERTION(aListID == kPrincipalList || - aListID == GetAbsoluteListID(), "unexpected child list"); - NS_ASSERTION(aListID != GetAbsoluteListID() || - GetChildList(aListID).IsEmpty(), "Shouldn't have any kids!"); + NS_ASSERTION(aListID == kPrincipalList, "unexpected child list"); + NS_ASSERTION(GetChildList(aListID).IsEmpty(), "Shouldn't have any kids!"); nsContainerFrame::AppendFrames(aListID, aFrameList); } @@ -85,10 +82,8 @@ ViewportFrame::InsertFrames(ChildListID aListID, nsIFrame* aPrevFrame, nsFrameList& aFrameList) { - NS_ASSERTION(aListID == kPrincipalList || - aListID == GetAbsoluteListID(), "unexpected child list"); - NS_ASSERTION(aListID != GetAbsoluteListID() || - GetChildList(aListID).IsEmpty(), "Shouldn't have any kids!"); + NS_ASSERTION(aListID == kPrincipalList, "unexpected child list"); + NS_ASSERTION(GetChildList(aListID).IsEmpty(), "Shouldn't have any kids!"); nsContainerFrame::InsertFrames(aListID, aPrevFrame, aFrameList); } @@ -96,10 +91,10 @@ void ViewportFrame::RemoveFrame(ChildListID aListID, nsIFrame* aOldFrame) { - NS_ASSERTION(aListID == kPrincipalList || - aListID == GetAbsoluteListID(), "unexpected child list"); + NS_ASSERTION(aListID == kPrincipalList, "unexpected child list"); nsContainerFrame::RemoveFrame(aListID, aOldFrame); } +#endif /* virtual */ nscoord ViewportFrame::GetMinWidth(nsRenderingContext *aRenderingContext) diff --git a/layout/generic/nsViewportFrame.h b/layout/generic/nsViewportFrame.h index fc68de64c5fd..05ba6e95f6e8 100644 --- a/layout/generic/nsViewportFrame.h +++ b/layout/generic/nsViewportFrame.h @@ -38,6 +38,7 @@ public: nsContainerFrame* aParent, nsIFrame* aPrevInFlow) MOZ_OVERRIDE; +#ifdef DEBUG virtual void SetInitialChildList(ChildListID aListID, nsFrameList& aChildList) MOZ_OVERRIDE; virtual void AppendFrames(ChildListID aListID, @@ -47,6 +48,7 @@ public: nsFrameList& aFrameList) MOZ_OVERRIDE; virtual void RemoveFrame(ChildListID aListID, nsIFrame* aOldFrame) MOZ_OVERRIDE; +#endif virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder, const nsRect& aDirtyRect,