Bug 3326: IsIndex implementation (not part of build)

git-svn-id: svn://10.0.0.236/trunk@78254 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
2000-09-06 07:37:49 +00:00
parent 6cf93fc0a1
commit c265ced149
4 changed files with 34 additions and 8 deletions

View File

@@ -241,6 +241,15 @@ nsIsIndexFrame::CreateAnonymousContent(nsIPresContext* aPresContext,
return result;
}
NS_IMETHODIMP
nsIsIndexFrame::SetDocumentForAnonymousContent(nsIDocument* aDocument,
PRBool aDeep,
PRBool aCompileEventHandlers)
{
// XXX WRITE ME
return NS_OK;
}
// Frames are not refcounted, no need to AddRef
NS_IMETHODIMP
nsIsIndexFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
@@ -296,9 +305,11 @@ nsIsIndexFrame::AttributeChanged(nsIPresContext* aPresContext,
{
nsresult rv = NS_OK;
if (nsHTMLAtoms::prompt == aAttribute) {
UpdatePromptLabel();
rv = UpdatePromptLabel();
} else {
rv = nsAreaFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
}
return nsAreaFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
return rv;
}
@@ -426,7 +437,6 @@ nsIsIndexFrame::OnSubmit(nsIPresContext* aPresContext)
if (NS_FAILED(result)) return result;
// Now pass on absolute url to the click handler
nsIInputStream* postDataStream = nsnull;
if (handler) {
handler->OnLinkClick(mContent, eLinkVerb_Replace,
absURLSpec.GetUnicode(),

View File

@@ -107,6 +107,9 @@ public:
// from nsIAnonymousContentCreator
NS_IMETHOD CreateAnonymousContent(nsIPresContext* aPresContext,
nsISupportsArray& aChildList);
NS_IMETHOD SetDocumentForAnonymousContent(nsIDocument* aDocument,
PRBool aDeep,
PRBool aCompileEventHandlers);
NS_IMETHOD CreateFrameFor(nsIPresContext* aPresContext,
nsIContent * aContent,
nsIFrame** aFrame) { if (aFrame) *aFrame = nsnull; return NS_ERROR_FAILURE; }
@@ -121,8 +124,8 @@ public:
NS_IMETHOD RestoreState(nsIPresContext* aPresContext, nsIPresState* aState);
protected:
nsIHTMLContent* mInputContent;
nsIHTMLContent* mTextContent;
nsIHTMLContent* mInputContent;
// XXX Hack: pres context needed by function KeyPress() and SetFocus()
nsIPresContext* mPresContext; // weak reference

View File

@@ -241,6 +241,15 @@ nsIsIndexFrame::CreateAnonymousContent(nsIPresContext* aPresContext,
return result;
}
NS_IMETHODIMP
nsIsIndexFrame::SetDocumentForAnonymousContent(nsIDocument* aDocument,
PRBool aDeep,
PRBool aCompileEventHandlers)
{
// XXX WRITE ME
return NS_OK;
}
// Frames are not refcounted, no need to AddRef
NS_IMETHODIMP
nsIsIndexFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
@@ -296,9 +305,11 @@ nsIsIndexFrame::AttributeChanged(nsIPresContext* aPresContext,
{
nsresult rv = NS_OK;
if (nsHTMLAtoms::prompt == aAttribute) {
UpdatePromptLabel();
rv = UpdatePromptLabel();
} else {
rv = nsAreaFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
}
return nsAreaFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
return rv;
}
@@ -426,7 +437,6 @@ nsIsIndexFrame::OnSubmit(nsIPresContext* aPresContext)
if (NS_FAILED(result)) return result;
// Now pass on absolute url to the click handler
nsIInputStream* postDataStream = nsnull;
if (handler) {
handler->OnLinkClick(mContent, eLinkVerb_Replace,
absURLSpec.GetUnicode(),

View File

@@ -107,6 +107,9 @@ public:
// from nsIAnonymousContentCreator
NS_IMETHOD CreateAnonymousContent(nsIPresContext* aPresContext,
nsISupportsArray& aChildList);
NS_IMETHOD SetDocumentForAnonymousContent(nsIDocument* aDocument,
PRBool aDeep,
PRBool aCompileEventHandlers);
NS_IMETHOD CreateFrameFor(nsIPresContext* aPresContext,
nsIContent * aContent,
nsIFrame** aFrame) { if (aFrame) *aFrame = nsnull; return NS_ERROR_FAILURE; }
@@ -121,8 +124,8 @@ public:
NS_IMETHOD RestoreState(nsIPresContext* aPresContext, nsIPresState* aState);
protected:
nsIHTMLContent* mInputContent;
nsIHTMLContent* mTextContent;
nsIHTMLContent* mInputContent;
// XXX Hack: pres context needed by function KeyPress() and SetFocus()
nsIPresContext* mPresContext; // weak reference