OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "core/html/track/TextTrackCue.h" | 34 #include "core/html/track/TextTrackCue.h" |
35 | 35 |
36 #include "CSSPropertyNames.h" | 36 #include "CSSPropertyNames.h" |
37 #include "CSSValueKeywords.h" | 37 #include "CSSValueKeywords.h" |
38 #include "core/dom/DocumentFragment.h" | 38 #include "core/dom/DocumentFragment.h" |
39 #include "core/dom/Event.h" | 39 #include "core/dom/Event.h" |
40 #include "core/dom/NodeTraversal.h" | 40 #include "core/dom/NodeTraversal.h" |
41 #include "core/html/HTMLDivElement.h" | 41 #include "core/html/HTMLDivElement.h" |
42 #include "core/html/track/TextTrack.h" | 42 #include "core/html/track/TextTrack.h" |
43 #include "core/html/track/TextTrackCueList.h" | 43 #include "core/html/track/TextTrackCueList.h" |
44 #include "core/html/track/TextTrackRegionList.h" | |
45 #include "core/html/track/WebVTTElement.h" | 44 #include "core/html/track/WebVTTElement.h" |
46 #include "core/html/track/WebVTTParser.h" | 45 #include "core/html/track/WebVTTParser.h" |
47 #include "core/rendering/RenderTextTrackCue.h" | 46 #include "core/rendering/RenderTextTrackCue.h" |
48 #include <wtf/MathExtras.h> | 47 #include "wtf/MathExtras.h" |
49 #include <wtf/text/StringBuilder.h> | 48 #include "wtf/text/StringBuilder.h" |
50 | 49 |
51 namespace WebCore { | 50 namespace WebCore { |
52 | 51 |
53 static const int invalidCueIndex = -1; | 52 static const int invalidCueIndex = -1; |
54 static const int undefinedPosition = -1; | 53 static const int undefinedPosition = -1; |
55 static const int autoSize = 0; | 54 static const int autoSize = 0; |
56 | 55 |
57 static const String& startKeyword() | 56 static const String& startKeyword() |
58 { | 57 { |
59 DEFINE_STATIC_LOCAL(const String, start, (ASCIILiteral("start"))); | 58 DEFINE_STATIC_LOCAL(const String, start, (ASCIILiteral("start"))); |
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1183 if (m_cueSize != cue.size()) | 1182 if (m_cueSize != cue.size()) |
1184 return false; | 1183 return false; |
1185 if (align() != cue.align()) | 1184 if (align() != cue.align()) |
1186 return false; | 1185 return false; |
1187 | 1186 |
1188 return true; | 1187 return true; |
1189 } | 1188 } |
1190 | 1189 |
1191 } // namespace WebCore | 1190 } // namespace WebCore |
1192 | 1191 |
OLD | NEW |