Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 UChar cc = m_inputStreamPreprocessor.nextInputCharacter(); | 77 UChar cc = m_inputStreamPreprocessor.nextInputCharacter(); |
| 78 | 78 |
| 79 // 4.8.10.13.4 WebVTT cue text tokenizer | 79 // 4.8.10.13.4 WebVTT cue text tokenizer |
| 80 switch (m_state) { | 80 switch (m_state) { |
| 81 WEBVTT_BEGIN_STATE(DataState) { | 81 WEBVTT_BEGIN_STATE(DataState) { |
| 82 if (cc == '&') { | 82 if (cc == '&') { |
| 83 m_buffer.append(static_cast<LChar>(cc)); | 83 m_buffer.append(static_cast<LChar>(cc)); |
| 84 WEBVTT_ADVANCE_TO(EscapeState); | 84 WEBVTT_ADVANCE_TO(EscapeState); |
| 85 } else if (cc == '<') { | 85 } else if (cc == '<') { |
| 86 if (m_token->type() == WebVTTTokenTypes::Uninitialized | 86 if (m_token->type() == WebVTTTokenTypes::Uninitialized |
| 87 || vectorEqualsString<UChar>(m_token->characters(), emptyString( ))) | 87 || vectorEqualsString<UChar>(Vector<UChar, 32>(m_token->characte rs()), emptyString())) |
|
abarth-chromium
2013/09/11 18:16:41
This has got to be wrong too. I don't think we ne
| |
| 88 WEBVTT_ADVANCE_TO(TagState); | 88 WEBVTT_ADVANCE_TO(TagState); |
| 89 else | 89 else |
| 90 return emitAndResumeIn(source, WebVTTTokenizerState::TagState); | 90 return emitAndResumeIn(source, WebVTTTokenizerState::TagState); |
| 91 } else if (cc == kEndOfFileMarker) | 91 } else if (cc == kEndOfFileMarker) |
| 92 return emitEndOfFile(source); | 92 return emitEndOfFile(source); |
| 93 else { | 93 else { |
| 94 bufferCharacter(cc); | 94 bufferCharacter(cc); |
| 95 WEBVTT_ADVANCE_TO(DataState); | 95 WEBVTT_ADVANCE_TO(DataState); |
| 96 } | 96 } |
| 97 } | 97 } |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 END_STATE() | 217 END_STATE() |
| 218 | 218 |
| 219 } | 219 } |
| 220 | 220 |
| 221 ASSERT_NOT_REACHED(); | 221 ASSERT_NOT_REACHED(); |
| 222 return false; | 222 return false; |
| 223 } | 223 } |
| 224 | 224 |
| 225 } | 225 } |
| 226 | 226 |
| OLD | NEW |