| 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 23 matching lines...) Expand all Loading... |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/ProcessingInstruction.h" | 35 #include "core/dom/ProcessingInstruction.h" |
| 36 #include "core/dom/Text.h" | 36 #include "core/dom/Text.h" |
| 37 #include "core/html/track/vtt/VTTElement.h" | 37 #include "core/html/track/vtt/VTTElement.h" |
| 38 #include "core/html/track/vtt/VTTScanner.h" | 38 #include "core/html/track/vtt/VTTScanner.h" |
| 39 #include "platform/text/SegmentedString.h" | 39 #include "platform/text/SegmentedString.h" |
| 40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 using namespace HTMLNames; |
| 45 |
| 44 const double secondsPerHour = 3600; | 46 const double secondsPerHour = 3600; |
| 45 const double secondsPerMinute = 60; | 47 const double secondsPerMinute = 60; |
| 46 const double secondsPerMillisecond = 0.001; | 48 const double secondsPerMillisecond = 0.001; |
| 47 const unsigned fileIdentifierLength = 6; | 49 const unsigned fileIdentifierLength = 6; |
| 48 | 50 |
| 49 static unsigned scanDigits(const String& input, unsigned* position) | 51 static unsigned scanDigits(const String& input, unsigned* position) |
| 50 { | 52 { |
| 51 unsigned startPosition = *position; | 53 unsigned startPosition = *position; |
| 52 while (*position < input.length() && isASCIIDigit(input[*position])) | 54 while (*position < input.length() && isASCIIDigit(input[*position])) |
| 53 (*position)++; | 55 (*position)++; |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 m_currentNode->parserAppendChild(ProcessingInstruction::create(docum
ent, "timestamp", charactersString)); | 591 m_currentNode->parserAppendChild(ProcessingInstruction::create(docum
ent, "timestamp", charactersString)); |
| 590 break; | 592 break; |
| 591 } | 593 } |
| 592 default: | 594 default: |
| 593 break; | 595 break; |
| 594 } | 596 } |
| 595 } | 597 } |
| 596 | 598 |
| 597 } | 599 } |
| 598 | 600 |
| OLD | NEW |