Changed nsIFrame::Init() to take an additional parameter

git-svn-id: svn://10.0.0.236/trunk@21843 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-02-25 03:27:57 +00:00
parent e6d4c23f11
commit f293c578fd
72 changed files with 345 additions and 216 deletions

View File

@@ -21,6 +21,35 @@
#include "nsIStyleContext.h"
#include "nsISizeOfHandler.h"
NS_IMETHODIMP
nsSplittableFrame::Init(nsIPresContext& aPresContext,
nsIContent* aContent,
nsIFrame* aParent,
nsIStyleContext* aContext,
nsIFrame* aPrevInFlow)
{
nsresult rv;
rv = nsFrame::Init(aPresContext, aContent, aParent, aContext, aPrevInFlow);
if (aPrevInFlow) {
// Hook the frame into the flow
AppendToFlow(aPrevInFlow);
// Make sure the general flags bits are the same
nsFrameState state;
aPrevInFlow->GetFrameState(&state);
if (state & NS_FRAME_SYNC_FRAME_AND_VIEW) {
mState |= NS_FRAME_SYNC_FRAME_AND_VIEW;
}
if (state & NS_FRAME_REPLACED_ELEMENT) {
mState |= NS_FRAME_REPLACED_ELEMENT;
}
}
return rv;
}
NS_IMETHODIMP
nsSplittableFrame::IsSplittable(nsSplittableType& aIsSplittable) const
{