Bug 736660 - fix compilation: 'source' is not a member of 'nsGkAtoms', if MOZ_MEDIA is not set. r=bz

This commit is contained in:
aceman 2012-03-17 20:38:35 +01:00
parent 17f6932716
commit 8d8c64d963

View File

@ -1249,7 +1249,9 @@ nsContentUtils::IsHTMLVoid(nsIAtom* aLocalName)
(aLocalName == nsGkAtoms::link) ||
(aLocalName == nsGkAtoms::meta) ||
(aLocalName == nsGkAtoms::param) ||
#ifdef MOZ_MEDIA
(aLocalName == nsGkAtoms::source) ||
#endif
(aLocalName == nsGkAtoms::track) ||
(aLocalName == nsGkAtoms::wbr);
}
@ -3658,9 +3660,9 @@ nsContentUtils::MaybeFireNodeRemoved(nsINode* aChild, nsINode* aParent,
// that is a know case when we'd normally fire a mutation event, but can't
// make that safe and so we suppress it at this time. Ideally this should
// go away eventually.
NS_ASSERTION(aChild->IsNodeOfType(nsINode::eCONTENT) &&
NS_ASSERTION((aChild->IsNodeOfType(nsINode::eCONTENT) &&
static_cast<nsIContent*>(aChild)->
IsInNativeAnonymousSubtree() ||
IsInNativeAnonymousSubtree()) ||
IsSafeToRunScript() ||
sDOMNodeRemovedSuppressCount,
"Want to fire DOMNodeRemoved event, but it's not safe");