mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
Bug 736660 - fix compilation: 'source' is not a member of 'nsGkAtoms', if MOZ_MEDIA is not set. r=bz
This commit is contained in:
parent
17f6932716
commit
8d8c64d963
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user