Bug 509839. r=fantasai

This commit is contained in:
Mats Palmgren 2010-04-12 20:36:58 +02:00
parent 4b42858919
commit 0a8224a4c1
2 changed files with 10 additions and 0 deletions

View File

@ -1205,6 +1205,11 @@ nsContainerFrame::SetPropTableFrames(nsPresContext* aPresContext
const FramePropertyDescriptor* aProperty)
{
NS_PRECONDITION(aPresContext && aProperty && aFrameList, "null ptr");
NS_PRECONDITION(
(aProperty != nsContainerFrame::OverflowContainersProperty() &&
aProperty != nsContainerFrame::ExcessOverflowContainersProperty()) ||
IsFrameOfType(nsIFrame::eCanContainOverflowContainers),
"this type of frame can't have overflow containers");
aPresContext->PropertyTable()->Set(this, aProperty, aFrameList);
return NS_OK;
}

View File

@ -57,6 +57,11 @@ public:
nsReflowStatus& aStatus);
virtual PRBool IsContainingBlock() const;
virtual PRBool IsFrameOfType(PRUint32 aFlags) const
{
return ViewportFrame::IsFrameOfType(aFlags &
~(nsIFrame::eCanContainOverflowContainers));
}
virtual void SetSharedPageData(nsSharedPageData* aPD) { mPD = aPD; }