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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user