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 24 matching lines...) Expand all Loading... |
35 #include "bindings/v8/ExceptionMessages.h" | 35 #include "bindings/v8/ExceptionMessages.h" |
36 #include "bindings/v8/ExceptionStatePlaceholder.h" | 36 #include "bindings/v8/ExceptionStatePlaceholder.h" |
37 #include "core/events/Event.h" | 37 #include "core/events/Event.h" |
38 #include "core/html/track/TextTrack.h" | 38 #include "core/html/track/TextTrack.h" |
39 #include "core/html/track/TextTrackCueList.h" | 39 #include "core/html/track/TextTrackCueList.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 static const int invalidCueIndex = -1; | 43 static const int invalidCueIndex = -1; |
44 | 44 |
45 // ---------------------------- | |
46 | |
47 TextTrackCueBox::TextTrackCueBox(Document& document) | |
48 : HTMLDivElement(document) | |
49 { | |
50 } | |
51 | |
52 // ---------------------------- | |
53 | |
54 bool TextTrackCue::isInfiniteOrNonNumber(double value, const char* method, Excep
tionState& exceptionState) | 45 bool TextTrackCue::isInfiniteOrNonNumber(double value, const char* method, Excep
tionState& exceptionState) |
55 { | 46 { |
56 if (!std::isfinite(value)) { | 47 if (!std::isfinite(value)) { |
57 exceptionState.throwTypeError(ExceptionMessages::failedToSet(method, "Te
xtTrackCue", ExceptionMessages::notAFiniteNumber(value))); | 48 exceptionState.throwTypeError(ExceptionMessages::failedToSet(method, "Te
xtTrackCue", ExceptionMessages::notAFiniteNumber(value))); |
58 return true; | 49 return true; |
59 } | 50 } |
60 return false; | 51 return false; |
61 } | 52 } |
62 | 53 |
63 TextTrackCue::TextTrackCue(double start, double end) | 54 TextTrackCue::TextTrackCue(double start, double end) |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 if (!active) | 173 if (!active) |
183 removeDisplayTree(); | 174 removeDisplayTree(); |
184 } | 175 } |
185 | 176 |
186 const AtomicString& TextTrackCue::interfaceName() const | 177 const AtomicString& TextTrackCue::interfaceName() const |
187 { | 178 { |
188 return EventTargetNames::TextTrackCue; | 179 return EventTargetNames::TextTrackCue; |
189 } | 180 } |
190 | 181 |
191 } // namespace WebCore | 182 } // namespace WebCore |
OLD | NEW |