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

Unified Diff: Source/core/html/track/LoadableTextTrack.cpp

Issue 51883010: Simplify HTMLTrackElement::didCompleteLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@refTextTrackLoaderClient
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/html/HTMLTrackElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/LoadableTextTrack.cpp
diff --git a/Source/core/html/track/LoadableTextTrack.cpp b/Source/core/html/track/LoadableTextTrack.cpp
index 87c34f362b780176827d5e5a80b12cdc0d63d0b3..5c014fcbf85b9a04ffb7db3056037ed629b4e2b0 100644
--- a/Source/core/html/track/LoadableTextTrack.cpp
+++ b/Source/core/html/track/LoadableTextTrack.cpp
@@ -90,7 +90,7 @@ void LoadableTextTrack::loadTimerFired(Timer<LoadableTextTrack>*)
// origin of the media element's Document, and the default origin behaviour set to fail.
m_loader = TextTrackLoader::create(*this, m_trackElement->document());
if (!m_loader->load(m_url, m_trackElement->mediaElementCrossOriginAttribute()))
- m_trackElement->didCompleteLoad(this, HTMLTrackElement::Failure);
+ m_trackElement->didCompleteLoad(HTMLTrackElement::Failure);
}
void LoadableTextTrack::newCuesAvailable(TextTrackLoader* loader)
@@ -124,7 +124,7 @@ void LoadableTextTrack::cueLoadingCompleted(TextTrackLoader* loader, bool loadin
if (!m_trackElement)
return;
- m_trackElement->didCompleteLoad(this, loadingFailed ? HTMLTrackElement::Failure : HTMLTrackElement::Success);
+ m_trackElement->didCompleteLoad(loadingFailed ? HTMLTrackElement::Failure : HTMLTrackElement::Success);
}
void LoadableTextTrack::newRegionsAvailable(TextTrackLoader* loader)
« no previous file with comments | « Source/core/html/HTMLTrackElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698