Index: third_party/WebKit/Source/core/html/shadow/MediaControls.cpp |
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp |
index ded935a0092d3d06e13923cd97696ba24552c43c..bd03224eddbf5a30289fc42bcf28e9116ab52fdb 100644 |
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp |
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp |
@@ -748,6 +748,18 @@ void MediaControls::onTextTracksChanged() { |
m_toggleClosedCaptionsButton->updateDisplayType(); |
} |
+void MediaControls::onError() { |
+ // TODO(mlamouri): we should only change the aspects of the control that need |
+ // to be changed. |
+ reset(); |
+} |
+ |
+void MediaControls::onLoadedMetadata() { |
+ // TODO(mlamouri): we should only change the aspects of the control that need |
+ // to be changed. |
+ reset(); |
+} |
+ |
void MediaControls::notifyPanelWidthChanged(const LayoutUnit& newWidth) { |
// Don't bother to do any work if this matches the most recent panel |
// width, since we're called after layout. |