Bug 615256 warning: 'PRBool FramesOnSameLineHaveZeroHeight(nsIFrame*)' defined but not used; r=mats a=ehsan landing on a CLOSED TREE instead of a white-space change to get a Windows debug X test run

This commit is contained in:
timeless@mozdev.org 2010-11-30 00:00:38 -05:00
parent 0bda7125ce
commit af331b879b

View File

@ -146,21 +146,6 @@ AdjustCaretFrameForLineEnd(nsIFrame** aFrame, PRInt32* aOffset)
}
}
static PRBool
FramesOnSameLineHaveZeroHeight(nsIFrame* aFrame)
{
nsLineBox* line = FindContainingLine(aFrame);
if (!line)
return aFrame->GetRect().height == 0;
PRInt32 count = line->GetChildCount();
for (nsIFrame* f = line->mFirstChild; count > 0; --count, f = f->GetNextSibling())
{
if (f->GetRect().height != 0)
return PR_FALSE;
}
return PR_TRUE;
}
//-----------------------------------------------------------------------------
nsCaret::nsCaret()