Bug 562688 part 1. Add a new non-virtual IsElement API on nsINode. r=jst, sr=sicking

This commit is contained in:
Boris Zbarsky
2010-04-30 09:12:04 -04:00
parent 9f5f8b515b
commit 8536fc0089
3 changed files with 14 additions and 2 deletions

View File

@@ -1790,7 +1790,8 @@ nsGenericElement::nsGenericElement(nsINodeInfo *aNodeInfo)
{
// Set the default scriptID to JS - but skip SetScriptTypeID as it
// does extra work we know isn't necessary here...
SetFlags(nsIProgrammingLanguage::JAVASCRIPT << NODE_SCRIPT_TYPE_OFFSET);
SetFlags(NODE_IS_ELEMENT |
(nsIProgrammingLanguage::JAVASCRIPT << NODE_SCRIPT_TYPE_OFFSET));
}
nsGenericElement::~nsGenericElement()