minor optimizations and cleanup. removed constructors that did nothing.
git-svn-id: svn://10.0.0.236/trunk@15709 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
dbed102059
commit
28547e48be
@ -48,22 +48,6 @@ static const PRBool gsDebug = PR_FALSE;
|
||||
static const PRBool gsDebugNT = PR_FALSE;
|
||||
#endif
|
||||
|
||||
/**
|
||||
*/
|
||||
nsTableCellFrame::nsTableCellFrame()
|
||||
: nsHTMLContainerFrame()
|
||||
{
|
||||
mColIndex=0;
|
||||
mPriorAvailWidth=0;
|
||||
mDesiredSize.width=0;
|
||||
mDesiredSize.height=0;
|
||||
mMaxElementSize.width=0;
|
||||
mMaxElementSize.height=0;
|
||||
mPass1DesiredSize.width=0;
|
||||
mPass1DesiredSize.height=0;
|
||||
mPass1MaxElementSize.width=0;
|
||||
mPass1MaxElementSize.height=0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTableCellFrame::SetInitialChildList(nsIPresContext& aPresContext,
|
||||
|
||||
@ -36,12 +36,12 @@ class nsTableCellFrame : public nsHTMLContainerFrame
|
||||
{
|
||||
public:
|
||||
|
||||
// default constructor supplied by the compiler
|
||||
|
||||
void InitCellFrame(PRInt32 aColIndex);
|
||||
|
||||
/** instantiate a new instance of nsTableCellFrame.
|
||||
* @param aResult the new object is returned in this out-param
|
||||
* @param aContent the table object to map
|
||||
* @param aParent the parent of the new frame
|
||||
*
|
||||
* @return NS_OK if the frame was properly allocated, otherwise an error code
|
||||
*/
|
||||
@ -180,11 +180,6 @@ private:
|
||||
|
||||
protected:
|
||||
|
||||
/** protected constructor.
|
||||
* @see NewFrame
|
||||
*/
|
||||
nsTableCellFrame();
|
||||
|
||||
// Subclass hook for style post processing
|
||||
NS_IMETHOD DidSetStyleContext(nsIPresContext* aPresContext);
|
||||
|
||||
|
||||
@ -35,12 +35,7 @@ static const PRBool gsNoisyRefs = PR_FALSE;
|
||||
nsTableColFrame::nsTableColFrame()
|
||||
: nsFrame()
|
||||
{
|
||||
mColIndex = 0;
|
||||
mMaxColWidth = 0;
|
||||
mMinColWidth = 0;
|
||||
mMaxEffectiveColWidth = 0;
|
||||
mMinEffectiveColWidth = 0;
|
||||
mMinAdjustedColWidth = 0;
|
||||
// note that all fields are initialized to 0 by nsFrame::operator new
|
||||
mWidthSource = eWIDTH_SOURCE_NONE;
|
||||
}
|
||||
|
||||
|
||||
@ -43,11 +43,6 @@ static const PRBool gsDebug = PR_FALSE;
|
||||
static const PRBool gsDebugIR = PR_FALSE;
|
||||
#endif
|
||||
|
||||
nsTableColGroupFrame::nsTableColGroupFrame()
|
||||
: nsHTMLContainerFrame()
|
||||
{
|
||||
mColCount=0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTableColGroupFrame::InitNewFrames(nsIPresContext& aPresContext, nsIFrame* aChildList)
|
||||
|
||||
@ -33,10 +33,11 @@ class nsTableColFrame;
|
||||
class nsTableColGroupFrame : public nsHTMLContainerFrame
|
||||
{
|
||||
public:
|
||||
|
||||
// default constructor supplied by the compiler
|
||||
|
||||
/** instantiate a new instance of nsTableColGroupFrame.
|
||||
* @param aResult the new object is returned in this out-param
|
||||
* @param aContent the table object to map
|
||||
* @param aParent the parent of the new frame
|
||||
*
|
||||
* @return NS_OK if the frame was properly allocated, otherwise an error code
|
||||
*/
|
||||
@ -96,8 +97,6 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
nsTableColGroupFrame();
|
||||
|
||||
/** implement abstract method on nsHTMLContainerFrame */
|
||||
virtual PRIntn GetSkipSides() const;
|
||||
|
||||
|
||||
@ -94,16 +94,7 @@ struct OuterTableReflowState {
|
||||
|
||||
/* ----------- nsTableOuterFrame ---------- */
|
||||
|
||||
/**
|
||||
*/
|
||||
nsTableOuterFrame::nsTableOuterFrame()
|
||||
: nsHTMLContainerFrame(),
|
||||
mInnerTableFrame(nsnull),
|
||||
mCaptionFrame(nsnull),
|
||||
mMinCaptionWidth(0),
|
||||
mDesiredSize(nsnull)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsTableOuterFrame::SetInitialChildList(nsIPresContext& aPresContext,
|
||||
nsIAtom* aListName,
|
||||
|
||||
@ -77,10 +77,6 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
/** protected constructor
|
||||
* @see NewFrame
|
||||
*/
|
||||
nsTableOuterFrame();
|
||||
|
||||
/** implement abstract method on nsHTMLContainerFrame */
|
||||
virtual PRIntn GetSkipSides() const;
|
||||
@ -188,8 +184,6 @@ private:
|
||||
/** used to track caption max element size */
|
||||
PRInt32 mMinCaptionWidth;
|
||||
|
||||
/** used to cache reflow results so we can optimize out reflow in some circumstances */
|
||||
nsHTMLReflowMetrics mDesiredSize;
|
||||
nsSize mMaxElementSize;
|
||||
|
||||
};
|
||||
|
||||
@ -40,6 +40,8 @@ class nsTableRowGroupFrame : public nsHTMLContainerFrame
|
||||
{
|
||||
public:
|
||||
|
||||
// default constructor supplied by the compiler
|
||||
|
||||
/** instantiate a new instance of nsTableRowGroupFrame.
|
||||
* @param aResult the new object is returned in this out-param
|
||||
* @param aContent the table object to map
|
||||
|
||||
@ -48,22 +48,6 @@ static const PRBool gsDebug = PR_FALSE;
|
||||
static const PRBool gsDebugNT = PR_FALSE;
|
||||
#endif
|
||||
|
||||
/**
|
||||
*/
|
||||
nsTableCellFrame::nsTableCellFrame()
|
||||
: nsHTMLContainerFrame()
|
||||
{
|
||||
mColIndex=0;
|
||||
mPriorAvailWidth=0;
|
||||
mDesiredSize.width=0;
|
||||
mDesiredSize.height=0;
|
||||
mMaxElementSize.width=0;
|
||||
mMaxElementSize.height=0;
|
||||
mPass1DesiredSize.width=0;
|
||||
mPass1DesiredSize.height=0;
|
||||
mPass1MaxElementSize.width=0;
|
||||
mPass1MaxElementSize.height=0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTableCellFrame::SetInitialChildList(nsIPresContext& aPresContext,
|
||||
|
||||
@ -36,12 +36,12 @@ class nsTableCellFrame : public nsHTMLContainerFrame
|
||||
{
|
||||
public:
|
||||
|
||||
// default constructor supplied by the compiler
|
||||
|
||||
void InitCellFrame(PRInt32 aColIndex);
|
||||
|
||||
/** instantiate a new instance of nsTableCellFrame.
|
||||
* @param aResult the new object is returned in this out-param
|
||||
* @param aContent the table object to map
|
||||
* @param aParent the parent of the new frame
|
||||
*
|
||||
* @return NS_OK if the frame was properly allocated, otherwise an error code
|
||||
*/
|
||||
@ -180,11 +180,6 @@ private:
|
||||
|
||||
protected:
|
||||
|
||||
/** protected constructor.
|
||||
* @see NewFrame
|
||||
*/
|
||||
nsTableCellFrame();
|
||||
|
||||
// Subclass hook for style post processing
|
||||
NS_IMETHOD DidSetStyleContext(nsIPresContext* aPresContext);
|
||||
|
||||
|
||||
@ -35,12 +35,7 @@ static const PRBool gsNoisyRefs = PR_FALSE;
|
||||
nsTableColFrame::nsTableColFrame()
|
||||
: nsFrame()
|
||||
{
|
||||
mColIndex = 0;
|
||||
mMaxColWidth = 0;
|
||||
mMinColWidth = 0;
|
||||
mMaxEffectiveColWidth = 0;
|
||||
mMinEffectiveColWidth = 0;
|
||||
mMinAdjustedColWidth = 0;
|
||||
// note that all fields are initialized to 0 by nsFrame::operator new
|
||||
mWidthSource = eWIDTH_SOURCE_NONE;
|
||||
}
|
||||
|
||||
|
||||
@ -43,11 +43,6 @@ static const PRBool gsDebug = PR_FALSE;
|
||||
static const PRBool gsDebugIR = PR_FALSE;
|
||||
#endif
|
||||
|
||||
nsTableColGroupFrame::nsTableColGroupFrame()
|
||||
: nsHTMLContainerFrame()
|
||||
{
|
||||
mColCount=0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTableColGroupFrame::InitNewFrames(nsIPresContext& aPresContext, nsIFrame* aChildList)
|
||||
|
||||
@ -33,10 +33,11 @@ class nsTableColFrame;
|
||||
class nsTableColGroupFrame : public nsHTMLContainerFrame
|
||||
{
|
||||
public:
|
||||
|
||||
// default constructor supplied by the compiler
|
||||
|
||||
/** instantiate a new instance of nsTableColGroupFrame.
|
||||
* @param aResult the new object is returned in this out-param
|
||||
* @param aContent the table object to map
|
||||
* @param aParent the parent of the new frame
|
||||
*
|
||||
* @return NS_OK if the frame was properly allocated, otherwise an error code
|
||||
*/
|
||||
@ -96,8 +97,6 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
nsTableColGroupFrame();
|
||||
|
||||
/** implement abstract method on nsHTMLContainerFrame */
|
||||
virtual PRIntn GetSkipSides() const;
|
||||
|
||||
|
||||
@ -94,16 +94,7 @@ struct OuterTableReflowState {
|
||||
|
||||
/* ----------- nsTableOuterFrame ---------- */
|
||||
|
||||
/**
|
||||
*/
|
||||
nsTableOuterFrame::nsTableOuterFrame()
|
||||
: nsHTMLContainerFrame(),
|
||||
mInnerTableFrame(nsnull),
|
||||
mCaptionFrame(nsnull),
|
||||
mMinCaptionWidth(0),
|
||||
mDesiredSize(nsnull)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsTableOuterFrame::SetInitialChildList(nsIPresContext& aPresContext,
|
||||
nsIAtom* aListName,
|
||||
|
||||
@ -77,10 +77,6 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
/** protected constructor
|
||||
* @see NewFrame
|
||||
*/
|
||||
nsTableOuterFrame();
|
||||
|
||||
/** implement abstract method on nsHTMLContainerFrame */
|
||||
virtual PRIntn GetSkipSides() const;
|
||||
@ -188,8 +184,6 @@ private:
|
||||
/** used to track caption max element size */
|
||||
PRInt32 mMinCaptionWidth;
|
||||
|
||||
/** used to cache reflow results so we can optimize out reflow in some circumstances */
|
||||
nsHTMLReflowMetrics mDesiredSize;
|
||||
nsSize mMaxElementSize;
|
||||
|
||||
};
|
||||
|
||||
@ -40,6 +40,8 @@ class nsTableRowGroupFrame : public nsHTMLContainerFrame
|
||||
{
|
||||
public:
|
||||
|
||||
// default constructor supplied by the compiler
|
||||
|
||||
/** instantiate a new instance of nsTableRowGroupFrame.
|
||||
* @param aResult the new object is returned in this out-param
|
||||
* @param aContent the table object to map
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user