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

This commit is contained in:
Neil Rashbrook 2008-11-28 15:32:29 -08:00
Родитель 308fb35654
Коммит 0481903b3d
3 изменённых файлов: 1 добавлений и 13 удалений

Просмотреть файл

@ -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 \

Просмотреть файл

@ -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,

Просмотреть файл

@ -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