mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1167538 - Part 1 of 1: Removes use of NS_LITERAL_STRING("") in dom/meida/webspeech/synth/*. r=smaug
This commit is contained in:
parent
c1ee946cf2
commit
2741089f15
@ -55,7 +55,7 @@ already_AddRefed<SpeechSynthesisUtterance>
|
||||
SpeechSynthesisUtterance::Constructor(GlobalObject& aGlobal,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
return Constructor(aGlobal, NS_LITERAL_STRING(""), aRv);
|
||||
return Constructor(aGlobal, EmptyString(), aRv);
|
||||
}
|
||||
|
||||
already_AddRefed<SpeechSynthesisUtterance>
|
||||
|
@ -299,7 +299,7 @@ nsSpeechTask::DispatchStartImpl(const nsAString& aUri)
|
||||
mUtterance->mState = SpeechSynthesisUtterance::STATE_SPEAKING;
|
||||
mUtterance->mChosenVoiceURI = aUri;
|
||||
mUtterance->DispatchSpeechSynthesisEvent(NS_LITERAL_STRING("start"), 0, 0,
|
||||
NS_LITERAL_STRING(""));
|
||||
EmptyString());
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@ -370,7 +370,7 @@ nsSpeechTask::DispatchPauseImpl(float aElapsedTime, uint32_t aCharIndex)
|
||||
mUtterance->mPaused = true;
|
||||
mUtterance->DispatchSpeechSynthesisEvent(NS_LITERAL_STRING("pause"),
|
||||
aCharIndex, aElapsedTime,
|
||||
NS_LITERAL_STRING(""));
|
||||
EmptyString());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -397,7 +397,7 @@ nsSpeechTask::DispatchResumeImpl(float aElapsedTime, uint32_t aCharIndex)
|
||||
mUtterance->mPaused = false;
|
||||
mUtterance->DispatchSpeechSynthesisEvent(NS_LITERAL_STRING("resume"),
|
||||
aCharIndex, aElapsedTime,
|
||||
NS_LITERAL_STRING(""));
|
||||
EmptyString());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -422,7 +422,7 @@ nsSpeechTask::DispatchErrorImpl(float aElapsedTime, uint32_t aCharIndex)
|
||||
mUtterance->mState = SpeechSynthesisUtterance::STATE_ENDED;
|
||||
mUtterance->DispatchSpeechSynthesisEvent(NS_LITERAL_STRING("error"),
|
||||
aCharIndex, aElapsedTime,
|
||||
NS_LITERAL_STRING(""));
|
||||
EmptyString());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user