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 17 matching lines...) Expand all Loading... |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 #include "config.h" | 32 #include "config.h" |
33 | 33 |
34 #include "TextTrackCue.h" | 34 #include "TextTrackCue.h" |
35 | 35 |
36 #include "CSSPropertyNames.h" | 36 #include "CSSPropertyNames.h" |
37 #include "CSSValueKeywords.h" | 37 #include "CSSValueKeywords.h" |
38 #include "DocumentFragment.h" | |
39 #include "Event.h" | |
40 #include "HTMLDivElement.h" | 38 #include "HTMLDivElement.h" |
41 #include "HTMLMediaElement.h" | 39 #include "HTMLMediaElement.h" |
42 #include "HTMLSpanElement.h" | 40 #include "HTMLSpanElement.h" |
43 #include "NodeTraversal.h" | |
44 #include "Text.h" | |
45 #include "TextTrack.h" | 41 #include "TextTrack.h" |
46 #include "TextTrackCueList.h" | 42 #include "TextTrackCueList.h" |
47 #include "WebVTTElement.h" | 43 #include "WebVTTElement.h" |
48 #include "WebVTTParser.h" | 44 #include "WebVTTParser.h" |
| 45 #include "core/dom/DocumentFragment.h" |
| 46 #include "core/dom/Event.h" |
| 47 #include "core/dom/NodeTraversal.h" |
| 48 #include "core/dom/Text.h" |
49 #include "core/rendering/RenderTextTrackCue.h" | 49 #include "core/rendering/RenderTextTrackCue.h" |
50 #include <wtf/MathExtras.h> | 50 #include <wtf/MathExtras.h> |
51 #include <wtf/text/StringBuilder.h> | 51 #include <wtf/text/StringBuilder.h> |
52 | 52 |
53 namespace WebCore { | 53 namespace WebCore { |
54 | 54 |
55 static const int invalidCueIndex = -1; | 55 static const int invalidCueIndex = -1; |
56 static const int undefinedPosition = -1; | 56 static const int undefinedPosition = -1; |
57 static const int autoSize = 0; | 57 static const int autoSize = 0; |
58 | 58 |
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 if (m_cueSize != cue.size()) | 1172 if (m_cueSize != cue.size()) |
1173 return false; | 1173 return false; |
1174 if (align() != cue.align()) | 1174 if (align() != cue.align()) |
1175 return false; | 1175 return false; |
1176 | 1176 |
1177 return true; | 1177 return true; |
1178 } | 1178 } |
1179 | 1179 |
1180 } // namespace WebCore | 1180 } // namespace WebCore |
1181 | 1181 |
OLD | NEW |