Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1133)

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 291873002: Eliminate MediaPlayer & MediaPlayerClient abstractions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unused function declarations Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 5989e22687f9677f46374eca682cd28eec45fbd8..cd6605f3c1ba41e722a561d6720932c8e3b5fe8b 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -1826,7 +1826,7 @@ HTMLMediaElement::ReadyState HTMLMediaElement::readyState() const
bool HTMLMediaElement::hasAudio() const
{
- return m_player ? m_player->hasAudio() : false;
+ return webMediaPlayer() ? webMediaPlayer()->hasAudio() : false;
}
bool HTMLMediaElement::seeking() const
@@ -3244,16 +3244,16 @@ void HTMLMediaElement::setClosedCaptionsVisible(bool closedCaptionVisible)
unsigned HTMLMediaElement::webkitAudioDecodedByteCount() const
{
- if (!m_player)
+ if (!webMediaPlayer())
return 0;
- return m_player->audioDecodedByteCount();
+ return webMediaPlayer()->audioDecodedByteCount();
}
unsigned HTMLMediaElement::webkitVideoDecodedByteCount() const
{
- if (!m_player)
+ if (!webMediaPlayer())
return 0;
- return m_player->videoDecodedByteCount();
+ return webMediaPlayer()->videoDecodedByteCount();
}
bool HTMLMediaElement::isURLAttribute(const Attribute& attribute) const

Powered by Google App Engine
This is Rietveld 408576698