зеркало из https://github.com/mozilla/gecko-dev.git
Bug 826410 - Add a missing interface to MediaElement's QI impl. r=jst, a=tef+
This commit is contained in:
Родитель
c25180bb50
Коммит
54c5bbce8e
|
@ -438,6 +438,7 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
|||
|
||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(nsHTMLMediaElement)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIObserver)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIAudioChannelAgentCallback)
|
||||
NS_INTERFACE_MAP_END_INHERITING(nsGenericHTMLElement)
|
||||
|
||||
// nsIDOMHTMLMediaElement
|
||||
|
@ -3852,6 +3853,8 @@ void nsHTMLMediaElement::UpdateAudioChannelPlayingState()
|
|||
/* void canPlayChanged (in boolean canPlay); */
|
||||
NS_IMETHODIMP nsHTMLMediaElement::CanPlayChanged(bool canPlay)
|
||||
{
|
||||
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
|
||||
|
||||
UpdateChannelMuteState(canPlay);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче