Bug 826410 - Add a missing interface to MediaElement's QI impl. r=jst, a=tef+

This commit is contained in:
Blake Kaplan 2013-01-07 09:40:02 +01:00
Родитель c25180bb50
Коммит 54c5bbce8e
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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;
}