Remove some more redundant code -- nsXMLDocument handles this fine. Bug

200071, r=sicking, sr=jst
This commit is contained in:
bzbarsky%mit.edu 2003-04-02 01:37:01 +00:00
parent 7de4451d8e
commit 996f069a78
2 changed files with 0 additions and 40 deletions

View File

@ -2203,42 +2203,6 @@ nsXULDocument::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
}
//
// nsIHTMLContentContainer interface
//
NS_IMETHODIMP
nsXULDocument::GetAttributeStyleSheet(nsIHTMLStyleSheet** aResult)
{
NS_ENSURE_ARG_POINTER(aResult);
*aResult = mAttrStyleSheet;
if (!mAttrStyleSheet) {
return NS_ERROR_NOT_AVAILABLE; // probably not the right error...
}
NS_ADDREF(*aResult);
return NS_OK;
}
NS_IMETHODIMP
nsXULDocument::GetInlineStyleSheet(nsIHTMLCSSStyleSheet** aResult)
{
NS_PRECONDITION(nsnull != aResult, "null ptr");
if (!aResult) {
return NS_ERROR_NULL_POINTER;
}
*aResult = mInlineStyleSheet;
if (!mInlineStyleSheet) {
return NS_ERROR_NOT_AVAILABLE; // probably not the right error...
}
NS_ADDREF(*aResult);
return NS_OK;
}
//----------------------------------------------------------------------
//
// Implementation methods

View File

@ -181,10 +181,6 @@ public:
// nsIDOMNSDocument
NS_IMETHOD GetContentType(nsAString& aContentType);
// nsIHTMLContentContainer interface
NS_IMETHOD GetAttributeStyleSheet(nsIHTMLStyleSheet** aResult);
NS_IMETHOD GetInlineStyleSheet(nsIHTMLCSSStyleSheet** aResult);
protected:
// Implementation methods
friend nsresult