Remove nsIHTMLContentContainer, merge those three functions into nsIDocument,

and make XUL style attribute dynamic changes get a proper CSSLoader off the
document. Bug 211376, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@151268 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-01-13 23:14:49 +00:00
parent 60e41b313e
commit 86fee95b4d
33 changed files with 214 additions and 452 deletions

View File

@@ -32,7 +32,6 @@
#include "nsIDOMNode.h"
#include "nsIDOMStyleSheet.h"
#include "nsIDOMText.h"
#include "nsIHTMLContentContainer.h"
#include "nsIUnicharInputStream.h"
#include "nsNetUtil.h"
#include "nsUnicharUtils.h"
@@ -239,12 +238,7 @@ nsStyleLinkElement::UpdateStyleSheet(nsIDocument *aOldDocument,
return NS_OK;
}
nsCOMPtr<nsIHTMLContentContainer> htmlContainer(do_QueryInterface(doc));
nsCOMPtr<nsICSSLoader> loader;
if (htmlContainer) {
htmlContainer->GetCSSLoader(*getter_AddRefs(loader));
}
nsICSSLoader* loader = doc->GetCSSLoader();
if (!loader) {
return NS_OK;