Fix the casting. Bug 329192

This commit is contained in:
bzbarsky%mit.edu 2006-05-05 22:47:25 +00:00
parent dc6c7fda01
commit a47966c468

View File

@ -1325,7 +1325,9 @@ nsEventListenerManager::AddScriptEventListener(nsISupports *aObject,
else {
PRInt32 nameSpace = kNameSpaceID_Unknown;
if (node && node->IsNodeOfType(nsINode::eCONTENT)) {
nsIContent* content = NS_STATIC_CAST(nsIContent*, node.get());
nsIContent* content =
NS_STATIC_CAST(nsIContent*,
NS_STATIC_CAST(nsINode*, node.get()));
nameSpace = content->GetNameSpaceID();
}
else if (doc) {