From 0481903b3dbde1f3a118debf03ba4ae597fc2385 Mon Sep 17 00:00:00 2001 From: Neil Rashbrook Date: Fri, 28 Nov 2008 15:32:29 -0800 Subject: [PATCH] Bug 466234: provide audio and video interfaces even when media is diabled, so that content popup menu construction works, r/sr=roc, r=weilbacher, a191=beltzner --- dom/public/idl/html/Makefile.in | 5 ----- dom/public/nsDOMClassInfoID.h | 3 +-- dom/src/base/nsDOMClassInfo.cpp | 6 ------ 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/dom/public/idl/html/Makefile.in b/dom/public/idl/html/Makefile.in index afda08ab9b18..823508c09511 100644 --- a/dom/public/idl/html/Makefile.in +++ b/dom/public/idl/html/Makefile.in @@ -104,10 +104,6 @@ SDK_XPIDLSRCS = \ nsIDOMHTMLTextAreaElement.idl \ nsIDOMHTMLTitleElement.idl \ nsIDOMHTMLUListElement.idl \ - $(NULL) - -ifdef MOZ_MEDIA -SDK_XPIDLSRCS += \ nsIDOMHTMLMediaError.idl \ nsIDOMHTMLTimeRanges.idl \ nsIDOMHTMLByteRanges.idl \ @@ -117,7 +113,6 @@ SDK_XPIDLSRCS += \ nsIDOMHTMLAudioElement.idl \ nsIDOMHTMLVoidCallback.idl \ $(NULL) -endif XPIDLSRCS = \ nsIDOMHTMLCanvasElement.idl \ diff --git a/dom/public/nsDOMClassInfoID.h b/dom/public/nsDOMClassInfoID.h index 8d7ec9aee449..2172d4339215 100644 --- a/dom/public/nsDOMClassInfoID.h +++ b/dom/public/nsDOMClassInfoID.h @@ -435,12 +435,11 @@ enum nsDOMClassInfoID { eDOMClassInfo_CSSFontFaceStyleDecl_id, // WhatWG Video Element -#if defined(MOZ_MEDIA) eDOMClassInfo_HTMLVideoElement_id, eDOMClassInfo_HTMLSourceElement_id, eDOMClassInfo_HTMLMediaError_id, eDOMClassInfo_HTMLAudioElement_id, -#endif + eDOMClassInfo_ProgressEvent_id, eDOMClassInfo_XMLHttpRequestUpload_id, diff --git a/dom/src/base/nsDOMClassInfo.cpp b/dom/src/base/nsDOMClassInfo.cpp index d042d6073f76..fd7de91ea62b 100644 --- a/dom/src/base/nsDOMClassInfo.cpp +++ b/dom/src/base/nsDOMClassInfo.cpp @@ -316,12 +316,10 @@ #include "nsIDOMNSHTMLTextAreaElement.h" #include "nsIDOMHTMLTitleElement.h" #include "nsIDOMHTMLUListElement.h" -#if defined(MOZ_MEDIA) #include "nsIDOMHTMLMediaError.h" #include "nsIDOMHTMLSourceElement.h" #include "nsIDOMHTMLVideoElement.h" #include "nsIDOMHTMLAudioElement.h" -#endif #include "nsIDOMProgressEvent.h" #include "nsIDOMNSUIEvent.h" #include "nsIDOMCSS2Properties.h" @@ -1272,7 +1270,6 @@ static nsDOMClassInfoData sClassInfoData[] = { NS_DEFINE_CLASSINFO_DATA(CSSFontFaceStyleDecl, nsCSSStyleDeclSH, ARRAY_SCRIPTABLE_FLAGS) -#if defined(MOZ_MEDIA) NS_DEFINE_CLASSINFO_DATA(HTMLVideoElement, nsHTMLElementSH, ELEMENT_SCRIPTABLE_FLAGS) NS_DEFINE_CLASSINFO_DATA(HTMLSourceElement, nsHTMLElementSH, @@ -1281,7 +1278,6 @@ static nsDOMClassInfoData sClassInfoData[] = { DOM_DEFAULT_SCRIPTABLE_FLAGS) NS_DEFINE_CLASSINFO_DATA(HTMLAudioElement, nsHTMLElementSH, ELEMENT_SCRIPTABLE_FLAGS) -#endif NS_DEFINE_CLASSINFO_DATA(ProgressEvent, nsDOMGenericSH, DOM_DEFAULT_SCRIPTABLE_FLAGS) @@ -3507,7 +3503,6 @@ nsDOMClassInfo::Init() DOM_CLASSINFO_MAP_ENTRY(nsIDOMCSSStyleDeclaration) DOM_CLASSINFO_MAP_END -#if defined(MOZ_MEDIA) DOM_CLASSINFO_MAP_BEGIN(HTMLVideoElement, nsIDOMHTMLVideoElement) DOM_CLASSINFO_MAP_ENTRY(nsIDOMHTMLVideoElement) DOM_CLASSINFO_GENERIC_HTML_MAP_ENTRIES @@ -3528,7 +3523,6 @@ nsDOMClassInfo::Init() DOM_CLASSINFO_GENERIC_HTML_MAP_ENTRIES DOM_CLASSINFO_MAP_END -#endif DOM_CLASSINFO_MAP_BEGIN(ProgressEvent, nsIDOMProgressEvent) DOM_CLASSINFO_MAP_ENTRY(nsIDOMProgressEvent) DOM_CLASSINFO_EVENT_MAP_ENTRIES