mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 509839. r=fantasai
This commit is contained in:
parent
4b42858919
commit
0a8224a4c1
@ -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;
|
||||
}
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user