Backed out 6 changesets (bug 1347758) for eslint failure

Backed out changeset 9becd55242c1 (bug 1347758)
Backed out changeset 2abce19f5001 (bug 1347758)
Backed out changeset 80232d4c85d5 (bug 1347758)
Backed out changeset 1fd084ec34d4 (bug 1347758)
Backed out changeset cafb3c12027b (bug 1347758)
Backed out changeset 85846edfe957 (bug 1347758)
This commit is contained in:
Iris Hsiao
2017-03-24 16:58:08 +08:00
parent 8e9801f141
commit a501d530f1
19 changed files with 108 additions and 378 deletions

View File

@@ -692,8 +692,7 @@ public:
MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug,
("HTMLMediaElement::AudioChannelAgentCallback, WindowVolumeChanged, "
"this = %p, aVolume = %f, aMuted = %s\n",
this, aVolume, aMuted ? "true" : "false"));
"this = %p, aVolume = %f, aMuted = %d\n", this, aVolume, aMuted));
if (mAudioChannelVolume != aVolume) {
mAudioChannelVolume = aVolume;
@@ -717,7 +716,7 @@ public:
MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug,
("HTMLMediaElement::AudioChannelAgentCallback, WindowSuspendChanged, "
"this = %p, aSuspend = %s\n", this, SuspendTypeToStr(aSuspend)));
"this = %p, aSuspend = %d\n", this, aSuspend));
switch (aSuspend) {
case nsISuspendedTypes::NONE_SUSPENDED:
@@ -884,7 +883,7 @@ private:
mSuspended = aSuspend;
MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug,
("HTMLMediaElement::AudioChannelAgentCallback, SetAudioChannelSuspended, "
"this = %p, aSuspend = %s\n", this, SuspendTypeToStr(aSuspend)));
"this = %p, aSuspend = %d\n", this, aSuspend));
NotifyAudioPlaybackChanged(
AudioChannelService::AudibleChangedReasons::ePauseStateChanged);
@@ -4310,6 +4309,7 @@ nsresult HTMLMediaElement::BindToTree(nsIDocument* aDocument, nsIContent* aParen
// The preload action depends on the value of the autoplay attribute.
// It's value may have changed, so update it.
UpdatePreloadAction();
aDocument->AddMediaContent(this);
}
NotifyDecoderActivityChanges();
@@ -4542,6 +4542,9 @@ void HTMLMediaElement::UnbindFromTree(bool aDeep,
{
mUnboundFromTree = true;
mVisibilityState = Visibility::UNTRACKED;
if (OwnerDoc()) {
OwnerDoc()->RemoveMediaContent(this);
}
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);