mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Fix the casting. Bug 329192
This commit is contained in:
parent
dc6c7fda01
commit
a47966c468
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user