Merge m-c to a CLOSED TREE ux

This commit is contained in:
Phil Ringnalda 2013-05-27 11:48:20 -07:00
commit 8e825b148c
969 changed files with 7852 additions and 6957 deletions

View File

@ -17,7 +17,7 @@
#
# Modifying this file will now automatically clobber the buildbot machines \o/
#
Bug 874640 touched webidl, so Windows needs to clobber + Bug 854517: Integrate valgrind into B2G builds
Bug 869002 touched webidl, so Windows needs to clobber
Alternative to clobber is to run ./config.status from the objdir and to
touch the CLOBBER file in the objdir.

View File

@ -13,29 +13,6 @@ LIBRARY_NAME = accessibility_toolkit_s
EXPORT_LIBRARY = ..
LIBXUL_LIBRARY = 1
CPPSRCS = \
AccessibleWrap.cpp \
ApplicationAccessibleWrap.cpp \
AtkSocketAccessible.cpp \
DocAccessibleWrap.cpp \
nsMaiInterfaceComponent.cpp \
nsMaiInterfaceAction.cpp \
nsMaiInterfaceText.cpp \
nsMaiInterfaceEditableText.cpp \
nsMaiInterfaceSelection.cpp \
nsMaiInterfaceValue.cpp \
nsMaiHyperlink.cpp \
nsMaiInterfaceHypertext.cpp \
nsMaiInterfaceHyperlinkImpl.cpp \
nsMaiInterfaceTable.cpp \
nsMaiInterfaceDocument.cpp \
nsMaiInterfaceImage.cpp \
Platform.cpp \
RootAccessibleWrap.cpp \
UtilInterface.cpp \
$(NULL)
# we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -11,3 +11,25 @@ EXPORTS.mozilla.a11y += [
'HyperTextAccessibleWrap.h',
]
CPP_SOURCES += [
'AccessibleWrap.cpp',
'ApplicationAccessibleWrap.cpp',
'AtkSocketAccessible.cpp',
'DocAccessibleWrap.cpp',
'Platform.cpp',
'RootAccessibleWrap.cpp',
'UtilInterface.cpp',
'nsMaiHyperlink.cpp',
'nsMaiInterfaceAction.cpp',
'nsMaiInterfaceComponent.cpp',
'nsMaiInterfaceDocument.cpp',
'nsMaiInterfaceEditableText.cpp',
'nsMaiInterfaceHyperlinkImpl.cpp',
'nsMaiInterfaceHypertext.cpp',
'nsMaiInterfaceImage.cpp',
'nsMaiInterfaceSelection.cpp',
'nsMaiInterfaceTable.cpp',
'nsMaiInterfaceText.cpp',
'nsMaiInterfaceValue.cpp',
]

View File

@ -12,40 +12,6 @@ include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = accessibility_base_s
LIBXUL_LIBRARY = 1
CPPSRCS = \
AccCollector.cpp \
AccEvent.cpp \
AccGroupInfo.cpp \
AccIterator.cpp \
Filters.cpp \
ARIAMap.cpp \
ARIAStateMap.cpp \
DocManager.cpp \
EventQueue.cpp \
FocusManager.cpp \
NotificationController.cpp \
nsAccessNode.cpp \
nsCoreUtils.cpp \
nsAccUtils.cpp \
nsAccessibilityService.cpp \
nsAccessiblePivot.cpp \
nsEventShell.cpp \
nsTextEquivUtils.cpp \
RoleAsserts.cpp \
SelectionManager.cpp \
StyleInfo.cpp \
TextAttrs.cpp \
TextUpdater.cpp \
TreeWalker.cpp \
$(NULL)
ifneq ($(A11Y_LOG),0)
CPPSRCS += \
Logging.cpp \
$(NULL)
endif
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -4,6 +4,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
include('../shared.mozbuild')
MODULE = 'accessibility'
EXPORTS += [
@ -26,3 +28,35 @@ if CONFIG['MOZ_DEBUG']:
EXPORTS.mozilla.a11y += [
'Logging.h',
]
CPP_SOURCES += [
'AccCollector.cpp',
'AccEvent.cpp',
'AccGroupInfo.cpp',
'AccIterator.cpp',
'ARIAMap.cpp',
'ARIAStateMap.cpp',
'DocManager.cpp',
'EventQueue.cpp',
'Filters.cpp',
'FocusManager.cpp',
'NotificationController.cpp',
'nsAccessibilityService.cpp',
'nsAccessiblePivot.cpp',
'nsAccessNode.cpp',
'nsAccUtils.cpp',
'nsCoreUtils.cpp',
'nsEventShell.cpp',
'nsTextEquivUtils.cpp',
'RoleAsserts.cpp',
'SelectionManager.cpp',
'StyleInfo.cpp',
'TextAttrs.cpp',
'TextUpdater.cpp',
'TreeWalker.cpp',
]
if a11y_log:
CPP_SOURCES += [
'Logging.cpp',
]

View File

@ -12,22 +12,6 @@ include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = accessibility_generic_s
LIBXUL_LIBRARY = 1
CPPSRCS = \
Accessible.cpp \
ApplicationAccessible.cpp \
ARIAGridAccessible.cpp \
BaseAccessibles.cpp \
DocAccessible.cpp \
FormControlAccessible.cpp \
HyperTextAccessible.cpp \
ImageAccessible.cpp \
OuterDocAccessible.cpp \
RootAccessible.cpp \
TableCellAccessible.cpp \
TextLeafAccessible.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -12,3 +12,18 @@ EXPORTS.mozilla.a11y += [
'HyperTextAccessible.h',
]
CPP_SOURCES += [
'ARIAGridAccessible.cpp',
'Accessible.cpp',
'ApplicationAccessible.cpp',
'BaseAccessibles.cpp',
'DocAccessible.cpp',
'FormControlAccessible.cpp',
'HyperTextAccessible.cpp',
'ImageAccessible.cpp',
'OuterDocAccessible.cpp',
'RootAccessible.cpp',
'TableCellAccessible.cpp',
'TextLeafAccessible.cpp',
]

View File

@ -13,19 +13,6 @@ include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = accessibility_html_s
LIBXUL_LIBRARY = 1
CPPSRCS = \
HTMLCanvasAccessible.cpp \
HTMLElementAccessibles.cpp \
HTMLFormControlAccessible.cpp \
HTMLImageMapAccessible.cpp \
HTMLLinkAccessible.cpp \
HTMLListAccessible.cpp \
HTMLSelectAccessible.cpp \
HTMLTableAccessible.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -6,3 +6,14 @@
MODULE = 'accessibility'
CPP_SOURCES += [
'HTMLCanvasAccessible.cpp',
'HTMLElementAccessibles.cpp',
'HTMLFormControlAccessible.cpp',
'HTMLImageMapAccessible.cpp',
'HTMLLinkAccessible.cpp',
'HTMLListAccessible.cpp',
'HTMLSelectAccessible.cpp',
'HTMLTableAccessible.cpp',
]

View File

@ -6,3 +6,7 @@
MODULE = 'alerts'
CPP_SOURCES += [
'nsAccessibilityFactory.cpp',
]

View File

@ -13,12 +13,6 @@ LIBRARY_NAME = accessibility_toolkit_s
EXPORT_LIBRARY = ..
LIBXUL_LIBRARY = 1
CPPSRCS = \
AccessibleWrap.cpp \
Platform.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -11,3 +11,8 @@ EXPORTS.mozilla.a11y += [
'HyperTextAccessibleWrap.h',
]
CPP_SOURCES += [
'AccessibleWrap.cpp',
'Platform.cpp',
]

View File

@ -4,10 +4,9 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
XPIDL_SOURCES += [
'nsIMmsService.idl',
'nsIWapPushApplication.idl',
]
XPIDL_MODULE = 'dom_mms'
a11y_log = 0
if CONFIG['MOZ_DEBUG']:
a11y_log = 1
if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('aurora', 'beta', 'release', 'esr'):
a11y_log = 1

View File

@ -13,21 +13,6 @@ LIBRARY_NAME = accessibility_toolkit_ia2_s
EXPORT_LIBRARY = 1
LIBXUL_LIBRARY = 1
CPPSRCS += \
ia2AccessibleAction.cpp \
ia2AccessibleComponent.cpp \
ia2AccessibleEditableText.cpp \
ia2AccessibleHyperlink.cpp \
ia2AccessibleHypertext.cpp \
ia2AccessibleImage.cpp \
ia2AccessibleRelation.cpp \
ia2AccessibleTable.cpp \
ia2AccessibleTableCell.cpp \
ia2AccessibleText.cpp \
ia2AccessibleValue.cpp \
$(NULL)
# The midl generated code include Windows headers which defines min and max
# macros which conflicts with std::min/max. Suppress the macros:
OS_CXXFLAGS += -DNOMINMAX

View File

@ -16,3 +16,17 @@ EXPORTS += [
'ia2AccessibleValue.h',
]
CPP_SOURCES += [
'ia2AccessibleAction.cpp',
'ia2AccessibleComponent.cpp',
'ia2AccessibleEditableText.cpp',
'ia2AccessibleHyperlink.cpp',
'ia2AccessibleHypertext.cpp',
'ia2AccessibleImage.cpp',
'ia2AccessibleRelation.cpp',
'ia2AccessibleTable.cpp',
'ia2AccessibleTableCell.cpp',
'ia2AccessibleText.cpp',
'ia2AccessibleValue.cpp',
]

View File

@ -13,34 +13,6 @@ LIBRARY_NAME = accessibility_toolkit_msaa_s
EXPORT_LIBRARY = 1
LIBXUL_LIBRARY = 1
CPPSRCS = \
AccessibleWrap.cpp \
ApplicationAccessibleWrap.cpp \
ARIAGridAccessibleWrap.cpp \
DocAccessibleWrap.cpp \
HTMLTableAccessibleWrap.cpp \
HTMLWin32ObjectAccessible.cpp \
HyperTextAccessibleWrap.cpp \
ImageAccessibleWrap.cpp \
IUnknownImpl.cpp \
nsWinUtils.cpp \
Compatibility.cpp \
EnumVariant.cpp \
Platform.cpp \
ServiceProvider.cpp \
RootAccessibleWrap.cpp \
TextLeafAccessibleWrap.cpp \
$(NULL)
ifdef MOZ_XUL
CPPSRCS += \
XULListboxAccessibleWrap.cpp \
XULMenuAccessibleWrap.cpp \
XULTreeGridAccessibleWrap.cpp \
$(NULL)
endif
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -16,3 +16,28 @@ EXPORTS.mozilla.a11y += [
'HyperTextAccessibleWrap.h',
]
CPP_SOURCES += [
'AccessibleWrap.cpp',
'ApplicationAccessibleWrap.cpp',
'ARIAGridAccessibleWrap.cpp',
'DocAccessibleWrap.cpp',
'HTMLTableAccessibleWrap.cpp',
'HTMLWin32ObjectAccessible.cpp',
'HyperTextAccessibleWrap.cpp',
'ImageAccessibleWrap.cpp',
'IUnknownImpl.cpp',
'nsWinUtils.cpp',
'Compatibility.cpp',
'EnumVariant.cpp',
'Platform.cpp',
'ServiceProvider.cpp',
'RootAccessibleWrap.cpp',
'TextLeafAccessibleWrap.cpp',
]
if CONFIG['MOZ_XUL']:
CPP_SOURCES += [
'XULListboxAccessibleWrap.cpp',
'XULMenuAccessibleWrap.cpp',
'XULTreeGridAccessibleWrap.cpp',
]

View File

@ -16,11 +16,6 @@ LIBXUL_LIBRARY = 1
# macros which conflicts with std::min/max. Suppress the macros:
OS_CXXFLAGS += -DNOMINMAX
CPPSRCS += \
sdnAccessible.cpp \
sdnTextAccessible.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -6,3 +6,8 @@
MODULE = 'accessibility'
CPP_SOURCES += [
'sdnAccessible.cpp',
'sdnTextAccessible.cpp',
]

View File

@ -16,11 +16,6 @@ LIBXUL_LIBRARY = 1
# macros which conflicts with std::min/max. Suppress the macros:
OS_CXXFLAGS += -DNOMINMAX
CPPSRCS += \
uiaRawElmProvider.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -6,3 +6,7 @@
MODULE = 'accessibility'
CPP_SOURCES += [
'uiaRawElmProvider.cpp',
]

View File

@ -13,13 +13,6 @@ include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = accessibility_xpcom_s
LIBXUL_LIBRARY = 1
CPPSRCS = \
xpcAccEvents.cpp \
nsAccessibleRelation.cpp \
xpcAccessibleTable.cpp \
xpcAccessibleTableCell.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -10,3 +10,10 @@ EXPORTS += [
'xpcAccEvents.h',
]
CPP_SOURCES += [
'nsAccessibleRelation.cpp',
'xpcAccEvents.cpp',
'xpcAccessibleTable.cpp',
'xpcAccessibleTableCell.cpp',
]

View File

@ -13,23 +13,6 @@ include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = accessibility_xul_s
LIBXUL_LIBRARY = 1
CPPSRCS = \
XULAlertAccessible.cpp \
XULColorPickerAccessible.cpp \
XULComboboxAccessible.cpp \
XULElementAccessibles.cpp \
XULFormControlAccessible.cpp \
XULListboxAccessible.cpp \
XULMenuAccessible.cpp \
XULSelectControlAccessible.cpp \
XULSliderAccessible.cpp \
XULTabAccessible.cpp \
XULTreeAccessible.cpp \
XULTreeGridAccessible.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -6,3 +6,18 @@
MODULE = 'accessibility'
CPP_SOURCES += [
'XULAlertAccessible.cpp',
'XULColorPickerAccessible.cpp',
'XULComboboxAccessible.cpp',
'XULElementAccessibles.cpp',
'XULFormControlAccessible.cpp',
'XULListboxAccessible.cpp',
'XULMenuAccessible.cpp',
'XULSelectControlAccessible.cpp',
'XULSliderAccessible.cpp',
'XULTabAccessible.cpp',
'XULTreeAccessible.cpp',
'XULTreeGridAccessible.cpp',
]

View File

@ -19,8 +19,6 @@ endif
ifndef LIBXUL_SDK
CPPSRCS = nsBrowserApp.cpp
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
LIBS += \
-lui \

View File

@ -9,3 +9,6 @@ if not CONFIG['LIBXUL_SDK']:
PROGRAM = CONFIG['MOZ_APP_NAME'] + "-bin"
else:
PROGRAM = CONFIG['MOZ_APP_NAME']
CPP_SOURCES += [
'nsBrowserApp.cpp',
]

View File

@ -12,7 +12,6 @@ include $(DEPTH)/config/autoconf.mk
GAIA_PATH := gaia/profile
ifeq ($(OS_ARCH),WINNT)
CPPSRCS = run-b2g.cpp
DEFINES += \
-DB2G_NAME=L\"$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)\" \
-DGAIA_PATH=L\"$(subst /,\\\\,$(GAIA_PATH))\" \

View File

@ -6,3 +6,7 @@
PROGRAM = CONFIG['MOZ_APP_NAME']
if CONFIG['OS_ARCH'] == 'WINNT':
CPP_SOURCES += [
'run-b2g.cpp',
]

View File

@ -197,9 +197,6 @@
@BINPATH@/components/dom_payment.xpt
@BINPATH@/components/dom_push.xpt
@BINPATH@/components/dom_json.xpt
#ifdef MOZ_B2G_RIL
@BINPATH@/components/dom_mms.xpt
#endif
@BINPATH@/components/dom_browserelement.xpt
@BINPATH@/components/dom_messages.xpt
@BINPATH@/components/dom_power.xpt

View File

@ -43,8 +43,6 @@ endif #} LIBXUL_SDK
# Build a binary bootstrapping with XRE_main
CPPSRCS = nsBrowserApp.cpp
LOCAL_INCLUDES += \
-I$(topsrcdir)/toolkit/xre \
-I$(topsrcdir)/xpcom/base \

View File

@ -8,3 +8,6 @@ DIRS += ['profile/extensions']
PROGRAM = CONFIG['MOZ_APP_NAME']
CPP_SOURCES += [
'nsBrowserApp.cpp',
]

View File

@ -14,8 +14,6 @@ LIBRARY_NAME = browserabout_s
FORCE_STATIC_LIB = 1
USE_STATIC_LIBS = 1
CPPSRCS = AboutRedirector.cpp
LOCAL_INCLUDES = -I$(srcdir)/../build
include $(topsrcdir)/config/rules.mk

View File

@ -10,3 +10,7 @@ EXPORTS.mozilla.browser += [
'AboutRedirector.h',
]
CPP_SOURCES += [
'AboutRedirector.cpp',
]

View File

@ -17,9 +17,6 @@ FORCE_SHARED_LIB = 1
USE_STATIC_LIBS = 1
CPPSRCS = nsModule.cpp \
$(NULL)
ifeq ($(OS_ARCH),WINNT)
OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32 shlwapi)
endif

View File

@ -10,3 +10,7 @@ EXPORTS += [
'nsBrowserCompsCID.h',
]
CPP_SOURCES += [
'nsModule.cpp',
]

View File

@ -14,8 +14,6 @@ LIBRARY_NAME = browserdir_s
FORCE_STATIC_LIB = 1
USE_STATIC_LIBS = 1
CPPSRCS = DirectoryProvider.cpp
LOCAL_INCLUDES = -I$(srcdir)/../build
EXTRA_DSO_LDOPTS = \

View File

@ -12,3 +12,7 @@ EXPORTS.mozilla.browser += [
'DirectoryProvider.h',
]
CPP_SOURCES += [
'DirectoryProvider.cpp',
]

View File

@ -30,8 +30,6 @@ EXTRA_PP_COMPONENTS = \
$(NULL)
CPPSRCS = nsFeedSniffer.cpp
LOCAL_INCLUDES = -I$(srcdir)/../../build
include $(topsrcdir)/config/rules.mk

View File

@ -6,3 +6,7 @@
MODULE = 'browser_feeds'
CPP_SOURCES += [
'nsFeedSniffer.cpp',
]

View File

@ -24,8 +24,6 @@ EXTRA_PP_COMPONENTS = \
$(NULL)
ifeq ($(OS_ARCH),WINNT)
CPPSRCS += nsIEHistoryEnumerator.cpp
EXTRA_COMPONENTS += IEProfileMigrator.js \
$(NULL)

View File

@ -6,3 +6,7 @@
MODULE = 'migration'
if CONFIG['OS_ARCH'] == 'WINNT':
CPP_SOURCES += [
'nsIEHistoryEnumerator.cpp',
]

View File

@ -13,21 +13,24 @@ include $(DEPTH)/config/autoconf.mk
FORCE_STATIC_LIB = 1
USE_STATIC_LIBS = 1
# TODO: Previously, LIBRARY_NAME was set as follows:
#ifdef CPPSRCS
#LIBRARY_NAME = shellservice_s
#endif
# But now we set CPPSRCS in moz.build, which isn't defined at this point.
# This can be simplified when LIBRARY_NAME is in moz.build as well.
ifeq ($(OS_ARCH),WINNT)
CPPSRCS = nsWindowsShellService.cpp
LIBRARY_NAME = shellservice_s
else
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
CPPSRCS = nsMacShellService.cpp
LIBRARY_NAME = shellservice_s
else
ifeq ($(MOZ_WIDGET_TOOLKIT), gtk2)
CPPSRCS = nsGNOMEShellService.cpp
endif
endif
endif
ifdef CPPSRCS
LIBRARY_NAME = shellservice_s
endif
endif
endif
EXTRA_COMPONENTS = nsSetDefaultBrowser.js nsSetDefaultBrowser.manifest

View File

@ -6,3 +6,15 @@
MODULE = 'shellservice'
if CONFIG['OS_ARCH'] == 'WINNT':
CPP_SOURCES += [
'nsWindowsShellService.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
CPP_SOURCES += [
'nsMacShellService.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk2':
CPP_SOURCES += [
'nsGNOMEShellService.cpp',
]

View File

@ -197,9 +197,6 @@
@BINPATH@/components/dom_indexeddb.xpt
@BINPATH@/components/dom_offline.xpt
@BINPATH@/components/dom_json.xpt
#ifdef MOZ_B2G_RIL
@BINPATH@/components/dom_mms.xpt
#endif
@BINPATH@/components/dom_browserelement.xpt
@BINPATH@/components/dom_power.xpt
@BINPATH@/components/dom_quota.xpt

View File

@ -22,11 +22,6 @@ DIST_PROGRAM = CommandExecuteHandler$(BIN_SUFFIX)
MOZ_GLUE_LDFLAGS =
MOZ_GLUE_PROGRAM_LDFLAGS =
CPPSRCS = \
CommandExecuteHandler.cpp \
CEHHelper.cpp \
$(NULL)
OS_LIBS = \
kernel32.lib \
user32.lib \

View File

@ -5,3 +5,8 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
PROGRAM = 'CommandExecuteHandler'
CPP_SOURCES += [
'CEHHelper.cpp',
'CommandExecuteHandler.cpp',
]

View File

@ -15,8 +15,6 @@ include $(topsrcdir)/config/config.mk
DIST_SUBDIR = metro/install
CPPSRCS = linktool.cpp
OS_LIBS = \
kernel32.lib \
user32.lib \

View File

@ -6,3 +6,6 @@
PROGRAM = 'linktool'
CPP_SOURCES += [
'linktool.cpp',
]

View File

@ -23,10 +23,6 @@ include $(topsrcdir)/config/config.mk
# We want this exe in dist/bin
DIST_SUBDIR =
CPPSRCS = \
metrotestharness.cpp \
$(NULL)
OS_LIBS = \
kernel32.lib \
user32.lib \

View File

@ -6,3 +6,6 @@
PROGRAM = 'metrotestharness'
CPP_SOURCES += [
'metrotestharness.cpp',
]

View File

@ -20,7 +20,6 @@ LIBRARY = $(LIB_PREFIX)$(LIBRARY_NAME).$(LIB_SUFFIX)
VPATH += $(STLPORT_SOURCES)/src
CPPSRCS = $(notdir $(wildcard $(STLPORT_SOURCES)/src/*.cpp))
CSRCS = $(notdir $(wildcard $(STLPORT_SOURCES)/src/*.c))
include $(topsrcdir)/config/rules.mk

View File

@ -6,3 +6,7 @@
CONFIGURE_SUBST_FILES += ['stl/config/_android.h']
CPP_SOURCES += [
'$(notdir $(wildcard $(STLPORT_SOURCES)/src/*.cpp))',
]

View File

@ -16,8 +16,6 @@ STL_FLAGS =
NO_EXPAND_LIBS = 1
NO_PROFILE_GUIDED_OPTIMIZE = 1
CPPSRCS = \
stdc++compat.cpp
$(NULL)
HOST_CPPSRCS = $(CPPSRCS)

View File

@ -6,3 +6,7 @@
MODULE = 'build'
CPP_SOURCES += [
'stdc++compat.cpp',
]

View File

@ -14,7 +14,6 @@ NO_PROFILE_GUIDED_OPTIMIZE = 1
ifdef ENABLE_TESTS
USE_STATIC_LIBS = 1
CPPSRCS = crashinject.cpp
endif # ENABLE_TESTS

View File

@ -14,8 +14,6 @@ DEFFILE = $(srcdir)/crashinjectdll.def
FORCE_SHARED_LIB = 1
USE_STATIC_LIBS = 1
CPPSRCS = crashinjectdll.cpp
MOZ_GLUE_LDFLAGS =
include $(topsrcdir)/config/rules.mk

View File

@ -4,3 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
CPP_SOURCES += [
'crashinjectdll.cpp',
]

View File

@ -11,3 +11,6 @@ TEST_DIRS += ['crashinjectdll']
if CONFIG['ENABLE_TESTS']:
PROGRAM = 'crashinject'
CPP_SOURCES += [
'crashinject.cpp',
]

View File

@ -15,8 +15,6 @@ DEFFILE = $(srcdir)/$(LIBRARY_NAME).def
FORCE_SHARED_LIB = 1
USE_STATIC_LIBS = 1
CPPSRCS = $(LIBRARY_NAME).cpp
MOZ_GLUE_LDFLAGS =
include $(topsrcdir)/config/rules.mk

View File

@ -4,3 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
CPP_SOURCES += [
'vmwarerecordinghelper.cpp',
]

View File

@ -16,16 +16,6 @@ FORCE_STATIC_LIB = 1
LIBXUL_LIBRARY = 1
CPPSRCS = \
nsPrincipal.cpp \
nsSystemPrincipal.cpp \
nsNullPrincipal.cpp \
nsNullPrincipalURI.cpp \
nsJSPrincipals.cpp \
nsScriptSecurityManager.cpp \
nsSecurityManagerFactory.cpp \
$(NULL)
include $(topsrcdir)/config/rules.mk
INCLUDES += -I$(srcdir)/../include \

View File

@ -6,3 +6,13 @@
MODULE = 'caps'
CPP_SOURCES += [
'nsJSPrincipals.cpp',
'nsNullPrincipal.cpp',
'nsNullPrincipalURI.cpp',
'nsPrincipal.cpp',
'nsScriptSecurityManager.cpp',
'nsSecurityManagerFactory.cpp',
'nsSystemPrincipal.cpp',
]

View File

@ -15,13 +15,6 @@ MSVC_ENABLE_PGO := 1
LIBXUL_LIBRARY = 1
FORCE_STATIC_LIB = 1
CPPSRCS = \
nsChromeRegistry.cpp \
nsChromeRegistryChrome.cpp \
nsChromeProtocolHandler.cpp \
nsChromeRegistryContent.cpp \
$(NULL)
include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk
include $(topsrcdir)/config/rules.mk

View File

@ -10,3 +10,10 @@ EXPORTS.mozilla.chrome += [
'RegistryMessageUtils.h',
]
CPP_SOURCES += [
'nsChromeProtocolHandler.cpp',
'nsChromeRegistry.cpp',
'nsChromeRegistryChrome.cpp',
'nsChromeRegistryContent.cpp',
]

View File

@ -1306,8 +1306,6 @@ public:
}
static void ReleaseWrapper(void* aScriptObjectHolder,
nsWrapperCache* aCache);
static void TraceWrapper(nsWrapperCache* aCache, TraceCallback aCallback,
void *aClosure);
/*
* Notify when the first XUL menu is opened and when the all XUL menus are

View File

@ -1725,10 +1725,10 @@ public:
#include "nsEventNameList.h"
#undef DOCUMENT_ONLY_EVENT
#undef TOUCH_EVENT
#undef EVENT
#undef EVENT
protected:
static void Trace(nsINode *tmp, TraceCallback cb, void *closure);
static void Trace(nsINode *tmp, const TraceCallbacks &cb, void *closure);
static bool Traverse(nsINode *tmp, nsCycleCollectionTraversalCallback &cb);
static void Unlink(nsINode *tmp);

View File

@ -67,7 +67,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(Attr)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(Attr)
nsINode::Trace(tmp, aCallback, aClosure);
nsINode::Trace(tmp, aCallbacks, aClosure);
NS_IMPL_CYCLE_COLLECTION_TRACE_END
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(Attr)

View File

@ -107,6 +107,18 @@ DocumentFragment::DumpContent(FILE* out, int32_t aIndent,
}
#endif
/* static */ already_AddRefed<DocumentFragment>
DocumentFragment::Constructor(const GlobalObject& aGlobal, ErrorResult& aRv)
{
nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(aGlobal.Get());
if (!window || !window->GetDoc()) {
aRv.Throw(NS_ERROR_FAILURE);
return nullptr;
}
return window->GetDoc()->CreateDocumentFragment();
}
// QueryInterface implementation for DocumentFragment
NS_INTERFACE_MAP_BEGIN(DocumentFragment)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY

View File

@ -141,6 +141,9 @@ public:
mHost = aHost;
}
static already_AddRefed<DocumentFragment>
Constructor(const GlobalObject& aGlobal, ErrorResult& aRv);
#ifdef DEBUG
virtual void List(FILE* out, int32_t aIndent) const;
virtual void DumpContent(FILE* out, int32_t aIndent, bool aDumpAll) const;

View File

@ -1157,7 +1157,7 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(FragmentOrElement)
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(FragmentOrElement)
nsINode::Trace(tmp, aCallback, aClosure);
nsINode::Trace(tmp, aCallbacks, aClosure);
NS_IMPL_CYCLE_COLLECTION_TRACE_END
void

View File

@ -14,109 +14,12 @@ LIBRARY_NAME = gkconbase_s
MSVC_ENABLE_PGO := 1
LIBXUL_LIBRARY = 1
CPPSRCS = \
Comment.cpp \
DirectionalityUtils.cpp \
DocumentType.cpp \
DOMImplementation.cpp \
EventSource.cpp \
FileIOObject.cpp \
nsAtomListUtils.cpp \
nsAttrAndChildArray.cpp \
nsAttrValue.cpp \
nsAttrValueOrString.cpp \
nsCCUncollectableMarker.cpp \
nsChannelPolicy.cpp \
nsContentAreaDragDrop.cpp \
nsContentIterator.cpp \
nsContentList.cpp \
nsContentPolicy.cpp \
nsContentSink.cpp \
nsContentUtils.cpp \
nsCopySupport.cpp \
nsCrossSiteListenerProxy.cpp \
nsCSPService.cpp \
nsDataDocumentContentPolicy.cpp \
Attr.cpp \
nsDOMAttributeMap.cpp \
nsDOMBlobBuilder.cpp \
nsDOMCaretPosition.cpp \
nsDOMFile.cpp \
nsDOMFileReader.cpp \
nsDOMLists.cpp \
nsDOMParser.cpp \
nsDOMSerializer.cpp \
nsDOMTokenList.cpp \
nsDOMSettableTokenList.cpp \
nsDocument.cpp \
nsDocumentEncoder.cpp \
DocumentFragment.cpp \
nsFrameLoader.cpp \
Element.cpp \
nsFormData.cpp \
nsGenConImageContent.cpp \
nsGenericDOMDataNode.cpp \
nsGkAtoms.cpp \
nsHTMLContentSerializer.cpp \
nsImageLoadingContent.cpp \
nsINode.cpp \
nsLineBreaker.cpp \
nsMappedAttributeElement.cpp \
nsMappedAttributes.cpp \
nsNameSpaceManager.cpp \
nsNoDataProtocolContentPolicy.cpp \
nsNodeInfo.cpp \
nsNodeInfoManager.cpp \
NodeIterator.cpp \
nsNodeUtils.cpp \
nsObjectLoadingContent.cpp \
nsPlainTextSerializer.cpp \
nsPropertyTable.cpp \
nsRange.cpp \
nsReferencedElement.cpp \
nsScriptElement.cpp \
nsScriptLoader.cpp \
nsStubDocumentObserver.cpp \
nsStubMutationObserver.cpp \
nsStyledElement.cpp \
nsStyleLinkElement.cpp \
nsSyncLoadService.cpp \
Text.cpp \
nsTextFragment.cpp \
nsTextNode.cpp \
nsTraversal.cpp \
nsTreeSanitizer.cpp \
TreeWalker.cpp \
nsViewportInfo.cpp \
WebSocket.cpp \
nsXHTMLContentSerializer.cpp \
nsXMLContentSerializer.cpp \
nsXMLHttpRequest.cpp \
nsXMLNameSpaceMap.cpp \
FragmentOrElement.cpp \
Link.cpp \
nsHostObjectProtocolHandler.cpp \
nsHostObjectURI.cpp \
nsFrameMessageManager.cpp \
nsInProcessTabChildGlobal.cpp \
ThirdPartyUtil.cpp \
nsDOMMutationObserver.cpp \
nsMixedContentBlocker.cpp \
$(NULL)
ifdef MOZ_WEBRTC
CPPSRCS += nsDOMDataChannel.cpp
LOCAL_INCLUDES += \
-I$(topsrcdir)/netwerk/sctp/datachannel \
$(NULL)
endif
# Are we targeting x86-32 or x86-64? If so, we want to include SSE2 code for
# nsTextFragment.cpp
ifneq (,$(INTEL_ARCHITECTURE))
CPPSRCS += nsTextFragmentSSE2.cpp
endif
GQI_SRCS = contentbase.gqi
# we don't want the shared lib, but we want to force the creation of a

View File

@ -39,6 +39,16 @@ if CONFIG['MOZ_WEBRTC']:
'nsDOMDataChannel.h',
'nsDOMDataChannelDeclarations.h',
]
CPP_SOURCES += [
'nsDOMDataChannel.cpp',
]
# Are we targeting x86-32 or x86-64? If so, we want to include SSE2 code for
# nsTextFragment.cpp
if CONFIG['INTEL_ARCHITECTURE']:
CPP_SOURCES += [
'nsTextFragmentSSE2.cpp',
]
EXPORTS.mozilla.dom += [
'Attr.h',
@ -53,3 +63,93 @@ EXPORTS.mozilla.dom += [
'TreeWalker.h',
]
CPP_SOURCES += [
'Attr.cpp',
'Comment.cpp',
'DOMImplementation.cpp',
'DirectionalityUtils.cpp',
'DocumentFragment.cpp',
'DocumentType.cpp',
'Element.cpp',
'EventSource.cpp',
'FileIOObject.cpp',
'FragmentOrElement.cpp',
'Link.cpp',
'NodeIterator.cpp',
'Text.cpp',
'ThirdPartyUtil.cpp',
'TreeWalker.cpp',
'WebSocket.cpp',
'nsAtomListUtils.cpp',
'nsAttrAndChildArray.cpp',
'nsAttrValue.cpp',
'nsAttrValueOrString.cpp',
'nsCCUncollectableMarker.cpp',
'nsCSPService.cpp',
'nsChannelPolicy.cpp',
'nsContentAreaDragDrop.cpp',
'nsContentIterator.cpp',
'nsContentList.cpp',
'nsContentPolicy.cpp',
'nsContentSink.cpp',
'nsContentUtils.cpp',
'nsCopySupport.cpp',
'nsCrossSiteListenerProxy.cpp',
'nsDOMAttributeMap.cpp',
'nsDOMBlobBuilder.cpp',
'nsDOMCaretPosition.cpp',
'nsDOMFile.cpp',
'nsDOMFileReader.cpp',
'nsDOMLists.cpp',
'nsDOMMutationObserver.cpp',
'nsDOMParser.cpp',
'nsDOMSerializer.cpp',
'nsDOMSettableTokenList.cpp',
'nsDOMTokenList.cpp',
'nsDataDocumentContentPolicy.cpp',
'nsDocument.cpp',
'nsDocumentEncoder.cpp',
'nsFormData.cpp',
'nsFrameLoader.cpp',
'nsFrameMessageManager.cpp',
'nsGenConImageContent.cpp',
'nsGenericDOMDataNode.cpp',
'nsGkAtoms.cpp',
'nsHTMLContentSerializer.cpp',
'nsHostObjectProtocolHandler.cpp',
'nsHostObjectURI.cpp',
'nsINode.cpp',
'nsImageLoadingContent.cpp',
'nsInProcessTabChildGlobal.cpp',
'nsLineBreaker.cpp',
'nsMappedAttributeElement.cpp',
'nsMappedAttributes.cpp',
'nsMixedContentBlocker.cpp',
'nsNameSpaceManager.cpp',
'nsNoDataProtocolContentPolicy.cpp',
'nsNodeInfo.cpp',
'nsNodeInfoManager.cpp',
'nsNodeUtils.cpp',
'nsObjectLoadingContent.cpp',
'nsPlainTextSerializer.cpp',
'nsPropertyTable.cpp',
'nsRange.cpp',
'nsReferencedElement.cpp',
'nsScriptElement.cpp',
'nsScriptLoader.cpp',
'nsStubDocumentObserver.cpp',
'nsStubMutationObserver.cpp',
'nsStyleLinkElement.cpp',
'nsStyledElement.cpp',
'nsSyncLoadService.cpp',
'nsTextFragment.cpp',
'nsTextNode.cpp',
'nsTraversal.cpp',
'nsTreeSanitizer.cpp',
'nsViewportInfo.cpp',
'nsXHTMLContentSerializer.cpp',
'nsXMLContentSerializer.cpp',
'nsXMLHttpRequest.cpp',
'nsXMLNameSpaceMap.cpp',
]

View File

@ -5909,7 +5909,7 @@ nsContentUtils::CheckCCWrapperTraversal(void* aScriptObjectHolder,
"wrapper! This will probably crash.");
callback.mFound = false;
aTracer->Trace(aScriptObjectHolder, DebugWrapperTraceCallback, &callback);
aTracer->Trace(aScriptObjectHolder, TraceCallbackFunc(DebugWrapperTraceCallback), &callback);
MOZ_ASSERT(callback.mFound,
"Cycle collection participant didn't trace preserved wrapper! "
"This will probably crash.");
@ -6436,19 +6436,6 @@ nsContentUtils::ReleaseWrapper(void* aScriptObjectHolder,
}
}
// static
void
nsContentUtils::TraceWrapper(nsWrapperCache* aCache, TraceCallback aCallback,
void *aClosure)
{
if (aCache->PreservingWrapper()) {
JSObject *wrapper = aCache->GetWrapperPreserveColor();
if (wrapper) {
aCallback(wrapper, "Preserved wrapper", aClosure);
}
}
}
// static
int32_t
nsContentUtils::GetAdjustedOffsetInTextControl(nsIFrame* aOffsetFrame,

View File

@ -1782,28 +1782,28 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
struct CustomPrototypeTraceArgs {
TraceCallback callback;
const TraceCallbacks& callbacks;
void* closure;
};
static PLDHashOperator
CustomPrototypeTrace(const nsAString& aName, JSObject* aObject, void *aArg)
CustomPrototypeTrace(const nsAString& aName, JSObject*& aObject, void *aArg)
{
CustomPrototypeTraceArgs* traceArgs = static_cast<CustomPrototypeTraceArgs*>(aArg);
MOZ_ASSERT(aObject, "Protocol object value must not be null");
traceArgs->callback(aObject, "mCustomPrototypes entry", traceArgs->closure);
traceArgs->callbacks.Trace(&aObject, "mCustomPrototypes entry", traceArgs->closure);
return PL_DHASH_NEXT;
}
NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(nsDocument)
CustomPrototypeTraceArgs customPrototypeArgs = { aCallback, aClosure };
tmp->mCustomPrototypes.EnumerateRead(CustomPrototypeTrace, &customPrototypeArgs);
CustomPrototypeTraceArgs customPrototypeArgs = { aCallbacks, aClosure };
tmp->mCustomPrototypes.Enumerate(CustomPrototypeTrace, &customPrototypeArgs);
if (tmp->PreservingWrapper()) {
NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK(mExpandoAndGeneration.expando);
}
nsINode::Trace(tmp, aCallback, aClosure);
nsINode::Trace(tmp, aCallbacks, aClosure);
NS_IMPL_CYCLE_COLLECTION_TRACE_END

View File

@ -63,7 +63,7 @@ nsGenericDOMDataNode::~nsGenericDOMDataNode()
}
NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(nsGenericDOMDataNode)
nsINode::Trace(tmp, aCallback, aClosure);
nsINode::Trace(tmp, aCallbacks, aClosure);
NS_IMPL_CYCLE_COLLECTION_TRACE_END
NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_BEGIN(nsGenericDOMDataNode)

View File

@ -1165,9 +1165,9 @@ nsINode::GetContextForEventHandlers(nsresult* aRv)
/* static */
void
nsINode::Trace(nsINode *tmp, TraceCallback cb, void *closure)
nsINode::Trace(nsINode *tmp, const TraceCallbacks& cb, void *closure)
{
nsContentUtils::TraceWrapper(tmp, cb, closure);
tmp->TraceWrapper(cb, closure);
}

View File

@ -628,6 +628,7 @@ MOCHITEST_FILES_C= \
test_bug869006.html \
test_bug868999.html \
test_bug869000.html \
test_bug869002.html \
$(NULL)
# OOP tests don't work on Windows (bug 763081) or native-fennec

View File

@ -0,0 +1,32 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=868999
-->
<head>
<meta charset="utf-8">
<title>Test for Bug 868999</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=868999">Mozilla Bug 869002</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 868999 **/
var d = new DocumentFragment();
ok(d, "DocumentFragment has been created");
document.appendChild(d);
ok(true, "DocumentFragment has been added to the document");
</script>
</pre>
</body>
</html>

View File

@ -15,56 +15,10 @@ MSVC_ENABLE_PGO := 1
LIBXUL_LIBRARY = 1
FAIL_ON_WARNINGS = 1
CPPSRCS = \
CanvasImageCache.cpp \
CanvasRenderingContext2D.cpp \
CanvasUtils.cpp \
DocumentRendererParent.cpp \
DocumentRendererChild.cpp \
ImageData.cpp \
$(NULL)
ifdef MOZ_WEBGL
CPPSRCS += \
WebGLActiveInfo.cpp \
WebGLBuffer.cpp \
WebGLContext.cpp \
WebGLContextGL.cpp \
WebGLContextUtils.cpp \
WebGLContextReporter.cpp \
WebGLContextValidate.cpp \
WebGLElementArrayCache.cpp \
WebGLExtensionBase.cpp \
WebGLExtensionCompressedTextureATC.cpp \
WebGLExtensionCompressedTexturePVRTC.cpp \
WebGLExtensionCompressedTextureS3TC.cpp \
WebGLExtensionDebugRendererInfo.cpp \
WebGLExtensionDepthTexture.cpp \
WebGLExtensionElementIndexUint.cpp \
WebGLExtensionLoseContext.cpp \
WebGLExtensionStandardDerivatives.cpp \
WebGLExtensionTextureFilterAnisotropic.cpp \
WebGLExtensionTextureFloat.cpp \
WebGLFramebuffer.cpp \
WebGLObjectModel.cpp \
WebGLProgram.cpp \
WebGLRenderbuffer.cpp \
WebGLShader.cpp \
WebGLShaderPrecisionFormat.cpp \
WebGLTexelConversions.cpp \
WebGLTexture.cpp \
WebGLUniformLocation.cpp \
$(NULL)
LOCAL_INCLUDES += \
-I$(topsrcdir)/js/xpconnect/wrappers \
$(NULL)
else
CPPSRCS += WebGLContextNotSupported.cpp
endif
# we don't want the shared lib, but we want to force the creation of a static lib.

View File

@ -15,3 +15,47 @@ EXPORTS.mozilla.dom += [
'TextMetrics.h',
]
CPP_SOURCES += [
'CanvasImageCache.cpp',
'CanvasRenderingContext2D.cpp',
'CanvasUtils.cpp',
'DocumentRendererChild.cpp',
'DocumentRendererParent.cpp',
'ImageData.cpp',
]
if CONFIG['MOZ_WEBGL']:
CPP_SOURCES += [
'WebGLActiveInfo.cpp',
'WebGLBuffer.cpp',
'WebGLContext.cpp',
'WebGLContextGL.cpp',
'WebGLContextUtils.cpp',
'WebGLContextReporter.cpp',
'WebGLContextValidate.cpp',
'WebGLElementArrayCache.cpp',
'WebGLExtensionBase.cpp',
'WebGLExtensionCompressedTextureATC.cpp',
'WebGLExtensionCompressedTexturePVRTC.cpp',
'WebGLExtensionCompressedTextureS3TC.cpp',
'WebGLExtensionDebugRendererInfo.cpp',
'WebGLExtensionDepthTexture.cpp',
'WebGLExtensionElementIndexUint.cpp',
'WebGLExtensionLoseContext.cpp',
'WebGLExtensionStandardDerivatives.cpp',
'WebGLExtensionTextureFilterAnisotropic.cpp',
'WebGLExtensionTextureFloat.cpp',
'WebGLFramebuffer.cpp',
'WebGLObjectModel.cpp',
'WebGLProgram.cpp',
'WebGLRenderbuffer.cpp',
'WebGLShader.cpp',
'WebGLShaderPrecisionFormat.cpp',
'WebGLTexelConversions.cpp',
'WebGLTexture.cpp',
'WebGLUniformLocation.cpp',
]
else:
CPP_SOURCES += [
'WebGLContextNotSupported.cpp',
]

View File

@ -15,53 +15,6 @@ MSVC_ENABLE_PGO := 1
LIBXUL_LIBRARY = 1
FAIL_ON_WARNINGS = 1
CPPSRCS = \
EventTarget.cpp \
nsEventListenerManager.cpp \
nsEventStateManager.cpp \
nsDOMEvent.cpp \
nsDOMDataContainerEvent.cpp \
nsDOMUIEvent.cpp \
nsDOMKeyboardEvent.cpp \
nsDOMTextEvent.cpp \
nsDOMMouseEvent.cpp \
nsDOMMouseScrollEvent.cpp \
nsDOMDragEvent.cpp \
nsDOMMutationEvent.cpp \
nsDOMDeviceMotionEvent.cpp \
nsDOMBeforeUnloadEvent.cpp \
nsDOMXULCommandEvent.cpp \
nsDOMCommandEvent.cpp \
nsDOMMessageEvent.cpp \
nsPaintRequest.cpp \
nsPrivateTextRange.cpp \
nsAsyncDOMEvent.cpp \
nsEventDispatcher.cpp \
nsIMEStateManager.cpp \
nsContentEventHandler.cpp \
nsEventListenerService.cpp \
nsDOMDataTransfer.cpp \
nsDOMNotifyPaintEvent.cpp \
nsDOMNotifyAudioAvailableEvent.cpp \
nsDOMSimpleGestureEvent.cpp \
nsDOMEventTargetHelper.cpp \
nsDOMScrollAreaEvent.cpp \
nsDOMTransitionEvent.cpp \
nsDOMAnimationEvent.cpp \
nsDOMTouchEvent.cpp \
nsDOMCompositionEvent.cpp \
nsDOMClipboardEvent.cpp \
DOMWheelEvent.cpp \
TextComposition.cpp \
Touch.cpp \
$(NULL)
ifdef MOZ_GAMEPAD
CPPSRCS += \
nsDOMGamepad.cpp \
$(NULL)
endif
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -20,3 +20,48 @@ EXPORTS.mozilla.dom += [
'Touch.h',
]
CPP_SOURCES += [
'DOMWheelEvent.cpp',
'EventTarget.cpp',
'TextComposition.cpp',
'Touch.cpp',
'nsAsyncDOMEvent.cpp',
'nsContentEventHandler.cpp',
'nsDOMAnimationEvent.cpp',
'nsDOMBeforeUnloadEvent.cpp',
'nsDOMClipboardEvent.cpp',
'nsDOMCommandEvent.cpp',
'nsDOMCompositionEvent.cpp',
'nsDOMDataContainerEvent.cpp',
'nsDOMDataTransfer.cpp',
'nsDOMDeviceMotionEvent.cpp',
'nsDOMDragEvent.cpp',
'nsDOMEvent.cpp',
'nsDOMEventTargetHelper.cpp',
'nsDOMKeyboardEvent.cpp',
'nsDOMMessageEvent.cpp',
'nsDOMMouseEvent.cpp',
'nsDOMMouseScrollEvent.cpp',
'nsDOMMutationEvent.cpp',
'nsDOMNotifyAudioAvailableEvent.cpp',
'nsDOMNotifyPaintEvent.cpp',
'nsDOMScrollAreaEvent.cpp',
'nsDOMSimpleGestureEvent.cpp',
'nsDOMTextEvent.cpp',
'nsDOMTouchEvent.cpp',
'nsDOMTransitionEvent.cpp',
'nsDOMUIEvent.cpp',
'nsDOMXULCommandEvent.cpp',
'nsEventDispatcher.cpp',
'nsEventListenerManager.cpp',
'nsEventListenerService.cpp',
'nsEventStateManager.cpp',
'nsIMEStateManager.cpp',
'nsPaintRequest.cpp',
'nsPrivateTextRange.cpp',
]
if CONFIG['MOZ_GAMEPAD']:
CPP_SOURCES += [
'nsDOMGamepad.cpp',
]

View File

@ -796,6 +796,11 @@ protected:
* Mute or unmute the audio and change the value that the |muted| map.
*/
void SetMutedInternal(uint32_t aMuted);
/**
* Update the volume of the output audio stream to match the element's
* current mMuted/mVolume state.
*/
void SetVolumeInternal();
/**
* Suspend (if aPauseForInactiveDocument) or resume element playback and

View File

@ -1509,7 +1509,7 @@ HTMLMediaElement::SetVolume(double aVolume, ErrorResult& aRv)
mVolume = aVolume;
// Here we want just to update the volume.
SetMutedInternal(mMuted);
SetVolumeInternal();
DispatchAsyncEvent(NS_LITERAL_STRING("volumechange"));
}
@ -1687,6 +1687,11 @@ void HTMLMediaElement::SetMutedInternal(uint32_t aMuted)
return;
}
SetVolumeInternal();
}
void HTMLMediaElement::SetVolumeInternal()
{
float effectiveVolume = mMuted ? 0.0f : float(mVolume);
if (mDecoder) {

View File

@ -15,84 +15,6 @@ MSVC_ENABLE_PGO := 1
LIBXUL_LIBRARY = 1
FAIL_ON_WARNINGS = 1
CPPSRCS = \
HTMLPropertiesCollection.cpp \
nsClientRect.cpp \
nsHTMLDNSPrefetch.cpp \
nsGenericHTMLElement.cpp \
nsGenericHTMLFrameElement.cpp \
nsFormSubmission.cpp \
nsTextEditorState.cpp \
HTMLElement.cpp \
HTMLAnchorElement.cpp \
HTMLAreaElement.cpp \
HTMLAudioElement.cpp \
HTMLBRElement.cpp \
HTMLBodyElement.cpp \
HTMLButtonElement.cpp \
HTMLCanvasElement.cpp \
HTMLDataElement.cpp \
HTMLDataListElement.cpp \
HTMLDivElement.cpp \
HTMLFieldSetElement.cpp \
HTMLFontElement.cpp \
nsHTMLFormElement.cpp \
HTMLFrameElement.cpp \
HTMLFrameSetElement.cpp \
HTMLHRElement.cpp \
HTMLHeadingElement.cpp \
HTMLIFrameElement.cpp \
HTMLImageElement.cpp \
HTMLInputElement.cpp \
HTMLLIElement.cpp \
HTMLLabelElement.cpp \
HTMLLegendElement.cpp \
HTMLLinkElement.cpp \
HTMLMapElement.cpp \
HTMLMediaElement.cpp \
HTMLMenuElement.cpp \
HTMLMenuItemElement.cpp \
HTMLMetaElement.cpp \
HTMLMeterElement.cpp \
HTMLModElement.cpp \
HTMLObjectElement.cpp \
HTMLSharedObjectElement.cpp \
HTMLOptionElement.cpp \
HTMLOptionsCollection.cpp \
HTMLOptGroupElement.cpp \
HTMLOutputElement.cpp \
HTMLParagraphElement.cpp \
HTMLPreElement.cpp \
HTMLProgressElement.cpp \
HTMLScriptElement.cpp \
HTMLSelectElement.cpp \
HTMLSharedElement.cpp \
HTMLSharedListElement.cpp \
HTMLSourceElement.cpp \
HTMLSpanElement.cpp \
HTMLStyleElement.cpp \
HTMLTableElement.cpp \
HTMLTableCaptionElement.cpp \
HTMLTableCellElement.cpp \
HTMLTableColElement.cpp \
HTMLTableRowElement.cpp \
HTMLTableSectionElement.cpp \
HTMLTemplateElement.cpp \
HTMLTextAreaElement.cpp \
HTMLTimeElement.cpp \
HTMLTitleElement.cpp \
HTMLTrackElement.cpp \
HTMLVideoElement.cpp \
HTMLUnknownElement.cpp \
MediaError.cpp \
TimeRanges.cpp \
ValidityState.cpp \
nsIConstraintValidation.cpp \
nsRadioVisitor.cpp \
nsDOMStringMap.cpp \
UndoManager.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -75,3 +75,81 @@ EXPORTS.mozilla.dom += [
'ValidityState.h',
]
CPP_SOURCES += [
'HTMLAnchorElement.cpp',
'HTMLAreaElement.cpp',
'HTMLAudioElement.cpp',
'HTMLBRElement.cpp',
'HTMLBodyElement.cpp',
'HTMLButtonElement.cpp',
'HTMLCanvasElement.cpp',
'HTMLDataElement.cpp',
'HTMLDataListElement.cpp',
'HTMLDivElement.cpp',
'HTMLElement.cpp',
'HTMLFieldSetElement.cpp',
'HTMLFontElement.cpp',
'HTMLFrameElement.cpp',
'HTMLFrameSetElement.cpp',
'HTMLHRElement.cpp',
'HTMLHeadingElement.cpp',
'HTMLIFrameElement.cpp',
'HTMLImageElement.cpp',
'HTMLInputElement.cpp',
'HTMLLIElement.cpp',
'HTMLLabelElement.cpp',
'HTMLLegendElement.cpp',
'HTMLLinkElement.cpp',
'HTMLMapElement.cpp',
'HTMLMediaElement.cpp',
'HTMLMenuElement.cpp',
'HTMLMenuItemElement.cpp',
'HTMLMetaElement.cpp',
'HTMLMeterElement.cpp',
'HTMLModElement.cpp',
'HTMLObjectElement.cpp',
'HTMLOptGroupElement.cpp',
'HTMLOptionElement.cpp',
'HTMLOptionsCollection.cpp',
'HTMLOutputElement.cpp',
'HTMLParagraphElement.cpp',
'HTMLPreElement.cpp',
'HTMLProgressElement.cpp',
'HTMLPropertiesCollection.cpp',
'HTMLScriptElement.cpp',
'HTMLSelectElement.cpp',
'HTMLSharedElement.cpp',
'HTMLSharedListElement.cpp',
'HTMLSharedObjectElement.cpp',
'HTMLSourceElement.cpp',
'HTMLSpanElement.cpp',
'HTMLStyleElement.cpp',
'HTMLTableCaptionElement.cpp',
'HTMLTableCellElement.cpp',
'HTMLTableColElement.cpp',
'HTMLTableElement.cpp',
'HTMLTableRowElement.cpp',
'HTMLTableSectionElement.cpp',
'HTMLTemplateElement.cpp',
'HTMLTextAreaElement.cpp',
'HTMLTimeElement.cpp',
'HTMLTitleElement.cpp',
'HTMLTrackElement.cpp',
'HTMLUnknownElement.cpp',
'HTMLVideoElement.cpp',
'MediaError.cpp',
'TimeRanges.cpp',
'UndoManager.cpp',
'ValidityState.cpp',
'nsClientRect.cpp',
'nsDOMStringMap.cpp',
'nsFormSubmission.cpp',
'nsGenericHTMLElement.cpp',
'nsGenericHTMLFrameElement.cpp',
'nsHTMLDNSPrefetch.cpp',
'nsHTMLFormElement.cpp',
'nsIConstraintValidation.cpp',
'nsRadioVisitor.cpp',
'nsTextEditorState.cpp',
]

View File

@ -15,15 +15,6 @@ MSVC_ENABLE_PGO := 1
LIBXUL_LIBRARY = 1
FAIL_ON_WARNINGS = 1
CPPSRCS = \
nsHTMLContentSink.cpp \
nsHTMLDocument.cpp \
ImageDocument.cpp \
MediaDocument.cpp \
PluginDocument.cpp \
VideoDocument.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

View File

@ -13,3 +13,12 @@ EXPORTS += [
EXPORTS.mozilla.dom += [
'ImageDocument.h',
]
CPP_SOURCES += [
'ImageDocument.cpp',
'MediaDocument.cpp',
'PluginDocument.cpp',
'VideoDocument.cpp',
'nsHTMLContentSink.cpp',
'nsHTMLDocument.cpp',
]

View File

@ -14,11 +14,6 @@ LIBRARY_NAME = gkcontentmathml_s
LIBXUL_LIBRARY = 1
FAIL_ON_WARNINGS = 1
CPPSRCS = \
nsMathMLElement.cpp \
nsMathMLElementFactory.cpp \
$(NULL)
include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk

View File

@ -6,3 +6,8 @@
MODULE = 'content'
CPP_SOURCES += [
'nsMathMLElement.cpp',
'nsMathMLElementFactory.cpp',
]

View File

@ -16,35 +16,6 @@ ifndef _MSC_VER
FAIL_ON_WARNINGS := 1
endif # !_MSC_VER
CPPSRCS = \
AudioAvailableEventManager.cpp \
AudioChannelFormat.cpp \
AudioNodeEngine.cpp \
AudioNodeStream.cpp \
AudioSegment.cpp \
AudioStream.cpp \
AudioStreamTrack.cpp \
DecoderTraits.cpp \
DOMMediaStream.cpp \
FileBlockCache.cpp \
MediaCache.cpp \
MediaDecoder.cpp \
MediaDecoderStateMachine.cpp \
MediaDecoderReader.cpp \
MediaResource.cpp \
MediaStreamGraph.cpp \
MediaStreamTrack.cpp \
StreamBuffer.cpp \
TextTrack.cpp \
TextTrackList.cpp \
TextTrackCue.cpp \
TextTrackCueList.cpp \
VideoFrameContainer.cpp \
VideoSegment.cpp \
VideoStreamTrack.cpp \
VideoUtils.cpp \
$(NULL)
FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/config.mk

View File

@ -18,12 +18,6 @@ include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME := gkcondash_s
LIBXUL_LIBRARY := 1
CPPSRCS := \
DASHDecoder.cpp \
DASHRepDecoder.cpp \
DASHReader.cpp \
$(NULL)
FORCE_STATIC_LIB := 1
include $(topsrcdir)/config/rules.mk

View File

@ -13,3 +13,9 @@ EXPORTS += [
'DASHRepReader.h',
]
CPP_SOURCES += [
'DASHDecoder.cpp',
'DASHReader.cpp',
'DASHRepDecoder.cpp',
]

View File

@ -13,14 +13,6 @@ include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = gkcongstreamer_s
LIBXUL_LIBRARY = 1
CPPSRCS = \
GStreamerReader.cpp \
GStreamerDecoder.cpp \
GStreamerFormatHelper.cpp \
GStreamerMozVideoBuffer.cpp \
$(NULL)
FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk

View File

@ -12,3 +12,10 @@ EXPORTS += [
'GStreamerReader.h',
]
CPP_SOURCES += [
'GStreamerDecoder.cpp',
'GStreamerFormatHelper.cpp',
'GStreamerReader.cpp',
'GStreamerMozVideoBuffer.cpp',
]

View File

@ -83,3 +83,32 @@ EXPORTS.mozilla.dom += [
'TextTrackList.h',
'VideoStreamTrack.h',
]
CPP_SOURCES += [
'AudioAvailableEventManager.cpp',
'AudioChannelFormat.cpp',
'AudioNodeEngine.cpp',
'AudioNodeStream.cpp',
'AudioSegment.cpp',
'AudioStream.cpp',
'AudioStreamTrack.cpp',
'DOMMediaStream.cpp',
'DecoderTraits.cpp',
'FileBlockCache.cpp',
'MediaCache.cpp',
'MediaDecoder.cpp',
'MediaDecoderReader.cpp',
'MediaDecoderStateMachine.cpp',
'MediaResource.cpp',
'MediaStreamGraph.cpp',
'MediaStreamTrack.cpp',
'StreamBuffer.cpp',
'TextTrack.cpp',
'TextTrackCue.cpp',
'TextTrackCueList.cpp',
'TextTrackList.cpp',
'VideoFrameContainer.cpp',
'VideoSegment.cpp',
'VideoStreamTrack.cpp',
'VideoUtils.cpp',
]

View File

@ -14,12 +14,6 @@ LIBXUL_LIBRARY = 1
FAIL_ON_WARNINGS := 1
CPPSRCS = \
OggDecoder.cpp \
OggCodecState.cpp \
OggReader.cpp \
$(NULL)
FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk

View File

@ -12,3 +12,9 @@ EXPORTS += [
'OggReader.h',
]
CPP_SOURCES += [
'OggCodecState.cpp',
'OggDecoder.cpp',
'OggReader.cpp',
]

View File

@ -12,12 +12,6 @@ include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = gkconomx_s
LIBXUL_LIBRARY = 1
CPPSRCS = \
MediaOmxDecoder.cpp \
MediaOmxReader.cpp \
OmxDecoder.cpp \
$(NULL)
FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk

Some files were not shown because too many files have changed in this diff Show More