Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
| diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
| index 9e4d7251251f3d24dc3bbe4989ba190af632954f..8f36b5f8fbc8344b267aedbdcb42b868985efc5c 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
| @@ -2006,16 +2006,6 @@ double HTMLMediaElement::duration() const { |
| if (!m_webMediaPlayer || m_readyState < kHaveMetadata) |
| return std::numeric_limits<double>::quiet_NaN(); |
| - // FIXME: Refactor so m_duration is kept current (in both MSE and |
| - // non-MSE cases) once we have transitioned from kHaveNothing -> |
| - // kHaveMetadata. Currently, m_duration may be out of date for at least MSE |
| - // case because MediaSource and SourceBuffer do not notify the element |
| - // directly upon duration changes caused by endOfStream, remove, or append |
| - // operations; rather the notification is triggered by the WebMediaPlayer |
| - // implementation observing that the underlying engine has updated duration |
| - // and notifying the element to consult its MediaSource for current |
| - // duration. See http://crbug.com/266644 |
|
chcunningham
2016/12/15 01:24:26
Matt, I think this comment is stale (or I misunder
wolenetz
2016/12/16 00:56:52
These do eventually bubble, but in the interim tim
chcunningham
2017/01/03 17:48:06
At this point m_duration is only used in OnDuratio
|
| - |
| if (m_mediaSource) |
| return m_mediaSource->duration(); |