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
@@ -276,7 +276,8 @@ nsHTMLFormElement::Submit()
if ((NS_OK == result) && doc) {
nsIPresShell *shell = doc->GetShellAt(0);
if (nsnull != shell) {
nsIFrame* frame = shell->FindFrameWithContent(this);
nsIFrame* frame;
shell->GetPrimaryFrameFor(this, frame);
if (frame) {
nsIFormManager* formMan = nsnull;
nsresult result = frame->QueryInterface(kIFormManagerIID, (void**)&formMan);
@@ -309,7 +310,8 @@ nsHTMLFormElement::Reset()
if ((NS_OK == result) && doc) {
nsIPresShell *shell = doc->GetShellAt(0);
if (nsnull != shell) {
nsIFrame* frame = shell->FindFrameWithContent(this);
nsIFrame* frame;
shell->GetPrimaryFrameFor(this, frame);
if (frame) {
nsIFormManager* formMan = nsnull;
nsresult result = frame->QueryInterface(kIFormManagerIID, (void**)&formMan);