deCOMtaminate nsINodeInfo and nsINodeInfoManager. See bug 225060 for details. r=sicking, sr=jst.

git-svn-id: svn://10.0.0.236/trunk@149340 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com
2003-11-15 05:27:37 +00:00
parent 0976c7a3b9
commit 98fb7d2529
27 changed files with 362 additions and 500 deletions

View File

@@ -240,16 +240,16 @@ nsScriptLoader::InNonScriptingContainer(nsIDOMHTMLScriptElement* aScriptElement)
NS_ASSERTION(nodeInfo, "element without node info");
if (nodeInfo) {
nsCOMPtr<nsIAtom> localName = nodeInfo->GetNameAtom();
nsIAtom *localName = nodeInfo->NameAtom();
// XXX noframes and noembed are currently unconditionally not
// displayed and processed. This might change if we support either
// prefs or per-document container settings for not allowing
// frames or plugins.
if (content->IsContentOfType(nsIContent::eHTML) &&
((localName.get() == nsHTMLAtoms::iframe) ||
(localName.get() == nsHTMLAtoms::noframes) ||
(localName.get() == nsHTMLAtoms::noembed))) {
((localName == nsHTMLAtoms::iframe) ||
(localName == nsHTMLAtoms::noframes) ||
(localName == nsHTMLAtoms::noembed))) {
return PR_TRUE;
}
}