зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1015781 - part 6, Make nsViewportFrame::SetInitialChildList/AppendFrames/InsertFrames/RemoveFrame DEBUG only. r=roc
This commit is contained in:
Родитель
16e5742424
Коммит
0aa4c77503
|
@ -59,13 +59,12 @@ ViewportFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||||
BuildDisplayListForChild(aBuilder, kid, aDirtyRect, aLists);
|
BuildDisplayListForChild(aBuilder, kid, aDirtyRect, aLists);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
void
|
void
|
||||||
ViewportFrame::SetInitialChildList(ChildListID aListID,
|
ViewportFrame::SetInitialChildList(ChildListID aListID,
|
||||||
nsFrameList& aChildList)
|
nsFrameList& aChildList)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
|
||||||
nsFrame::VerifyDirtyBitSet(aChildList);
|
nsFrame::VerifyDirtyBitSet(aChildList);
|
||||||
#endif
|
|
||||||
nsContainerFrame::SetInitialChildList(aListID, aChildList);
|
nsContainerFrame::SetInitialChildList(aListID, aChildList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,10 +72,8 @@ void
|
||||||
ViewportFrame::AppendFrames(ChildListID aListID,
|
ViewportFrame::AppendFrames(ChildListID aListID,
|
||||||
nsFrameList& aFrameList)
|
nsFrameList& aFrameList)
|
||||||
{
|
{
|
||||||
NS_ASSERTION(aListID == kPrincipalList ||
|
NS_ASSERTION(aListID == kPrincipalList, "unexpected child list");
|
||||||
aListID == GetAbsoluteListID(), "unexpected child list");
|
NS_ASSERTION(GetChildList(aListID).IsEmpty(), "Shouldn't have any kids!");
|
||||||
NS_ASSERTION(aListID != GetAbsoluteListID() ||
|
|
||||||
GetChildList(aListID).IsEmpty(), "Shouldn't have any kids!");
|
|
||||||
nsContainerFrame::AppendFrames(aListID, aFrameList);
|
nsContainerFrame::AppendFrames(aListID, aFrameList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,10 +82,8 @@ ViewportFrame::InsertFrames(ChildListID aListID,
|
||||||
nsIFrame* aPrevFrame,
|
nsIFrame* aPrevFrame,
|
||||||
nsFrameList& aFrameList)
|
nsFrameList& aFrameList)
|
||||||
{
|
{
|
||||||
NS_ASSERTION(aListID == kPrincipalList ||
|
NS_ASSERTION(aListID == kPrincipalList, "unexpected child list");
|
||||||
aListID == GetAbsoluteListID(), "unexpected child list");
|
NS_ASSERTION(GetChildList(aListID).IsEmpty(), "Shouldn't have any kids!");
|
||||||
NS_ASSERTION(aListID != GetAbsoluteListID() ||
|
|
||||||
GetChildList(aListID).IsEmpty(), "Shouldn't have any kids!");
|
|
||||||
nsContainerFrame::InsertFrames(aListID, aPrevFrame, aFrameList);
|
nsContainerFrame::InsertFrames(aListID, aPrevFrame, aFrameList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,10 +91,10 @@ void
|
||||||
ViewportFrame::RemoveFrame(ChildListID aListID,
|
ViewportFrame::RemoveFrame(ChildListID aListID,
|
||||||
nsIFrame* aOldFrame)
|
nsIFrame* aOldFrame)
|
||||||
{
|
{
|
||||||
NS_ASSERTION(aListID == kPrincipalList ||
|
NS_ASSERTION(aListID == kPrincipalList, "unexpected child list");
|
||||||
aListID == GetAbsoluteListID(), "unexpected child list");
|
|
||||||
nsContainerFrame::RemoveFrame(aListID, aOldFrame);
|
nsContainerFrame::RemoveFrame(aListID, aOldFrame);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* virtual */ nscoord
|
/* virtual */ nscoord
|
||||||
ViewportFrame::GetMinWidth(nsRenderingContext *aRenderingContext)
|
ViewportFrame::GetMinWidth(nsRenderingContext *aRenderingContext)
|
||||||
|
|
|
@ -38,6 +38,7 @@ public:
|
||||||
nsContainerFrame* aParent,
|
nsContainerFrame* aParent,
|
||||||
nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
|
nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
virtual void SetInitialChildList(ChildListID aListID,
|
virtual void SetInitialChildList(ChildListID aListID,
|
||||||
nsFrameList& aChildList) MOZ_OVERRIDE;
|
nsFrameList& aChildList) MOZ_OVERRIDE;
|
||||||
virtual void AppendFrames(ChildListID aListID,
|
virtual void AppendFrames(ChildListID aListID,
|
||||||
|
@ -47,6 +48,7 @@ public:
|
||||||
nsFrameList& aFrameList) MOZ_OVERRIDE;
|
nsFrameList& aFrameList) MOZ_OVERRIDE;
|
||||||
virtual void RemoveFrame(ChildListID aListID,
|
virtual void RemoveFrame(ChildListID aListID,
|
||||||
nsIFrame* aOldFrame) MOZ_OVERRIDE;
|
nsIFrame* aOldFrame) MOZ_OVERRIDE;
|
||||||
|
#endif
|
||||||
|
|
||||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||||
const nsRect& aDirtyRect,
|
const nsRect& aDirtyRect,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче