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

Side by Side Diff: Source/core/html/track/vtt/VTTParser.cpp

Issue 134453006: Remove "using namespace" statements from headers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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 unified diff | Download patch
« no previous file with comments | « Source/core/html/track/vtt/VTTParser.h ('k') | Source/core/rendering/RenderBlockLineLayout.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/track/vtt/VTTParser.h ('k') | Source/core/rendering/RenderBlockLineLayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698