зеркало из https://github.com/mozilla/gecko-dev.git
Merge inbound to m-c. a=merge
This commit is contained in:
Коммит
0f38752ebc
|
@ -55,5 +55,3 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
|||
if CONFIG['CLANG_CXX']:
|
||||
# Suppress clang warning about unused function from gobject's RTTI macros.
|
||||
CXXFLAGS += ['-Wno-unused-function']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -97,5 +97,3 @@ if CONFIG['MOZ_ENABLE_GTK']:
|
|||
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -57,5 +57,3 @@ else:
|
|||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -43,5 +43,3 @@ else:
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -47,5 +47,3 @@ if CONFIG['ACCESSIBILITY']:
|
|||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -41,5 +41,3 @@ LOCAL_INCLUDES += [
|
|||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -22,5 +22,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -50,6 +50,4 @@ FINAL_LIBRARY = 'xul'
|
|||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
|
|
@ -64,5 +64,3 @@ FINAL_LIBRARY = 'xul'
|
|||
|
||||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -23,5 +23,3 @@ FINAL_LIBRARY = 'xul'
|
|||
|
||||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -18,5 +18,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -48,5 +48,5 @@ else:
|
|||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['GNU_CXX']:
|
||||
FAIL_ON_WARNINGS = True
|
||||
if not CONFIG['GNU_CXX']:
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
|
|
@ -48,5 +48,3 @@ else:
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -78,8 +78,6 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
JS_PREFERENCE_FILES += [
|
||||
'b2g.js',
|
||||
]
|
||||
|
|
|
@ -19,7 +19,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
export MOZ_TELEMETRY_REPORTING=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Use sccache
|
||||
|
|
|
@ -19,7 +19,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
export MOZ_TELEMETRY_REPORTING=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Use sccache
|
||||
|
|
|
@ -19,7 +19,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
export MOZ_TELEMETRY_REPORTING=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Use sccache
|
||||
|
|
|
@ -19,7 +19,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
export MOZ_TELEMETRY_REPORTING=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Use sccache
|
||||
|
|
|
@ -18,7 +18,7 @@ export MOZ_TELEMETRY_REPORTING=1
|
|||
|
||||
#ac_add_options --with-macbundlename-prefix=Firefox
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# B2G Stuff
|
||||
|
|
|
@ -19,7 +19,7 @@ export MOZ_TELEMETRY_REPORTING=1
|
|||
|
||||
#ac_add_options --with-macbundlename-prefix=Firefox
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# B2G Stuff
|
||||
|
|
|
@ -17,7 +17,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
ac_add_options --with-macbundlename-prefix=Firefox
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -20,5 +20,3 @@ if not CONFIG['MOZ_B2GDROID']:
|
|||
]
|
||||
DEFINES['B2G_NAME'] = '"%s-bin%s"' % (PROGRAM, CONFIG['BIN_SUFFIX'])
|
||||
DEFINES['GAIA_PATH'] = '"gaia/profile"'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -86,5 +86,3 @@ JAR_MANIFESTS += ['jar.mn']
|
|||
|
||||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -17,5 +17,3 @@ FINAL_LIBRARY = 'browsercomps'
|
|||
LOCAL_INCLUDES += [
|
||||
'../build',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -38,5 +38,3 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||
# GTK2: Need to link with glib for GNOME shell service
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'gtk2', 'gtk3'):
|
||||
OS_LIBS += CONFIG['TK_LIBS']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -21,5 +21,3 @@ FINAL_LIBRARY = 'browsercomps'
|
|||
LOCAL_INCLUDES += [
|
||||
'../build'
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -40,7 +40,5 @@ LOCAL_INCLUDES += [
|
|||
'../build',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
with Files('**'):
|
||||
BUG_COMPONENT = ('Firefox', 'RSS Discovery and Preview')
|
||||
|
|
|
@ -64,7 +64,5 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||
|
||||
FINAL_LIBRARY = 'browsercomps'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
with Files('**'):
|
||||
BUG_COMPONENT = ('Firefox', 'Migration')
|
||||
|
|
|
@ -50,7 +50,5 @@ for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION'):
|
|||
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
with Files('**'):
|
||||
BUG_COMPONENT = ('Firefox', 'Shell Integration')
|
||||
|
|
|
@ -13,7 +13,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
export MOZ_TELEMETRY_REPORTING=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -12,7 +12,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
#Use ccache
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -13,7 +13,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
export MOZ_TELEMETRY_REPORTING=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -10,7 +10,7 @@ MOZ_AUTOMATION_L10N_CHECK=0
|
|||
# Needed to enable breakpad in application.ini
|
||||
export MOZILLA_OFFICIAL=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -16,7 +16,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
export MOZ_TELEMETRY_REPORTING=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -12,7 +12,7 @@ if test "${MOZ_UPDATE_CHANNEL}" = "nightly"; then
|
|||
ac_add_options --with-macbundlename-prefix=Firefox
|
||||
fi
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -7,7 +7,7 @@ MOZ_AUTOMATION_L10N_CHECK=0
|
|||
ac_add_options --enable-debug
|
||||
ac_add_options --enable-dmd
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
ac_add_options --enable-clang-plugin
|
||||
|
|
|
@ -10,7 +10,7 @@ if test "${MOZ_UPDATE_CHANNEL}" = "nightly"; then
|
|||
ac_add_options --with-macbundlename-prefix=Firefox
|
||||
fi
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -29,7 +29,7 @@ export MOZ_TELEMETRY_REPORTING=1
|
|||
|
||||
. $topsrcdir/build/win32/mozconfig.vs2013-win64
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Enable Adobe Primetime CDM on 32-bit Windows in Mozilla builds.
|
||||
|
|
|
@ -20,7 +20,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
. $topsrcdir/build/win32/mozconfig.vs2013-win64
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -25,7 +25,7 @@ export MOZILLA_OFFICIAL=1
|
|||
|
||||
export MOZ_TELEMETRY_REPORTING=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
. $topsrcdir/build/win64/mozconfig.vs2013
|
||||
|
|
|
@ -20,7 +20,7 @@ ac_add_options --with-google-oauth-api-keyfile=${_google_oauth_api_keyfile}
|
|||
# Needed to enable breakpad in application.ini
|
||||
export MOZILLA_OFFICIAL=1
|
||||
|
||||
# Treat warnings as errors in directories with FAIL_ON_WARNINGS.
|
||||
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
|
||||
ac_add_options --enable-warnings-as-errors
|
||||
|
||||
# Package js shell.
|
||||
|
|
|
@ -48,9 +48,6 @@ public class DirCursor extends MatrixCursor {
|
|||
int nCIndex = 0;
|
||||
Object [] vals = new Object[nCols];
|
||||
|
||||
if (vals == null)
|
||||
return;
|
||||
|
||||
if (dir.isDirectory()) {
|
||||
try {
|
||||
nCIndex = getColumnIndex(_ID);
|
||||
|
|
|
@ -48,9 +48,6 @@ public class DirCursor extends MatrixCursor {
|
|||
int nCIndex = 0;
|
||||
Object [] vals = new Object[nCols];
|
||||
|
||||
if (vals == null)
|
||||
return;
|
||||
|
||||
if (dir.isDirectory()) {
|
||||
try {
|
||||
nCIndex = getColumnIndex(_ID);
|
||||
|
|
|
@ -69,3 +69,5 @@ if CONFIG['GNU_CXX']:
|
|||
# Force to build a static library, instead of a fake library, without
|
||||
# installing it in dist/lib.
|
||||
NO_EXPAND_LIBS = True
|
||||
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
|
|
@ -51,5 +51,3 @@ LOCAL_INCLUDES += [
|
|||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -40,5 +40,3 @@ LOCAL_INCLUDES += [
|
|||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -359,25 +359,27 @@ endif # CROSS_COMPILE
|
|||
CFLAGS += $(MOZ_FRAMEPTR_FLAGS)
|
||||
CXXFLAGS += $(MOZ_FRAMEPTR_FLAGS)
|
||||
|
||||
# Check for FAIL_ON_WARNINGS (Shorthand for Makefiles to request that we use
|
||||
# the 'warnings as errors' compile flags)
|
||||
# Check for ALLOW_COMPILER_WARNINGS (shorthand for Makefiles to request that we
|
||||
# *don't* use the warnings-as-errors compile flags)
|
||||
|
||||
# NOTE: First, we clear FAIL_ON_WARNINGS[_DEBUG] if we're doing a Windows PGO
|
||||
# build, since WARNINGS_AS_ERRORS has been suspected of causing isuses in that
|
||||
# situation. (See bug 437002.)
|
||||
# Don't use warnings-as-errors in Windows PGO builds because it is suspected of
|
||||
# causing problems in that situation. (See bug 437002.)
|
||||
ifeq (WINNT_1,$(OS_ARCH)_$(MOZ_PROFILE_GENERATE)$(MOZ_PROFILE_USE))
|
||||
FAIL_ON_WARNINGS=
|
||||
ALLOW_COMPILER_WARNINGS=1
|
||||
endif # WINNT && (MOS_PROFILE_GENERATE ^ MOZ_PROFILE_USE)
|
||||
|
||||
# Check for normal version of flag, and add WARNINGS_AS_ERRORS if it's set to 1.
|
||||
ifdef FAIL_ON_WARNINGS
|
||||
# Never treat warnings as errors in clang-cl, because it warns about many more
|
||||
# Don't use warnings-as-errors in clang-cl because it warns about many more
|
||||
# things than MSVC does.
|
||||
ifndef CLANG_CL
|
||||
ifdef CLANG_CL
|
||||
ALLOW_COMPILER_WARNINGS=1
|
||||
endif # CLANG_CL
|
||||
|
||||
# Use warnings-as-errors if ALLOW_COMPILER_WARNINGS is not set to 1 (which
|
||||
# includes the case where it's undefined).
|
||||
ifneq (1,$(ALLOW_COMPILER_WARNINGS))
|
||||
CXXFLAGS += $(WARNINGS_AS_ERRORS)
|
||||
CFLAGS += $(WARNINGS_AS_ERRORS)
|
||||
endif # CLANG_CL
|
||||
endif # FAIL_ON_WARNINGS
|
||||
endif # ALLOW_COMPILER_WARNINGS
|
||||
|
||||
ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
||||
#// Currently, unless USE_STATIC_LIBS is defined, the multithreaded
|
||||
|
|
|
@ -45,3 +45,6 @@ else:
|
|||
'/security/nss/lib/util/nssutil3',
|
||||
'sqlite',
|
||||
]
|
||||
|
||||
# XXX: We should fix these warnings.
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
|
|
@ -42,3 +42,6 @@ PYTHON_UNIT_TESTS += [
|
|||
|
||||
if CONFIG['GNU_CC'] and CONFIG['MOZ_OPTIMIZE']:
|
||||
CFLAGS += ['-O3']
|
||||
|
||||
# XXX: We should fix these warnings.
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
|
|
@ -9,6 +9,8 @@ EXPORTS += [
|
|||
'sqlite3.h',
|
||||
]
|
||||
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
||||
if CONFIG['MOZ_FOLD_LIBS']:
|
||||
# When folding libraries, sqlite is actually in the nss library.
|
||||
FINAL_LIBRARY = 'nss'
|
||||
|
|
|
@ -65,8 +65,6 @@ UNIFIED_SOURCES += [
|
|||
'SerializedLoadContext.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -27,8 +27,6 @@ UNIFIED_SOURCES += [
|
|||
'TimelineMarker.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
|
|
|
@ -27,5 +27,3 @@ FINAL_LIBRARY = 'xul'
|
|||
|
||||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -27,8 +27,6 @@ UNIFIED_SOURCES += [
|
|||
'nsSHTransaction.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/docshell/base',
|
||||
]
|
||||
|
|
|
@ -31,8 +31,6 @@ EXTRA_JS_MODULES += [
|
|||
'ActivitiesServiceFilter.jsm',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/dom/base',
|
||||
]
|
||||
|
|
|
@ -28,8 +28,6 @@ EXTRA_JS_MODULES += [
|
|||
'AlarmService.jsm',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -574,7 +574,8 @@ Animation::ComposeStyle(nsRefPtr<AnimValuesStyleRule>& aStyleRule,
|
|||
|
||||
AnimationPlayState playState = PlayState();
|
||||
if (playState == AnimationPlayState::Running ||
|
||||
playState == AnimationPlayState::Pending) {
|
||||
playState == AnimationPlayState::Pending ||
|
||||
HasEndEventToQueue()) {
|
||||
aNeedsRefreshes = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -298,6 +298,19 @@ public:
|
|||
nsCSSPropertySet& aSetProperties,
|
||||
bool& aNeedsRefreshes);
|
||||
|
||||
|
||||
// FIXME: Because we currently determine if we need refresh driver ticks
|
||||
// during restyling (specifically ComposeStyle above) and not necessarily
|
||||
// during a refresh driver tick, we can arrive at a situation where we
|
||||
// have finished running an animation but are waiting until the next tick
|
||||
// to queue the final end event. This method tells us when we are in that
|
||||
// situation so we can avoid unregistering from the refresh driver until
|
||||
// we've finished dispatching events.
|
||||
//
|
||||
// This is a temporary measure until bug 1195180 is done and we can do all
|
||||
// our registering and unregistering within a tick callback.
|
||||
virtual bool HasEndEventToQueue() const { return false; }
|
||||
|
||||
void NotifyEffectTimingUpdated();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -30,6 +30,4 @@ UNIFIED_SOURCES += [
|
|||
'PendingAnimationTracker.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -54,8 +54,6 @@ EXTRA_PP_JS_MODULES += [
|
|||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
|
|
|
@ -24,8 +24,6 @@ UNIFIED_SOURCES += [
|
|||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'../base',
|
||||
]
|
||||
|
|
|
@ -16,8 +16,6 @@ IPDL_SOURCES += [
|
|||
'PAsmJSCacheEntry.ipdl'
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -161,15 +161,20 @@ static const nsAttrValue::EnumTable kMozAudioChannelAttributeTable[] = {
|
|||
{ nullptr }
|
||||
};
|
||||
|
||||
/* static */ already_AddRefed<AudioChannelService>
|
||||
AudioChannelService::GetOrCreate()
|
||||
/* static */ void
|
||||
AudioChannelService::CreateServiceIfNeeded()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
if (!gAudioChannelService) {
|
||||
gAudioChannelService = new AudioChannelService();
|
||||
}
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<AudioChannelService>
|
||||
AudioChannelService::GetOrCreate()
|
||||
{
|
||||
CreateServiceIfNeeded();
|
||||
nsRefPtr<AudioChannelService> service = gAudioChannelService.get();
|
||||
return service.forget();
|
||||
}
|
||||
|
@ -919,5 +924,6 @@ AudioChannelService::ChildStatusReceived(uint64_t aChildID,
|
|||
/* static */ bool
|
||||
AudioChannelService::IsAudioChannelMutedByDefault()
|
||||
{
|
||||
CreateServiceIfNeeded();
|
||||
return sAudioChannelMutedByDefault;
|
||||
}
|
||||
|
|
|
@ -142,6 +142,8 @@ private:
|
|||
AudioChannelService();
|
||||
~AudioChannelService();
|
||||
|
||||
static void CreateServiceIfNeeded();
|
||||
|
||||
/**
|
||||
* Shutdown the singleton.
|
||||
*/
|
||||
|
|
|
@ -21,8 +21,6 @@ UNIFIED_SOURCES += [
|
|||
'AudioChannelService.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -409,8 +409,6 @@ EXTRA_JS_MODULES += [
|
|||
'IndexedDBHelper.jsm',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'../battery',
|
||||
'../bluetooth/common',
|
||||
|
|
|
@ -366,19 +366,18 @@ nsAnimationReceiver::RecordAnimationMutation(Animation* aAnimation,
|
|||
}
|
||||
|
||||
if (nsAutoAnimationMutationBatch::IsBatching()) {
|
||||
if (nsAutoAnimationMutationBatch::GetBatchTarget() != animationTarget) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (aMutationType) {
|
||||
case eAnimationMutation_Added:
|
||||
nsAutoAnimationMutationBatch::AnimationAdded(aAnimation);
|
||||
nsAutoAnimationMutationBatch::AnimationAdded(aAnimation,
|
||||
animationTarget);
|
||||
break;
|
||||
case eAnimationMutation_Changed:
|
||||
nsAutoAnimationMutationBatch::AnimationChanged(aAnimation);
|
||||
nsAutoAnimationMutationBatch::AnimationChanged(aAnimation,
|
||||
animationTarget);
|
||||
break;
|
||||
case eAnimationMutation_Removed:
|
||||
nsAutoAnimationMutationBatch::AnimationRemoved(aAnimation);
|
||||
nsAutoAnimationMutationBatch::AnimationRemoved(aAnimation,
|
||||
animationTarget);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1059,32 +1058,46 @@ nsAutoAnimationMutationBatch::Done()
|
|||
return;
|
||||
}
|
||||
|
||||
sCurrentBatch = mPreviousBatch;
|
||||
sCurrentBatch = nullptr;
|
||||
if (mObservers.IsEmpty()) {
|
||||
nsDOMMutationObserver::LeaveMutationHandling();
|
||||
// Nothing to do.
|
||||
return;
|
||||
}
|
||||
|
||||
for (nsDOMMutationObserver* ob : mObservers) {
|
||||
nsRefPtr<nsDOMMutationRecord> m =
|
||||
new nsDOMMutationRecord(nsGkAtoms::animations, ob->GetParentObject());
|
||||
m->mTarget = mBatchTarget;
|
||||
mBatchTargets.Sort(TreeOrderComparator());
|
||||
|
||||
for (const Entry& e : mEntries) {
|
||||
if (e.mState == eState_Added) {
|
||||
m->mAddedAnimations.AppendElement(e.mAnimation);
|
||||
} else if (e.mState == eState_Removed) {
|
||||
m->mRemovedAnimations.AppendElement(e.mAnimation);
|
||||
} else if (e.mState == eState_RemainedPresent && e.mChanged) {
|
||||
m->mChangedAnimations.AppendElement(e.mAnimation);
|
||||
for (nsDOMMutationObserver* ob : mObservers) {
|
||||
bool didAddRecords = false;
|
||||
|
||||
for (nsINode* target : mBatchTargets) {
|
||||
EntryArray* entries = mEntryTable.Get(target);
|
||||
MOZ_ASSERT(entries,
|
||||
"Targets in entry table and targets list should match");
|
||||
|
||||
nsRefPtr<nsDOMMutationRecord> m =
|
||||
new nsDOMMutationRecord(nsGkAtoms::animations, ob->GetParentObject());
|
||||
m->mTarget = target;
|
||||
|
||||
for (const Entry& e : *entries) {
|
||||
if (e.mState == eState_Added) {
|
||||
m->mAddedAnimations.AppendElement(e.mAnimation);
|
||||
} else if (e.mState == eState_Removed) {
|
||||
m->mRemovedAnimations.AppendElement(e.mAnimation);
|
||||
} else if (e.mState == eState_RemainedPresent && e.mChanged) {
|
||||
m->mChangedAnimations.AppendElement(e.mAnimation);
|
||||
}
|
||||
}
|
||||
|
||||
if (!m->mAddedAnimations.IsEmpty() ||
|
||||
!m->mChangedAnimations.IsEmpty() ||
|
||||
!m->mRemovedAnimations.IsEmpty()) {
|
||||
ob->AppendMutationRecord(m.forget());
|
||||
didAddRecords = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!m->mAddedAnimations.IsEmpty() ||
|
||||
!m->mChangedAnimations.IsEmpty() ||
|
||||
!m->mRemovedAnimations.IsEmpty()) {
|
||||
ob->AppendMutationRecord(m.forget());
|
||||
if (didAddRecords) {
|
||||
ob->ScheduleForRun();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -742,20 +742,21 @@ class nsAutoAnimationMutationBatch
|
|||
struct Entry;
|
||||
|
||||
public:
|
||||
explicit nsAutoAnimationMutationBatch(nsINode* aTarget)
|
||||
: mBatchTarget(nullptr)
|
||||
explicit nsAutoAnimationMutationBatch(nsIDocument* aDocument)
|
||||
{
|
||||
Init(aTarget);
|
||||
Init(aDocument);
|
||||
}
|
||||
|
||||
void Init(nsINode* aTarget)
|
||||
void Init(nsIDocument* aDocument)
|
||||
{
|
||||
if (aTarget && aTarget->OwnerDoc()->MayHaveDOMMutationObservers()) {
|
||||
mBatchTarget = aTarget;
|
||||
mPreviousBatch = sCurrentBatch;
|
||||
sCurrentBatch = this;
|
||||
nsDOMMutationObserver::EnterMutationHandling();
|
||||
if (!aDocument ||
|
||||
!aDocument->MayHaveDOMMutationObservers() ||
|
||||
sCurrentBatch) {
|
||||
return;
|
||||
}
|
||||
|
||||
sCurrentBatch = this;
|
||||
nsDOMMutationObserver::EnterMutationHandling();
|
||||
}
|
||||
|
||||
~nsAutoAnimationMutationBatch()
|
||||
|
@ -783,18 +784,14 @@ public:
|
|||
sCurrentBatch->mObservers.AppendElement(aObserver);
|
||||
}
|
||||
|
||||
static nsINode* GetBatchTarget()
|
||||
{
|
||||
return sCurrentBatch->mBatchTarget;
|
||||
}
|
||||
|
||||
static void AnimationAdded(mozilla::dom::Animation* aAnimation)
|
||||
static void AnimationAdded(mozilla::dom::Animation* aAnimation,
|
||||
nsINode* aTarget)
|
||||
{
|
||||
if (!IsBatching()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Entry* entry = sCurrentBatch->FindEntry(aAnimation);
|
||||
Entry* entry = sCurrentBatch->FindEntry(aAnimation, aTarget);
|
||||
if (entry) {
|
||||
switch (entry->mState) {
|
||||
case eState_RemainedAbsent:
|
||||
|
@ -808,16 +805,16 @@ public:
|
|||
"twice");
|
||||
}
|
||||
} else {
|
||||
entry = sCurrentBatch->mEntries.AppendElement();
|
||||
entry->mAnimation = aAnimation;
|
||||
entry = sCurrentBatch->AddEntry(aAnimation, aTarget);
|
||||
entry->mState = eState_Added;
|
||||
entry->mChanged = false;
|
||||
}
|
||||
}
|
||||
|
||||
static void AnimationChanged(mozilla::dom::Animation* aAnimation)
|
||||
static void AnimationChanged(mozilla::dom::Animation* aAnimation,
|
||||
nsINode* aTarget)
|
||||
{
|
||||
Entry* entry = sCurrentBatch->FindEntry(aAnimation);
|
||||
Entry* entry = sCurrentBatch->FindEntry(aAnimation, aTarget);
|
||||
if (entry) {
|
||||
NS_ASSERTION(entry->mState == eState_RemainedPresent ||
|
||||
entry->mState == eState_Added,
|
||||
|
@ -825,16 +822,16 @@ public:
|
|||
"being removed");
|
||||
entry->mChanged = true;
|
||||
} else {
|
||||
entry = sCurrentBatch->mEntries.AppendElement();
|
||||
entry->mAnimation = aAnimation;
|
||||
entry = sCurrentBatch->AddEntry(aAnimation, aTarget);
|
||||
entry->mState = eState_RemainedPresent;
|
||||
entry->mChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
static void AnimationRemoved(mozilla::dom::Animation* aAnimation)
|
||||
static void AnimationRemoved(mozilla::dom::Animation* aAnimation,
|
||||
nsINode* aTarget)
|
||||
{
|
||||
Entry* entry = sCurrentBatch->FindEntry(aAnimation);
|
||||
Entry* entry = sCurrentBatch->FindEntry(aAnimation, aTarget);
|
||||
if (entry) {
|
||||
switch (entry->mState) {
|
||||
case eState_RemainedPresent:
|
||||
|
@ -848,17 +845,21 @@ public:
|
|||
"twice");
|
||||
}
|
||||
} else {
|
||||
entry = sCurrentBatch->mEntries.AppendElement();
|
||||
entry->mAnimation = aAnimation;
|
||||
entry = sCurrentBatch->AddEntry(aAnimation, aTarget);
|
||||
entry->mState = eState_Removed;
|
||||
entry->mChanged = false;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
Entry* FindEntry(mozilla::dom::Animation* aAnimation)
|
||||
Entry* FindEntry(mozilla::dom::Animation* aAnimation, nsINode* aTarget)
|
||||
{
|
||||
for (Entry& e : mEntries) {
|
||||
EntryArray* entries = mEntryTable.Get(aTarget);
|
||||
if (!entries) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
for (Entry& e : *entries) {
|
||||
if (e.mAnimation == aAnimation) {
|
||||
return &e;
|
||||
}
|
||||
|
@ -866,6 +867,17 @@ private:
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
Entry* AddEntry(mozilla::dom::Animation* aAnimation, nsINode* aTarget)
|
||||
{
|
||||
EntryArray* entries = sCurrentBatch->mEntryTable.LookupOrAdd(aTarget);
|
||||
if (entries->IsEmpty()) {
|
||||
sCurrentBatch->mBatchTargets.AppendElement(aTarget);
|
||||
}
|
||||
Entry* entry = entries->AppendElement();
|
||||
entry->mAnimation = aAnimation;
|
||||
return entry;
|
||||
}
|
||||
|
||||
enum State {
|
||||
eState_RemainedPresent,
|
||||
eState_RemainedAbsent,
|
||||
|
@ -881,10 +893,11 @@ private:
|
|||
};
|
||||
|
||||
static nsAutoAnimationMutationBatch* sCurrentBatch;
|
||||
nsAutoAnimationMutationBatch* mPreviousBatch;
|
||||
nsAutoTArray<nsDOMMutationObserver*, 2> mObservers;
|
||||
nsTArray<Entry> mEntries;
|
||||
nsINode* mBatchTarget;
|
||||
typedef nsTArray<Entry> EntryArray;
|
||||
nsClassHashtable<nsPtrHashKey<nsINode>, EntryArray> mEntryTable;
|
||||
// List of nodes referred to by mEntryTable so we can sort them
|
||||
nsTArray<nsINode*> mBatchTargets;
|
||||
};
|
||||
|
||||
inline
|
||||
|
|
|
@ -13,8 +13,6 @@ SOURCES += [
|
|||
'BatteryManager.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -39,8 +39,6 @@ EXPORTS.mozilla.dom += [
|
|||
'UnionMember.h',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/dom/base',
|
||||
'/dom/battery',
|
||||
|
|
|
@ -154,8 +154,6 @@ IPDL_SOURCES += [
|
|||
'ipc/PBluetoothRequest.ipdl'
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'../base',
|
||||
'../network',
|
||||
|
|
|
@ -29,4 +29,3 @@ MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
|
|||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -569,33 +569,42 @@ BrowserElementChild.prototype = {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!e.target.name) {
|
||||
var name = e.target.name;
|
||||
var property = e.target.getAttributeNS(null, "property");
|
||||
|
||||
if (!name && !property) {
|
||||
return;
|
||||
}
|
||||
|
||||
debug('Got metaChanged: (' + e.target.name + ') ' + e.target.content);
|
||||
debug('Got metaChanged: (' + (name || property) + ') ' +
|
||||
e.target.content);
|
||||
|
||||
let handlers = {
|
||||
'viewmode': this._genericMetaHandler.bind(null, 'viewmode'),
|
||||
'theme-color': this._genericMetaHandler.bind(null, 'theme-color'),
|
||||
'theme-group': this._genericMetaHandler.bind(null, 'theme-group'),
|
||||
'viewmode': this._genericMetaHandler,
|
||||
'theme-color': this._genericMetaHandler,
|
||||
'theme-group': this._genericMetaHandler,
|
||||
'application-name': this._applicationNameChangedHandler
|
||||
};
|
||||
let handler = handlers[name];
|
||||
|
||||
if ((property || name).match(/^og:/)) {
|
||||
name = property || name;
|
||||
handler = this._genericMetaHandler;
|
||||
}
|
||||
|
||||
let handler = handlers[e.target.name];
|
||||
if (handler) {
|
||||
handler(e.type, e.target);
|
||||
handler(name, e.type, e.target);
|
||||
}
|
||||
},
|
||||
|
||||
_applicationNameChangedHandler: function(eventType, target) {
|
||||
_applicationNameChangedHandler: function(name, eventType, target) {
|
||||
if (eventType !== 'DOMMetaAdded') {
|
||||
// Bug 1037448 - Decide what to do when <meta name="application-name">
|
||||
// changes
|
||||
return;
|
||||
}
|
||||
|
||||
let meta = { name: 'application-name',
|
||||
let meta = { name: name,
|
||||
content: target.content };
|
||||
|
||||
let lang;
|
||||
|
|
|
@ -24,6 +24,10 @@ function createMetaWithLang(name, content, lang) {
|
|||
return '<meta name="' + name + '" content="' + content + '" lang="' + lang + '">';
|
||||
}
|
||||
|
||||
function createMetaWithProperty(property, content) {
|
||||
return '<meta property="' + property + '" content="' + content + '">';
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
var iframe1 = document.createElement('iframe');
|
||||
iframe1.setAttribute('mozbrowser', 'true');
|
||||
|
@ -131,6 +135,26 @@ function runTest() {
|
|||
is(e.detail.content, 'sjs', 'content matches');
|
||||
is(e.detail.lang, 'dk', 'language matches');
|
||||
|
||||
// Test Open Graph property
|
||||
iframe1.src = createHtml(createMetaWithProperty('og:description', 'Fascinating article'));
|
||||
|
||||
// We should not get event if property doesn't start with 'og:'
|
||||
iframe3.src = createHtml(createMetaWithProperty('go:description', 'Fascinating article'));
|
||||
}
|
||||
else if (numMetaChanges == 11) {
|
||||
is(e.detail.name, 'og:description', 'property name matches');
|
||||
is(e.detail.content, 'Fascinating article', 'content matches');
|
||||
|
||||
// Sometimes 'name' is used instead of 'property'. Verify that works.
|
||||
iframe1.src = createHtml(createMeta('og:title', 'One weird trick!'));
|
||||
|
||||
// We should not get event if property doesn't start with 'og:'
|
||||
iframe3.src = createHtml(createMeta('go:title', 'One weird trick!'));
|
||||
}
|
||||
else if (numMetaChanges == 12) {
|
||||
is(e.detail.name, 'og:title', 'property name matches');
|
||||
is(e.detail.content, 'One weird trick!', 'content matches');
|
||||
|
||||
// Test the language
|
||||
SimpleTest.finish();
|
||||
} else {
|
||||
|
|
|
@ -32,8 +32,6 @@ EXTRA_JS_MODULES += [
|
|||
'BrowserElementPromptService.jsm',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'../bluetooth',
|
||||
'/dom/html',
|
||||
|
|
|
@ -87,8 +87,6 @@ LOCAL_INCLUDES += [
|
|||
'../workers',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
MOCHITEST_MANIFESTS += [
|
||||
|
|
|
@ -36,7 +36,9 @@ CameraPreviewMediaStream::CameraPreviewMediaStream(DOMMediaStream* aWrapper)
|
|||
, mRateLimit(false)
|
||||
, mTrackCreated(false)
|
||||
{
|
||||
SetGraphImpl(MediaStreamGraph::GetInstance());
|
||||
SetGraphImpl(
|
||||
MediaStreamGraph::GetInstance(
|
||||
MediaStreamGraph::SYSTEM_THREAD_DRIVER, AudioChannel::Normal));
|
||||
mFakeMediaStreamGraph = new FakeMediaStreamGraph();
|
||||
mIsConsumed = false;
|
||||
}
|
||||
|
|
|
@ -61,8 +61,6 @@ else:
|
|||
'FallbackCameraManager.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'../base',
|
||||
'/media/libyuv/include',
|
||||
|
|
|
@ -11,8 +11,6 @@ GeckoCppUnitTests([
|
|||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'../',
|
||||
]
|
||||
|
|
|
@ -143,8 +143,6 @@ LOCAL_INCLUDES += [
|
|||
'/js/xpconnect/wrappers',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -35,6 +35,4 @@ IPDL_SOURCES += [
|
|||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -19,8 +19,6 @@ UNIFIED_SOURCES += [
|
|||
'WebCryptoTask.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -45,4 +45,3 @@ MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
|
|||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
|
|
@ -32,8 +32,6 @@ IPDL_SOURCES += [
|
|||
'PDeviceStorageRequest.ipdl',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -18,8 +18,6 @@ UNIFIED_SOURCES += [
|
|||
'TextEncoder.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
LOCAL_INCLUDES += [
|
||||
'/intl/locale',
|
||||
|
|
|
@ -124,8 +124,6 @@ SOURCES += [
|
|||
if CONFIG['MOZ_WEBSPEECH']:
|
||||
UNIFIED_SOURCES += ['SpeechRecognitionError.cpp']
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -44,7 +44,6 @@ LOCAL_INCLUDES += [
|
|||
'/netwerk/protocol/http',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
|
|
@ -26,8 +26,6 @@ UNIFIED_SOURCES += [
|
|||
'MutableFile.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
|
|
|
@ -42,5 +42,5 @@ LOCAL_INCLUDES += [
|
|||
'/dom/base',
|
||||
]
|
||||
|
||||
if not CONFIG['CLANG_CXX']:
|
||||
FAIL_ON_WARNINGS = True
|
||||
if CONFIG['CLANG_CXX']:
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
|
|
@ -18,8 +18,6 @@ UNIFIED_SOURCES += [
|
|||
'FMRadioRequestParent.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/dom/base',
|
||||
]
|
||||
|
|
|
@ -27,8 +27,6 @@ IPDL_SOURCES += [
|
|||
'ipc/PFMRadioRequest.ipdl',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'../base',
|
||||
'../system/gonk',
|
||||
|
|
|
@ -43,8 +43,6 @@ elif CONFIG['MOZ_GAMEPAD_BACKEND'] == 'android':
|
|||
'android/AndroidGamepad.cpp'
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -21,8 +21,6 @@ UNIFIED_SOURCES += [
|
|||
'nsGeoPosition.cpp',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -1830,6 +1830,14 @@ HTMLMediaElement::CaptureStreamInternal(bool aFinishWhenEnded,
|
|||
return nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!aGraph) {
|
||||
MediaStreamGraph::GraphDriverType graphDriverType =
|
||||
HasAudio() ? MediaStreamGraph::AUDIO_THREAD_DRIVER
|
||||
: MediaStreamGraph::SYSTEM_THREAD_DRIVER;
|
||||
aGraph = MediaStreamGraph::GetInstance(graphDriverType, mAudioChannel);
|
||||
}
|
||||
|
||||
OutputMediaStream* out = mOutputStreams.AppendElement();
|
||||
out->mStream = DOMMediaStream::CreateTrackUnionStream(window, aGraph);
|
||||
nsRefPtr<nsIPrincipal> principal = GetCurrentPrincipal();
|
||||
|
@ -3051,7 +3059,8 @@ void HTMLMediaElement::SetupSrcMediaStreamPlayback(DOMMediaStream* aStream)
|
|||
// version |mPlaybackStream|. If two media elements are playing the
|
||||
// same realtime DOMMediaStream, this allows them to pause playback
|
||||
// independently of each other.
|
||||
mPlaybackStream = DOMMediaStream::CreateTrackUnionStream(window);
|
||||
MediaStreamGraph* graph = mSrcStream->GetStream()->Graph();
|
||||
mPlaybackStream = DOMMediaStream::CreateTrackUnionStream(window, graph);
|
||||
mPlaybackStreamInputPort = mPlaybackStream->GetStream()->AsProcessedStream()->
|
||||
AllocateInputPort(mSrcStream->GetStream(), MediaInputPort::FLAG_BLOCK_OUTPUT);
|
||||
|
||||
|
@ -4709,7 +4718,9 @@ NS_IMETHODIMP HTMLMediaElement::WindowAudioCaptureChanged()
|
|||
nsCOMPtr<nsPIDOMWindow> window =
|
||||
do_QueryInterface(OwnerDoc()->GetParentObject());
|
||||
uint64_t id = window->WindowID();
|
||||
MediaStreamGraph* msg = MediaStreamGraph::GetInstance();
|
||||
MediaStreamGraph* msg =
|
||||
MediaStreamGraph::GetInstance(MediaStreamGraph::AUDIO_THREAD_DRIVER,
|
||||
AudioChannel::Normal);
|
||||
|
||||
if (!mPlaybackStream) {
|
||||
nsRefPtr<DOMMediaStream> stream = CaptureStreamInternal(false, msg);
|
||||
|
|
|
@ -222,8 +222,6 @@ EXTRA_COMPONENTS += [
|
|||
'htmlMenuBuilder.manifest'
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
|
|
|
@ -48,8 +48,6 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['MOZ_B2G_RIL']:
|
|||
'gonk/StkCmdFactory.manifest'
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -87,8 +87,6 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
|||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/db/sqlite3/src',
|
||||
'/dom/base',
|
||||
|
|
|
@ -4,6 +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/. */
|
||||
|
||||
#include "MediaStreamGraph.h"
|
||||
#include "DOMMediaStream.h"
|
||||
#include "InputPortData.h"
|
||||
#include "InputPortListeners.h"
|
||||
|
@ -60,7 +61,10 @@ InputPort::Init(nsIInputPortData* aData, nsIInputPortListener* aListener, ErrorR
|
|||
mInputPortListener = static_cast<InputPortListener*>(aListener);
|
||||
mInputPortListener->RegisterInputPort(this);
|
||||
|
||||
mStream = DOMMediaStream::CreateSourceStream(GetOwner());
|
||||
MediaStreamGraph* graph =
|
||||
MediaStreamGraph::GetInstance(MediaStreamGraph::SYSTEM_THREAD_DRIVER,
|
||||
AudioChannel::Normal);
|
||||
mStream = DOMMediaStream::CreateSourceStream(GetOwner(), graph);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -44,5 +44,3 @@ XPCSHELL_TESTS_MANIFESTS += ['test/xpcshell/xpcshell.ini']
|
|||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
|
@ -112,8 +112,6 @@ IPDL_SOURCES += [
|
|||
'PTabContext.ipdlh',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче