1) This adds in a new layout atom for the SequenceFrame
2) Now checks all the SeqFrame's children (PageFrames) instead of just the first one Bug 71609 r=dcone sr=attinasi a=asa
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#include "nsIPrintContext.h"
|
||||
#include "nsStyleConsts.h"
|
||||
#include "nsIRegion.h"
|
||||
#include "nsLayoutAtoms.h"
|
||||
|
||||
#include "nsIPref.h" // for header/footer gap & ExtraMargin for Print Preview
|
||||
|
||||
@@ -1086,6 +1087,14 @@ NS_IMETHODIMP nsSimplePageSequenceFrame::SizeTo(nsIPresContext* aPresContext, ns
|
||||
return nsFrame::SizeTo(aPresContext, aWidth, aHeight);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsSimplePageSequenceFrame::GetFrameType(nsIAtom** aType) const
|
||||
{
|
||||
NS_PRECONDITION(nsnull != aType, "null OUT parameter pointer");
|
||||
*aType = nsLayoutAtoms::sequenceFrame;
|
||||
NS_ADDREF(*aType);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
void
|
||||
@@ -1129,3 +1138,4 @@ nsSimplePageSequenceFrame::SetPageSizes(const nsRect& aRect, const nsMargin& aMa
|
||||
mPageData->mReflowRect = aRect;
|
||||
mPageData->mReflowMargin = aMarginRect;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user