Renamed FindFrameWithContent() to GetPrimaryFrameFor()

This commit is contained in:
troy@netscape.com
1998-12-29 04:45:18 +00:00
parent df038c599f
commit 54df92ac77
24 changed files with 162 additions and 79 deletions
+2 -1
View File
@@ -291,7 +291,8 @@ nsLabelFrame::FindForControl(nsIFormControlFrame*& aResultFrame)
value.GetStringValue(id);
id.Trim(whitespace, PR_TRUE, PR_TRUE);
if (id.Equals(forId)) {
nsIFrame* frame = shell->FindFrameWithContent(htmlContent);
nsIFrame* frame;
shell->GetPrimaryFrameFor(htmlContent, frame);
if (nsnull != frame) {
nsIFormControlFrame* fcFrame = nsnull;
result = frame->QueryInterface(kIFormControlFrameIID, (void**)&fcFrame);