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

Unified Diff: Source/core/loader/TextTrackLoader.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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/loader/TextTrackLoader.h ('k') | Source/core/loader/ThreadableLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/TextTrackLoader.cpp
diff --git a/Source/core/loader/TextTrackLoader.cpp b/Source/core/loader/TextTrackLoader.cpp
index 09851df8748c3ac02d6a676f68a78d617b46b952..98efb065b41162f9185d2cd4bab8405960463b31 100644
--- a/Source/core/loader/TextTrackLoader.cpp
+++ b/Source/core/loader/TextTrackLoader.cpp
@@ -39,7 +39,7 @@
#include "weborigin/SecurityOrigin.h"
namespace WebCore {
-
+
TextTrackLoader::TextTrackLoader(TextTrackLoaderClient* client, ScriptExecutionContext* context)
: m_client(client)
, m_scriptExecutionContext(context)
@@ -62,7 +62,7 @@ void TextTrackLoader::cueLoadTimerFired(Timer<TextTrackLoader>* timer)
if (m_newCuesAvailable) {
m_newCuesAvailable = false;
- m_client->newCuesAvailable(this);
+ m_client->newCuesAvailable(this);
}
if (m_state >= Finished)
@@ -80,10 +80,10 @@ void TextTrackLoader::cancelLoad()
void TextTrackLoader::processNewCueData(CachedResource* resource)
{
ASSERT(m_cachedCueData == resource);
-
+
if (m_state == Failed || !resource->resourceBuffer())
return;
-
+
SharedBuffer* buffer = resource->resourceBuffer();
if (m_parseOffset == buffer->size())
return;
@@ -104,10 +104,10 @@ void TextTrackLoader::processNewCueData(CachedResource* resource)
void TextTrackLoader::deprecatedDidReceiveCachedResource(CachedResource* resource)
{
ASSERT(m_cachedCueData == resource);
-
+
if (!resource->resourceBuffer())
return;
-
+
processNewCueData(resource);
}
@@ -139,7 +139,7 @@ void TextTrackLoader::notifyFinished(CachedResource* resource)
if (!m_cueLoadTimer.isActive())
m_cueLoadTimer.startOneShot(0);
-
+
cancelLoad();
}
@@ -170,9 +170,9 @@ bool TextTrackLoader::load(const KURL& url, const String& crossOriginMode)
m_cachedCueData = fetcher->requestTextTrack(cueRequest);
if (m_cachedCueData)
m_cachedCueData->addClient(this);
-
+
m_client->cueLoadingStarted(this);
-
+
return true;
}
@@ -188,7 +188,7 @@ void TextTrackLoader::newCuesParsed()
#if ENABLE(WEBVTT_REGIONS)
void TextTrackLoader::newRegionsParsed()
{
- m_client->newRegionsAvailable(this);
+ m_client->newRegionsAvailable(this);
}
#endif
« no previous file with comments | « Source/core/loader/TextTrackLoader.h ('k') | Source/core/loader/ThreadableLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698