diff --git a/content/html/document/src/nsIHTMLDocument.h b/content/html/document/src/nsIHTMLDocument.h
index 742bf01ad8db..0b3645164d8e 100644
--- a/content/html/document/src/nsIHTMLDocument.h
+++ b/content/html/document/src/nsIHTMLDocument.h
@@ -26,6 +26,7 @@ class nsIDOMHTMLFormElement;
class nsIDOMHTMLMapElement;
class nsIHTMLStyleSheet;
class nsIStyleSheet;
+class nsICSSLoader;
/* b2a848b0-d0a9-11d1-89b1-006008911b81 */
#define NS_IHTMLDOCUMENT_IID \
@@ -60,8 +61,6 @@ public:
NS_IMETHOD GetBaseTarget(nsString& aTarget) const = 0;
NS_IMETHOD SetBaseTarget(const nsString& aTarget) = 0;
- NS_IMETHOD InsertStyleSheetAt(nsIStyleSheet* aSheet, PRInt32 aIndex, PRBool aNotify) = 0;
-
/**
* Access DTD compatibility mode for this document
*/
diff --git a/layout/html/document/src/nsIHTMLDocument.h b/layout/html/document/src/nsIHTMLDocument.h
index 742bf01ad8db..0b3645164d8e 100644
--- a/layout/html/document/src/nsIHTMLDocument.h
+++ b/layout/html/document/src/nsIHTMLDocument.h
@@ -26,6 +26,7 @@ class nsIDOMHTMLFormElement;
class nsIDOMHTMLMapElement;
class nsIHTMLStyleSheet;
class nsIStyleSheet;
+class nsICSSLoader;
/* b2a848b0-d0a9-11d1-89b1-006008911b81 */
#define NS_IHTMLDOCUMENT_IID \
@@ -60,8 +61,6 @@ public:
NS_IMETHOD GetBaseTarget(nsString& aTarget) const = 0;
NS_IMETHOD SetBaseTarget(const nsString& aTarget) = 0;
- NS_IMETHOD InsertStyleSheetAt(nsIStyleSheet* aSheet, PRInt32 aIndex, PRBool aNotify) = 0;
-
/**
* Access DTD compatibility mode for this document
*/