| 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 6ea360ea9f65e93b4b4cea98d18dc63c59ebca66..1556c0b15dc600190e536d80b264b7d83d341aa9 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| @@ -1230,11 +1230,9 @@ bool HTMLMediaElement::textTracksAreReady() const {
|
| // mode was not in the disabled state when the element's resource selection
|
| // algorithm last started now have a text track readiness state of loaded or
|
| // failed to load.
|
| - for (unsigned i = 0; i < m_textTracksWhenResourceSelectionBegan.size(); ++i) {
|
| - if (m_textTracksWhenResourceSelectionBegan[i]->getReadinessState() ==
|
| - TextTrack::Loading ||
|
| - m_textTracksWhenResourceSelectionBegan[i]->getReadinessState() ==
|
| - TextTrack::NotLoaded)
|
| + for (const auto& textTrack : m_textTracksWhenResourceSelectionBegan) {
|
| + if (textTrack->getReadinessState() == TextTrack::Loading ||
|
| + textTrack->getReadinessState() == TextTrack::NotLoaded)
|
| return false;
|
| }
|
|
|
|
|