Changing IsFrameEmpty to IsSelfEmpty as dbaron requested and I forgot to do before checking in.
git-svn-id: svn://10.0.0.236/trunk@165364 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3d390bd26b
commit
05b0dbe26a
@ -1223,7 +1223,7 @@ public:
|
||||
* Determine whether the frame is logically empty, assuming that all
|
||||
* its children are empty.
|
||||
*/
|
||||
virtual PRBool IsFrameEmpty() = 0;
|
||||
virtual PRBool IsSelfEmpty() = 0;
|
||||
|
||||
/**
|
||||
* IsGeneratedContentFrame returns whether a frame corresponds to
|
||||
|
||||
@ -2939,7 +2939,7 @@ IsMarginZero(nsStyleUnit aUnit, nsStyleCoord &aCoord)
|
||||
}
|
||||
|
||||
/* virtual */ PRBool
|
||||
nsBlockFrame::IsFrameEmpty()
|
||||
nsBlockFrame::IsSelfEmpty()
|
||||
{
|
||||
const nsStylePosition* position = GetStylePosition();
|
||||
|
||||
@ -2993,7 +2993,7 @@ nsBlockFrame::IsFrameEmpty()
|
||||
PRBool
|
||||
nsBlockFrame::IsEmpty()
|
||||
{
|
||||
if (!IsFrameEmpty()) {
|
||||
if (!IsSelfEmpty()) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
|
||||
@ -192,7 +192,7 @@ public:
|
||||
PRBool* aIsVisible);
|
||||
|
||||
virtual PRBool IsEmpty();
|
||||
virtual PRBool IsFrameEmpty();
|
||||
virtual PRBool IsSelfEmpty();
|
||||
|
||||
// nsIHTMLReflow
|
||||
NS_IMETHOD Reflow(nsPresContext* aPresContext,
|
||||
|
||||
@ -2852,7 +2852,7 @@ nsFrame::IsEmpty()
|
||||
}
|
||||
|
||||
/* virtual */ PRBool
|
||||
nsFrame::IsFrameEmpty()
|
||||
nsFrame::IsSelfEmpty()
|
||||
{
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
@ -283,7 +283,7 @@ public:
|
||||
PRBool* aIsVisible);
|
||||
|
||||
virtual PRBool IsEmpty();
|
||||
virtual PRBool IsFrameEmpty();
|
||||
virtual PRBool IsSelfEmpty();
|
||||
|
||||
// nsIHTMLReflow
|
||||
NS_IMETHOD WillReflow(nsPresContext* aPresContext);
|
||||
|
||||
@ -713,7 +713,7 @@ static PRBool AreAllEarlierInFlowFramesEmpty(nsIFrame* aFrame,
|
||||
*aFound = PR_TRUE;
|
||||
return PR_TRUE;
|
||||
}
|
||||
if (!aFrame->IsFrameEmpty()) {
|
||||
if (!aFrame->IsSelfEmpty()) {
|
||||
*aFound = PR_FALSE;
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
@ -1223,7 +1223,7 @@ public:
|
||||
* Determine whether the frame is logically empty, assuming that all
|
||||
* its children are empty.
|
||||
*/
|
||||
virtual PRBool IsFrameEmpty() = 0;
|
||||
virtual PRBool IsSelfEmpty() = 0;
|
||||
|
||||
/**
|
||||
* IsGeneratedContentFrame returns whether a frame corresponds to
|
||||
|
||||
@ -138,7 +138,7 @@ IsMarginZero(nsStyleUnit aUnit, nsStyleCoord &aCoord)
|
||||
}
|
||||
|
||||
/* virtual */ PRBool
|
||||
nsInlineFrame::IsFrameEmpty()
|
||||
nsInlineFrame::IsSelfEmpty()
|
||||
{
|
||||
#if 0
|
||||
// I used to think inline frames worked this way, but it seems they
|
||||
@ -170,12 +170,13 @@ nsInlineFrame::IsFrameEmpty()
|
||||
margin->mMargin.GetLeft(coord))) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsInlineFrame::IsEmpty()
|
||||
{
|
||||
if (!IsFrameEmpty()) {
|
||||
if (!IsSelfEmpty()) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
|
||||
@ -109,7 +109,7 @@ public:
|
||||
virtual nsIAtom* GetType() const;
|
||||
|
||||
virtual PRBool IsEmpty();
|
||||
virtual PRBool IsFrameEmpty();
|
||||
virtual PRBool IsSelfEmpty();
|
||||
|
||||
// nsIHTMLReflow overrides
|
||||
NS_IMETHOD Reflow(nsPresContext* aPresContext,
|
||||
|
||||
@ -86,7 +86,7 @@ public:
|
||||
#endif
|
||||
|
||||
virtual PRBool IsEmpty() { return PR_TRUE; }
|
||||
virtual PRBool IsFrameEmpty() { return PR_TRUE; }
|
||||
virtual PRBool IsSelfEmpty() { return PR_TRUE; }
|
||||
|
||||
protected:
|
||||
nsIFrame* mOutOfFlowFrame;
|
||||
|
||||
@ -483,7 +483,7 @@ public:
|
||||
PRBool* aIsVisible);
|
||||
|
||||
virtual PRBool IsEmpty();
|
||||
virtual PRBool IsFrameEmpty() { return IsEmpty(); }
|
||||
virtual PRBool IsSelfEmpty() { return IsEmpty(); }
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
NS_IMETHOD GetAccessible(nsIAccessible** aAccessible);
|
||||
|
||||
@ -2939,7 +2939,7 @@ IsMarginZero(nsStyleUnit aUnit, nsStyleCoord &aCoord)
|
||||
}
|
||||
|
||||
/* virtual */ PRBool
|
||||
nsBlockFrame::IsFrameEmpty()
|
||||
nsBlockFrame::IsSelfEmpty()
|
||||
{
|
||||
const nsStylePosition* position = GetStylePosition();
|
||||
|
||||
@ -2993,7 +2993,7 @@ nsBlockFrame::IsFrameEmpty()
|
||||
PRBool
|
||||
nsBlockFrame::IsEmpty()
|
||||
{
|
||||
if (!IsFrameEmpty()) {
|
||||
if (!IsSelfEmpty()) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
|
||||
@ -192,7 +192,7 @@ public:
|
||||
PRBool* aIsVisible);
|
||||
|
||||
virtual PRBool IsEmpty();
|
||||
virtual PRBool IsFrameEmpty();
|
||||
virtual PRBool IsSelfEmpty();
|
||||
|
||||
// nsIHTMLReflow
|
||||
NS_IMETHOD Reflow(nsPresContext* aPresContext,
|
||||
|
||||
@ -2852,7 +2852,7 @@ nsFrame::IsEmpty()
|
||||
}
|
||||
|
||||
/* virtual */ PRBool
|
||||
nsFrame::IsFrameEmpty()
|
||||
nsFrame::IsSelfEmpty()
|
||||
{
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
@ -283,7 +283,7 @@ public:
|
||||
PRBool* aIsVisible);
|
||||
|
||||
virtual PRBool IsEmpty();
|
||||
virtual PRBool IsFrameEmpty();
|
||||
virtual PRBool IsSelfEmpty();
|
||||
|
||||
// nsIHTMLReflow
|
||||
NS_IMETHOD WillReflow(nsPresContext* aPresContext);
|
||||
|
||||
@ -713,7 +713,7 @@ static PRBool AreAllEarlierInFlowFramesEmpty(nsIFrame* aFrame,
|
||||
*aFound = PR_TRUE;
|
||||
return PR_TRUE;
|
||||
}
|
||||
if (!aFrame->IsFrameEmpty()) {
|
||||
if (!aFrame->IsSelfEmpty()) {
|
||||
*aFound = PR_FALSE;
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
@ -138,7 +138,7 @@ IsMarginZero(nsStyleUnit aUnit, nsStyleCoord &aCoord)
|
||||
}
|
||||
|
||||
/* virtual */ PRBool
|
||||
nsInlineFrame::IsFrameEmpty()
|
||||
nsInlineFrame::IsSelfEmpty()
|
||||
{
|
||||
#if 0
|
||||
// I used to think inline frames worked this way, but it seems they
|
||||
@ -170,12 +170,13 @@ nsInlineFrame::IsFrameEmpty()
|
||||
margin->mMargin.GetLeft(coord))) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsInlineFrame::IsEmpty()
|
||||
{
|
||||
if (!IsFrameEmpty()) {
|
||||
if (!IsSelfEmpty()) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
|
||||
@ -109,7 +109,7 @@ public:
|
||||
virtual nsIAtom* GetType() const;
|
||||
|
||||
virtual PRBool IsEmpty();
|
||||
virtual PRBool IsFrameEmpty();
|
||||
virtual PRBool IsSelfEmpty();
|
||||
|
||||
// nsIHTMLReflow overrides
|
||||
NS_IMETHOD Reflow(nsPresContext* aPresContext,
|
||||
|
||||
@ -86,7 +86,7 @@ public:
|
||||
#endif
|
||||
|
||||
virtual PRBool IsEmpty() { return PR_TRUE; }
|
||||
virtual PRBool IsFrameEmpty() { return PR_TRUE; }
|
||||
virtual PRBool IsSelfEmpty() { return PR_TRUE; }
|
||||
|
||||
protected:
|
||||
nsIFrame* mOutOfFlowFrame;
|
||||
|
||||
@ -483,7 +483,7 @@ public:
|
||||
PRBool* aIsVisible);
|
||||
|
||||
virtual PRBool IsEmpty();
|
||||
virtual PRBool IsFrameEmpty() { return IsEmpty(); }
|
||||
virtual PRBool IsSelfEmpty() { return IsEmpty(); }
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
NS_IMETHOD GetAccessible(nsIAccessible** aAccessible);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user