Make frames know whether they're leaves or not from the frame construction

point of view; use this in the frame constructor.  Bug 265367, r+sr=dbaron
This commit is contained in:
bzbarsky@mit.edu
2005-08-16 22:52:48 +00:00
parent f977fec0af
commit b51a6bf60e
17 changed files with 132 additions and 112 deletions

View File

@@ -2202,6 +2202,12 @@ nsTextControlFrame::GetAscent(nsBoxLayoutState& aState, nscoord& aAscent)
return NS_OK;
}
PRBool
nsTextControlFrame::IsLeaf() const
{
return PR_TRUE;
}
//IMPLEMENTING NS_IFORMCONTROLFRAME
NS_IMETHODIMP
nsTextControlFrame::GetName(nsAString* aResult)