Index: Source/core/html/track/WebVTTParser.cpp |
diff --git a/Source/core/html/track/WebVTTParser.cpp b/Source/core/html/track/WebVTTParser.cpp |
index 9863cbc318bf2b1fefac9ab10b2f6497c4c0cb7f..989e5789bce126031ea93c19eb519a94b3a8ab66 100644 |
--- a/Source/core/html/track/WebVTTParser.cpp |
+++ b/Source/core/html/track/WebVTTParser.cpp |
@@ -277,9 +277,7 @@ WebVTTParser::ParseState WebVTTParser::collectTimingsAndSettings(const String& l |
return BadCue; |
if (position >= line.length()) |
return BadCue; |
- char nextChar = line[position++]; |
- if (nextChar != ' ' && nextChar != '\t') |
- return BadCue; |
+ |
skipWhiteSpace(line, &position); |
// 6-9 - If the next three characters are not "-->", abort and return failure. |
@@ -288,9 +286,7 @@ WebVTTParser::ParseState WebVTTParser::collectTimingsAndSettings(const String& l |
position += 3; |
if (position >= line.length()) |
return BadCue; |
- nextChar = line[position++]; |
- if (nextChar != ' ' && nextChar != '\t') |
- return BadCue; |
+ |
skipWhiteSpace(line, &position); |
// 10-11 - Collect a WebVTT timestamp. If that fails, then abort and return failure. Otherwise, let cue's text track cue end time be the collected time. |